this post was submitted on 06 Aug 2024
14 points (100.0% liked)

Sysadmin

7755 readers
2 users here now

A community dedicated to the profession of IT Systems Administration

No generic Lemmy issue posts please! Posts about Lemmy belong in one of these communities:
[email protected]
[email protected]
[email protected]
[email protected]

founded 2 years ago
MODERATORS
 

So using qemu with hyper-V acceleration is something that is not well documented. Historically, you would setup HAXM but that has been discontinued and deprecated.

To use qemu on WIndows with hardware acceleration you first start by enabling Hyper-V if it isn't enabled already. Next, run qemu with the following additional option:

--accel whpx,kernel-irqchip=off

In qtemu on Windows there is a GUI option to do this. I like qemu because it cleaner than pure Hyper-V and doesn't have the licensing issues that Virtualbox does. I also like that Linux guests have native support for virtual devices.

https://www.qemu.org/docs/master/system/qemu-manpage.html

top 2 comments
sorted by: hot top controversial new old
[โ€“] man135 1 points 4 months ago* (last edited 4 months ago) (1 children)

Idk if it was fixed recently (don't think it has been) but last time I tried this 2 months ago it doesn't actually work. Using the latest version of QEMU, you will get an error that says something along the lines of "MSI injection failed". When this is logged HyperV is not used for accel and the VM is really slow.

Edit: CPU AMD 3900x

[โ€“] [email protected] 0 points 3 months ago

Found a fix (See above)