摘要: RAW raw是默认的格式,格式简单,容易转换为其他的格式。需要文件系统的支持才能支持sparse file 创建image # qemu-img create -f raw flat.img 10GFormatting 'flat.img', fmt=raw size=10737418240 如果 阅读全文
posted @ 2016-09-06 09:13 Ansing 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 访问Hard Drive 使用-hda –hdb qemu-system-x86_64 -enable-kvm -name ubuntutest -m 2048 -hda ubuntutest.img -hdb ubuntutest1.img -boot c -vnc :19 -net nic,mo 阅读全文
posted @ 2016-09-06 09:12 Ansing 阅读(798) 评论(0) 推荐(0) 编辑
摘要: Administrating Virtual Machines with QEMU Monitor When QEMU is running, a monitor console is provided for performing interaction with the user. Using 阅读全文
posted @ 2016-09-06 09:11 Ansing 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 安装 对虚拟化的支持通常在BIOS中是禁掉的,必须开启才可以。 对于Intel CPU,我们可以通过下面的命令查看是否支持虚拟化。 # grep "vmx" /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr 阅读全文
posted @ 2016-09-06 09:08 Ansing 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: 在openstack中,如果我们启动一个虚拟机,我们会看到非常复杂的参数 qemu-system-x86_64 -enable-kvm -name instance-00000024 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu SandyB 阅读全文
posted @ 2016-09-06 09:06 Ansing 阅读(3690) 评论(0) 推荐(0) 编辑
摘要: 网络块设备是通过NBD Server将虚拟块设备通过TCP/IP export出来,可以远程访问。 NBD Server通常是qemu-nbd 可以提供unix socket qemu-nbd -t -k /home/cliu8/images/ubuntutest-nbd ubuntutest.im 阅读全文
posted @ 2016-09-06 09:03 Ansing 阅读(363) 评论(0) 推荐(0) 编辑
摘要: SPICE协议配置手册-Centos6.6 安装前准备 1、系统环境 Centos 6.6 安装 2、环境配置 2.1、pkg环境配置 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/:/usr/local/share 阅读全文
posted @ 2016-07-06 18:24 Ansing 阅读(1810) 评论(0) 推荐(0) 编辑
摘要: 多级目录结构的软件,一般是单个程序、库文件或模块放在各自的目录中。automake要求每个目录都有自己的Makefile.am文件来编译各自目录 下的代码。在顶级的目录中,有一个Makefile.am文件,该文件通过SUBDIRS指明了这个目录下有多少个直接下级目录的代码需要编译。下级目录 的Mak 阅读全文
posted @ 2016-07-06 18:06 Ansing 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 下面以自动编译hello.c程序为例介绍如何使用这组工具生成makefile文件。 1.使用Vi编辑器编辑源程序 在Linux操作Shell提示符使用Vi编辑器下创建hello.c源程序。 2.使用autoconf安装工具生成configure.ac文件 Autoscan工具用来扫描源代码以搜寻一般 阅读全文
posted @ 2016-07-06 17:56 Ansing 阅读(360) 评论(0) 推荐(0) 编辑