Skip to content

Instantly share code, notes, and snippets.

@tdcosta100
Last active February 2, 2024 03:20
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tdcosta100/0cff37101a18cc051a47cb2f624ee585 to your computer and use it in GitHub Desktop.
QEMU 7.0.0 configuration for Ubuntu 22.04 (LTS) with WHPX acceleration
:: In order to make Ubuntu 22.04 to work with WHPX acceleration without crashes, you have to activate the following CPU features:
:: -aes
:: -avx
:: -sse4.1
:: -sse4.2
:: -ssse3
:: -x2apic
:: -xsave
::
:: You can change every other option, only CPU and WHPX options are mandatory.
:: OVMF.fd can be downloaded from https://packages.ubuntu.com/jammy/all/ovmf/download.
start qemu-system-x86_64w.exe ^
-accel whpx,kernel-irqchip=off ^
-bios OVMF.fd ^
-machine q35 ^
-cpu qemu64,aes=on,avx=on,sse4.1=on,sse4.2=on,ssse3=on,x2apic=on,xsave=on ^
-smp 4 ^
-m 4096 ^
-device virtio-vga,xres=1366,yres=768 ^
-device ich9-intel-hda ^
-device hda-output ^
-usb ^
-device usb-kbd ^
-device usb-tablet ^
-drive file=ubuntu-22.04-desktop-amd64.qcow2,if=virtio ^
-drive file=ubuntu-22.04-desktop-amd64.iso,media=cdrom,if=virtio ^
-display sdl,window-close=off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment