QEMU可以通过通过命令行"-vga type"选择为客户机模拟的VGA卡的类别,可选择的类型有多个:
-vga type
Select type of VGA card to emulate. Valid values for type are
cirrus
Cirrus Logic GD5446 Video card. All Windows versions starting from Windows 95 should recognize and use this graphic card. For optimal performances, use 16 bit color depth in the guest
and the host OS. (This card was the default before QEMU 2.2)
std Standard VGA card with Bochs VBE extensions. If your guest OS supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if you want to use high resolution modes (>= 1280x1024x16)
then you should use this option. (This card is the default since QEMU 2.2)
vmware
VMWare SVGA-II compatible adapter. Use it if you have sufficiently recent XFree86/XOrg server or Windows guest with a driver for this card.
qxl QXL paravirtual graphic card. It is VGA compatible (including VESA 2.0 VBE support). Works best with qxl guest drivers installed though. Recommended choice when using the spice
protocol.
tcx (sun4m only) Sun TCX framebuffer. This is the default framebuffer for sun4m machines and offers both 8-bit and 24-bit colour depths at a fixed resolution of 1024x768.
cg3 (sun4m only) Sun cgthree framebuffer. This is a simple 8-bit framebuffer for sun4m machines available in both 1024x768 (OpenBIOS) and 1152x900 (OBP) resolutions aimed at people
wishing to run older Solaris versions.
virtio
Virtio VGA card.
none
Disable VGA card.
分别测试如下:
-vga cirrus
sudo qemu-system-x86_64 -m 4096 -smp 4 --enable-kvm -drive file=./ps.img -vga cirrus
-vga std
$ sudo qemu-system-x86_64 -m 4096 -smp 4 --enable-kvm -drive file=./ps.img -vga std
-vga vmware
sudo qemu-system-x86_64 -m 4096 -smp 4 --enable-kvm -drive file=./ps.img -vga vmware
-vga virtio
sudo qemu-system-x86_64 -m 4096 -smp 4 --enable-kvm -drive file=./ps.img -vga virtio
-vga qxl
sudo qemu-system-x86_64 -m 4096 -smp 4 --enable-kvm -drive file=./ps.img -vga qxl