Last active
January 27, 2025 06:07
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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