QEMU: Difference between revisions
Jump to navigation
Jump to search
| Line 20: | Line 20: | ||
# with Tiny Code Generator - very slow | # with Tiny Code Generator - very slow | ||
qemu-system-x86_64 -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G | qemu-system-x86_64 -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G | ||
# with Tiny Code Generator (multithread) - still slow | |||
qemu-system-x86_64 -accel tcg,thread=multi -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G | |||
# with Intel HAXM - won't work (Need to disable Hyper-V) | # with Intel HAXM - won't work (Need to disable Hyper-V) | ||
| Line 31: | Line 34: | ||
qemu-system-x86_64 -accel whpx -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G | qemu-system-x86_64 -accel whpx -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G | ||
Windows Hypervisor Platform accelerator is operational | Windows Hypervisor Platform accelerator is operational | ||
</source> | </source> | ||
Revision as of 07:53, 13 May 2020
Install Ubuntu 20.04 LTS on QEMU for Windows
List available accelerators
qemu-system-x86_64 -accel help
Accelerators supported in QEMU binary:
hax
whpx
tcg
Boot test
https://help.ubuntu.com/lts/installation-guide/amd64/ch03s05.html
cd ~\Downloads
# with Tiny Code Generator - very slow
qemu-system-x86_64 -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G
# with Tiny Code Generator (multithread) - still slow
qemu-system-x86_64 -accel tcg,thread=multi -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G
# with Intel HAXM - won't work (Need to disable Hyper-V)
qemu-system-x86_64 -accel hax -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G
Failed to open the HAX device!
Open HAX device failed
Failed to get Hax capability:6u
No accelerator found.
# with Windows Hypervisor Platform - good!
qemu-system-x86_64 -accel whpx -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G
Windows Hypervisor Platform accelerator is operational
"C:\Program Files\qemu-2.1.0\qemu-system-x86_64.exe"
-drive "file=C:\disk1.vmdk,index=0,media=disk"
-drive "file=C:\disk2.vmdk,index=1,media=disk"
-smp 4
-net nic,vlan=0,macaddr=52-54-00-B3-47-55,model=rtl8139
-net user,hostfwd=tcp::9000-:80
-m 1024