上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: 虚拟网卡由-net nic定义 # qemu-system-x86_64 -enable-kvm -name ubuntutest -m 2048 -hda ubuntutest.img -vnc :19 -net nic 如果我们在monitor中查看info network 可以看到下面的 有时候,我们看到的是VLAN 0,这里的VLAN和802.1.q一点关系都没有,就是virtual ... 阅读全文
posted @ 2014-07-13 23:11 popsuper1982 阅读(2356) 评论(0) 推荐(0) 编辑
摘要: KVM本身并不提供半虚拟化功能,是通过virtio来实现的 The benefits of virtio drivers are of lower overhead and higher performance. Memory Ballooning (virtio_balloon) memory ballooning可以动态调整guest的内存的大小 如果有-m参数,则向更大的内存调整时无效的,... 阅读全文
posted @ 2014-07-13 00:03 popsuper1982 阅读(2066) 评论(0) 推荐(0) 编辑
摘要: 在openstack中,如果我们启动一个虚拟机,我们会看到非常复杂的参数 qemu-system-x86_64 -enable-kvm -name instance-00000024 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu SandyBridge,+erms,+smep,+fsgsbase,+pdpe1gb,+rdrand,+f16c... 阅读全文
posted @ 2014-07-12 19:32 popsuper1982 阅读(11286) 评论(0) 推荐(0) 编辑
摘要: 一般搭建成功了opentack后,都会按照文档的这样创建网络 Scenario 1: one tenant, two networks, one router Scenario 2: two tenants, two networks, two routers 然而neutron号称软件定义网络,可否创建更复杂的拓扑图 我创建了上面的三个网络,每个网络都运行一个主机,网络1和网络2,并... 阅读全文
posted @ 2014-07-10 12:27 popsuper1982 阅读(2307) 评论(0) 推荐(0) 编辑
摘要: file injection代码file injection原理来讲是比较简单的,在nova boot命令中,有参数--file,是将文件inject到image中nova boot --flavor 2 --image d96b0e41-8264-41de-8dbb-6b31ce9bfbfc --... 阅读全文
posted @ 2014-07-10 11:50 popsuper1982 阅读(5104) 评论(0) 推荐(0) 编辑
摘要: guestmount root# guestmount -a ubuntutest1.img -m /dev/sda1 ubuntutestp1 root# cd ubuntutestp1/root:/home/cliu8/images/ubuntutestp1# lsa b c d hello lost+found worldroot:/home/cliu8/images/ubuntutest... 阅读全文
posted @ 2014-07-09 14:24 popsuper1982 阅读(2061) 评论(0) 推荐(0) 编辑
摘要: 添加一个drive:guestfs_add_drive_optsadd-drive filename [readonly:true|false] [format:..] [iface:..] [name:..] [label:..] [protocol:..] [server:..]This function adds a disk image called filename to the han... 阅读全文
posted @ 2014-07-09 13:56 popsuper1982 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: 要编辑一个image,则运行下面的命令 guestfish -a ubuntutest.img > 会弹出一个命令行工具 运行run > run 我们来ps一下进程 root# ps aux | grep guestroot 11697 0.0 0.0 96216 4604 pts/0 S+ 02:14 0:00 guestfish -a ubuntutest.imgroot 11832 7.0 ... 阅读全文
posted @ 2014-07-09 11:43 popsuper1982 阅读(3216) 评论(0) 推荐(0) 编辑
摘要: 方法一:mount成为一个loop device 参考http://smilejay.com/2012/08/mount-an-image-file/ 方法一:找出分区开始的开始位置,使用mount命令的offset参数偏移掉前面不需要的,即可得到真正的分区。其具体步骤如下:1. 用“fdisk -lu my.img”查询image信息;2. 计算image内分区开始的地方(计算offset),用... 阅读全文
posted @ 2014-07-08 00:29 popsuper1982 阅读(4880) 评论(0) 推荐(0) 编辑
摘要: 网络块设备是通过NBD Server将虚拟块设备通过TCP/IP export出来,可以远程访问。 NBD Server通常是qemu-nbd 可以提供unix socket qemu-nbd -t -k /home/cliu8/images/ubuntutest-nbd ubuntutest.img 打开另一个窗口,可以连接这个unix socket qemu-system-x86_64 -e... 阅读全文
posted @ 2014-07-07 23:11 popsuper1982 阅读(2225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页