Enable Nested VT-X/AMD-V not working

Discussions related to using VirtualBox on Windows hosts.
Post Reply
PauGuri2002
Posts: 2
Joined: 10. Mar 2023, 12:24

Enable Nested VT-X/AMD-V not working

Post by PauGuri2002 »

I'm having the exact same problem. Also running an Ununtu 22.04 guest on Windows 10 host, with "Enable Nested VT-x/AMD-V" checked (it was NOT geyed out), and I get the same error when using "sudo kvm-ok" in the Terminal.


I'm attaching the "Vbox.log" file, and this are the steps I followed inside the VM:

- Power it on from total shutdown
- Launch "Docker Desktop", which does not load correctly and shows "Docker Desktop stopped..." on the screen
- Open the terminal and type "sudo kvm-ok", which responds with:

"INFO: Your CPU does not suppor KVM extensions
KVM acceleration can NOT be used"

- Shutdown the VM from inside the OS


My CPU is an Intel Core i7-9700K.
Attachments
VBox.zip
(37.67 KiB) Downloaded 3 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Enable Nested VT-X/AMD-V not working

Post by scottgus1 »

Your Windows host OS has Hyper-V enabled:
00:00:04.535585 HM: HMR3Init: Attempting fall back to NEM: VT-x is not available
00:00:04.580831 NEM: WHvCapabilityCodeHypervisorPresent is TRUE, so this might work...
You'll probably have to disable this to do Nested Virtualization. HMR3Init: Attempting fall back to NEM (Hyper-V is active)
PauGuri2002 wrote:Launch "Docker Desktop" ...
- Open the terminal and type "sudo kvm-ok"
Virtualbox doesn't pass a complete copy of the host features into the VM for the next layer of VM. One thing missing that might up-end this project is "nested paging / SLAT" https://en.wikipedia.org/wiki/Second_Le ... ranslation.
PauGuri2002
Posts: 2
Joined: 10. Mar 2023, 12:24

Re: Enable Nested VT-X/AMD-V not working

Post by PauGuri2002 »

Disabling Hyper-V as mentioned in the post you linked solved my issue. Thank you!
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Enable Nested VT-X/AMD-V not working

Post by scottgus1 »

Great! Glad you're up and running.
Post Reply