1、使用qemu-img创建虚拟文件系统
$ qemu-img create –f qcow2 /path/to/xp.img 20G
2、准备iso,安装guest os
参数设置:
多屏设置:
-vga qxl -device qxl
To get a second QXL device in your virtual machine, you need to append -device qxl to your QEMU command line in addition to the -vga qxl that is already there:
-vga qxl -device qxl -device qxl -device qxl -device qxl //设置四屏幕 |
-spice参数:
1、配置图像压缩(无损)。 默认值为auto_glz。 image-compression=[auto_glz|auto_lz|quic|glz|lz|off]
2、配置图像压缩(有损)。 默认值为auto。 jpeg-wan-compression=[auto|never|always] zlib-glz-wan-compression=[auto|never|always] 3、启用/禁用音频流压缩(使用celt 0.5.1)。 默认为开。 playback-compression=[on|off] 4、agent-mouse=[on|off] 通过vdagent启用/禁用传递鼠标事件。 默认为开。
|
Usb重定向:
-device ich9-usb-ehci1 |