Summary:
I am attempting to run a virtual machine within a virtual machine on OS X Ventura 13.0.1.
Specs:
Model: Macbook Pro 15" 2017
Processor: Intel Core i7-7700HQ CPU @ 2.80GHz
OS: OS X Ventura 13.0.1
Memory: 16GB 2133 MHz LPDDR3
Hard Drive: 250GB
VirtualBox version: 7.0.6 r155176 (Qt5.15.2)
Extension Packs: 0
Guest Additions: virtualbox-guest-additions-iso/jammy-updates 6.1.38-1~ubuntu1.22.04.1 all
Guest Settings: Please see attached
Issue:
As stated in the summary above, I would like to run a VirtualBox vm inside of a VirtualBox vm that is running on my mac. My understanding is that this has been supported since version 6.1. Here are the steps I took:
1. Download the latest Ubuntu server iso from Ubuntu's website.
2. Open VirtualBox and import the iso image. Continue with setting up the image using the default entries.
3. Once the vm is up and running, power off the vm.
4. In a bash shell, do the following:
a. Run "vboxmanage list vms" and note the id of the vm that was powered down
b. Run "vboxmanage modifyvm <vm id> --nested-hw-virt on"
5. Verify that "Enable Nested VT-x/AMD-V" is checked under Settings -> System -> Processor
6. Power on the vm
7. SSH into the vm and run: "cat /proc/cpuinfo" and look for the vmx feature flag. In my case, this flag is not listed and therefore, I cannot run a vm inside this vm.
Important Notes:
1. I verified that my processor does in fact support VT-x, so I don't understand why it is not enabled in the guest OS.
2. The VirtualBox logs also indicate that the host OS does support VT-x but it is disabled on the guest. I don't understand why:
Code: Select all
00:00:07.866882 Mnemonic - Description = guest (host)
...
00:00:07.866914 VMX - Virtual Machine Extensions = 0 (1)
Regards,
Will