QEMU: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Install Ubuntu 20.04 LTS ==
= Install Ubuntu 20.04 LTS on QEMU for Windows =


<source lang="powershell">
== List available accelerators ==
cd ~\Downloads
 
qemu-system-x86_64.exe -cdrom ubuntu-20.04-desktop-amd64.iso
<source lang="text">
qemu-system-x86_64 -accel help
Accelerators supported in QEMU binary:
hax
whpx
tcg
</source>
 
== Performance comparison between accelerators ==
 
Read this topic "[https://help.ubuntu.com/lts/installation-guide/amd64/ch03s05.html Meeting Minimum Hardware Requirements]" first.
 
=== Tiny Code Generator ===
It sucks ...
 
<source lang="bash">
# Single thread
qemu-system-x86_64 -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G
 
# Multithread
qemu-system-x86_64 -accel tcg,thread=multi -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G
</source>
 
=== Intel HAXM ===
Need to install [https://github.com/intel/haxm/releases Intel HAXM] first, and disable Hyper-V.<br>
If Docker Desktop was installed, this is not a good solution.
 
<source lang="bash">
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.
</source>
 
=== Windows Hypervisor Platform (recommended) ===
 
<source lang="text">
# 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
</source>
</source>

Latest revision as of 08:11, 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

Performance comparison between accelerators

Read this topic "Meeting Minimum Hardware Requirements" first.

Tiny Code Generator

It sucks ...

# Single thread
qemu-system-x86_64 -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G

# Multithread
qemu-system-x86_64 -accel tcg,thread=multi -cdrom ubuntu-20.04-desktop-amd64.iso -boot once=d -m 1G

Intel HAXM

Need to install Intel HAXM first, and disable Hyper-V.
If Docker Desktop was installed, this is not a good solution.

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.

Windows Hypervisor Platform (recommended)

# 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