-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use Nested Virtualization in UTM VM #3405
Comments
Interesting. This reminds me of a recent code change. The Lines 237 to 244 in 6524c73
Please add your VM configuration PLIST so I can examine it. By the way, is it only the CPU model name in the guest that is not changing to your setting or do the actual feature bits not update when you set them in the UI? |
Thanks for your reply! My config.plist for Windows 10:
I must admit that I do not know, if the bits are really set. The behavior inside the VM is not changed, because I cannot activate the WSL features. But CPU-Z tells me, that some features are activated: MMX, SSE, EM64T, AES, AVX, FMA3 for example. |
You have selected "max" as CPU, please change to either "host" or "default", or a specific CPU model if you really need that (you likely don't). The CPU flags are saved correctly, so no further problems there. I'm wondering if it is indeed to do with the hypervisor. |
@agraf Does QEMU HVF on Intel Macs support nested virtualization? Thanks. |
HVF does not support nested virtualization on x86 (software limitation) as well as M1 (hardware limitation) as far as I know. |
@osy Do you know if it's possible to use nested virtualization in Apple Silicon VMs (Monterey)? |
The M1 hardware does not support nested virtualization. M2 might, but we'll have to wait for it to appear before we know for sure. And even then, there will need to be HVF support in addition to the hardware capability. |
hey @agraf have you got a whitepaper to point to for this? I was looking at AArch64s features, M1 is based on 8.5A, 8.4A supported nested virt? I'm just wondering if this limitation was in software rather than something Apple put in hardware. |
The spec does not make every possible feature mandatory. Apple decided to not implement NV1 and NV2. |
okay thanks for that @agraf |
I need to use nested fetrue in utm in the host macOS M2 |
Does this mean that we cannot run Docker in a MacOS VM? 😢 |
The Apple M1 CPU does not support hardware assisted nested virtualisation at all. The Apple M2 and M3 CPUs support the v8.4-A level of hardware assisted nested virtualisation. |
This will allow to run firecracker |
So we are waiting for macOS 15 to enable docker in the VM, right? |
hmm.. after upgrading to macOS 15 (both host and VM) , still cannot run docker.. hypervisor check failed. nestedVirtualizationEnabled should be enabled by UTM ... |
I am using the macOS version of UTM only, so i cannot speak for iOS. It is an Intel Mac running Monterey and the VM is Windows 10 x86_64.
I would like to use some virtualization features inside the guest, but setting CPU flags or changing the CPU model does not change anything: Windows 10 always shows QEMU Virtual CPU version 2.5+.
Is this an accelerator (hvf) issue or could you make this working?
The text was updated successfully, but these errors were encountered: