I hope I am not intruding, but I would like to share my virgl script as well as an alternative, if that's okay; it took me so long to finally figure out how to get qemu running nicely that I thought I'd share it and save people the hassel (and potential hairloss).
This script is for running qemu itself, without virt-manager, as some people with older machines prefer to do, and it's the same result; glxinfo spat out the same stuff. The performance is simply awesome. Youtube uses at least about half the CPU power on both host and vm, it shaved about 1/3 off my bootup time.
myfedorascript:
Code:
/usr/bin/qemu-system-x86_64 \
-cpu host \
-smp 1,sockets=1,cores=1,threads=1 \
-soundhw hda \
-device AC97 \
-machine accel=kvm,usb=off,vmport=off \
-m 1024M \
-vga virtio \
-display gtk,gl=on \
-drive file=/vm/fedora.img,format=raw,if=virtio,aio=threads,cache=writeback \
-device virtio-serial \
-netdev user,id=vmnic,hostname=localhost \
-device virtio-net,netdev=vmnic \
-show-cursor \
-usbdevice tablet \
-nodefconfig \
-nodefaults \
$1 \
To run, change 'fedora.img' to whatever file you intend to run. Adjust '1024M' to whatever memory you would like to use. You may add additional parameters to the script as I did with '-snapshot,' which, in this case, doesn't not change the raw image but creates a new temporary image and then deletes it upon shutdown. Great for messing around and trying new things. I haven't been able to use -snapshot in virt-manager; it seems that they haven't added it in yet:
Code:
./myfedorascript '-snapshot'
Enjoy!