14
submitted 3 months ago* (last edited 2 months ago) by possiblylinux127@lemmy.zip to c/sysadmin@lemmy.world

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@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

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

[-] possiblylinux127@lemmy.zip 0 points 2 months ago

Found a fix (See above)

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

Sysadmin

7717 readers
221 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:
!lemmy@lemmy.ml
!lemmyworld@lemmy.world
!lemmy_support@lemmy.ml
!support@lemmy.world

founded 1 year ago
MODERATORS