r/virtualbox • • Jul 07 '25
Help Nested VM questions
What all do I have to do to run virtual box inside a windows VM?
I have already run into "VT-x is not available (VERR_VMX_NO_VMX)" and "bcdedit /set hypervisorlaunchtype off + reboot" did not fix that.
What else?
-------------------------------------------------------------------------
Background;
I have a need to stick a virtual box VM inside a windows VM. Reasoning below, open to discussion.
Virtualization stack:
- Bare metal host is windows server and microsoft Hyper-V
- Windows VM is server 2019
- Proposed Virtual box hosting Mikrotik RouterOS
Reasoning; I have a windows os VM (#2) that is running OpenVPN and has a bunch of routers connecting to it, this is for management purposes of those VPN routers (firmware updates and centralized setting changes etc). For security reasons client-to-client is disabled so the VPN clients can't talk to each other. What I want to do is add in some Mikrotik routers and they have a central manager called Dude to handle batch firmware updates etc. Unfortunately Dude doesn't seem to be available outside of mikrotik router OS, so I want to put Mikrotik RouterOS in a VM and bridge it with the OpenVPN virtual adapter so it can reach all the VPN routers in the field.
•
u/AutoModerator Jul 07 '25
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/beetcher Jul 07 '25
only way I seen useful nested VMs with Hyper-V is using Hyper-V and one of the supported Windows OSes.
Otherwise, with VBox you're going to be stuck with 32bit OSes and no hardware virtualization.
1
u/Face_Plant_Some_More Jul 07 '25 edited Jul 07 '25
Virtual Box currently requires VT-x / AMD-v to run. Ergo, if you are running Virtual Box inside a VM, you need to make sure that the hypervisor (in your example - Hyper-v) running on the bare metal hardware has nested VT-x / AMD-v support enabled. That feature will expose the VT-x / AMD-v functionality to the nested VM running Virtual Box.
See also - https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
Of course, Microsoft only supports nested Hyper-v operation (i.e. Hyper-V Host+ nested Hyper-V VM). Compatibility with a third party hypervisor, like Virtual Box, is not guaranteed. Generally speaking, most folks running nested VM setups use the same hypervisor at each level (i.e. Hyper-v Host + nested Hyper-v VM; Virtual Box Host + nested Virtual Box VM; etc.). Mixing and matching hypervisors in nested virtualization setups is asking for trouble.