qemu uefi virtio-gpu-gl example hi performance config
Forum rules
do not spam respect other forum members
do not spam respect other forum members
qemu uefi virtio-gpu-gl example hi performance config
Code: Select all
qemu-system-x86_64 \
-enable-kvm \
-m 4G \
-mem-prealloc \
-mem-path /dev/hugepages \
-smp 8,sockets=1,cores=8,threads=1 \
-cpu host \
-drive file=void-linux.vdi,format=vdi,if=none,id=drive0 \
-object iothread,id=iothread0 \
-device virtio-blk-pci,drive=drive0,iothread=iothread0 \
-vga none \
-device virtio-gpu-gl-pci,max_outputs=1 \
-display sdl,gl=on \
-netdev user,id=usernet,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,netdev=usernet \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-boot menu=on
Use VirtIO 1.0 Devices
If your hardware and QEMU version support it, you can enable VirtIO 1.0 devices for improved performance over legacy VirtIO. These devices are typically more efficient and faster.
Code: Select all
qemu-system-x86_64 \
-enable-kvm \
-m 4G \
-mem-prealloc \
-mem-path /dev/hugepages \
-smp 8,sockets=1,cores=8,threads=1 \
-cpu host \
-drive file=void-linux.vdi,format=vdi,if=none,id=drive0 \
-object iothread,id=iothread0 \
-device virtio-blk-pci,drive=drive0,disable-modern=off,iothread=iothread0 \
-vga none \
-device virtio-gpu-gl-pci,max_outputs=1 \
-display sdl,gl=on \
-netdev user,id=usernet,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,disable-modern=off,netdev=usernet \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-boot menu=on
USB 3 controller example:
Code: Select all
qemu-system-x86_64 \
-enable-kvm \
-m 4G \
-mem-prealloc \
-mem-path /dev/hugepages \
-smp 8,sockets=1,cores=8,threads=1 \
-cpu host \
-drive file=void-linux.vdi,format=vdi,if=none,id=drive0 \
-object iothread,id=iothread0 \
-device virtio-blk-pci,drive=drive0,disable-modern=off,iothread=iothread0 \
-vga none \
-device virtio-gpu-gl-pci,max_outputs=1 \
-display sdl,gl=on \
-netdev user,id=usernet,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,disable-modern=off,netdev=usernet \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-boot menu=on \
-usb \
-device qemu-xhci,id=xhci \
-device usb-host,vendorid=0x0b05,productid=0x17cb
Re: qemu uefi virtio-gpu-gl example hi performance config
Windows config example with Qemu:
Code: Select all
qemu-system-x86_64 \
-machine q35,accel=kvm \
-cpu host \
-smp 4,sockets=1,cores=2,threads=2 \
-m 8G \
-drive if=pflash,format=raw,file=/usr/share/qemu/edk2-x86_64-code.fd,readonly=on \
-drive file=win.vdi,format=vdi,if=ide \
-cdrom virtio-win.iso \
-vga qxl \
-display sdl \
-usb -device usb-tablet -device usb-kbd \
-netdev user,id=net0 -device e1000,netdev=net0 \
-rtc base=localtime \
-device piix3-usb-uhci