VMware Communities
Coltons
Contributor
Contributor

Attempting to do nested virtualization

I am running the public beta of Mac - Big Sur public beta 3. I see that VMWare Fusion has full Big Sur support based on the website. Currently, I'm trying to run nested virtualization on a Ubuntu-20.04 instance and i'm getting the error "VMware Fusion does not support nested virtualization on this host. Module 'HV' power on failed. Failed to start the virtual machine"

I have enabled hypervisor applications in the virtual machine under Processors and memory.

Is there anything I need to do in order to have this run successfully?

Thanks!

Screen Shot 2020-09-18 at 2.37.49 PM.png

Tags (1)
106 Replies
mitchcbr
Contributor
Contributor

I haven't read the entire thread, but I was receiving the error OP posted. I resolved it by unchecking the "Enable hypervisor applications in this virtual machine" checkbox. Obviously, if you need to run a VM inside the VM, this is not a solution, but I didn't; just needed the VM to run.

Reply
0 Kudos
AntonioMeireles
Contributor
Contributor

Hi all,

reviving an old thread to avoid creating a new one ...

on latest Fusion Professional Version 12.2.1 (18811640) on an Intel mac (Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz so no vPRO / no VMCS ) has anyone managed to run anything over KVM on top of a plain linux guest (and regardless of performance) ? if so, how ?

Thanks in advance

kyrie626
Contributor
Contributor

It has been 2022.3, and I still encountered the same problem as you, on macOS Monterey 12.2.1 and Fusion 12.2.1 😞

> qemu-system-x86_64: error: failed to set MSR 0x48d to 0x5600000016

Tags (1)
Reply
0 Kudos
awokado
Contributor
Contributor

Fighting with the same last days:

qemu-system-x86_64: warning: host doesn't support requested feature: MSR(48DH).vmx-vnmi [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: MSR(48FH).vmx-exit-load-perf-global-ctrl [bit 12]
qemu-system-x86_64: warning: host doesn't support requested feature: MSR(490H).vmx-entry-load-perf-global-ctrl [bit 13]
qemu-system-x86_64: warning: host doesn't support requested feature: MSR(48CH).vmx-eptad [bit 21]
qemu-system-x86_64: warning: host doesn't support requested feature: MSR(491H).vmx-eptp-switching [bit 0]
qemu-system-x86_64: error: failed to set MSR 0x48d to 0x5600000016
qemu-system-x86_64: /build/qemu-0Dw8aG/qemu-4.2/target/i386/kvm.c:2691: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

Tried on 12.1 and 12,1,3

Still the same issue.

Reply
0 Kudos
flooded
Contributor
Contributor

Grennith: did you solved your problem with qemu-system-x86_64: error: failed to set MSR 0x48d to 0x5600000016?

Reply
0 Kudos
Technogeezer
Immortal
Immortal

I don't know if this will help or not (and I do not profess to be a QEMU expert).

I'm working with the 22H2 Fusion Tech Preview on Monterey 12.5.1 running on a 2014 Mac mini. I had built an openSUSE Tumbleweed VM, and wanted to test nested virtualization. I chose to virtualize another Tumbleweed instance using QEMU in the VM. Yes, I set the appropriate settings in the Fusion VM to allow nested virtualization.

I experienced this same issue of failure to write to the MSR that others have reported here. I was however able to get the QEMU VM to run. 

I found that if I unchecked the "copy host CPU configuration" option in the VM's Virtual Machine Manager GUI (virt-manager) , and set it to "Hypervisor Default" rather than host-passthrough

Technogeezer_0-1661644950571.png

the nested VM would boot without getting the error. I can't evaluate how the resulting VM performs since I'm on an 8GB and 2CPU Mac. It didn't seem to perform badly, though, even with the restricted resources.

Here's the snippet of the xml file that's created with this config if it helps (again, I'm not a QEMU guru).

Spoiler
<domain type="kvm">
<name>opensusetumbleweed</name>
<uuid>c8988ca9-e067-4e47-85b7-b40c63682045</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://opensuse.org/opensuse/tumbleweed"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">2097152</memory>
<currentMemory unit="KiB">2097152</currentMemory>
<vcpu placement="static">1</vcpu>
<os firmware="efi">
<type arch="x86_64" machine="pc-q35-7.0">hvm</type>
<bootmenu enable="yes"/>
</os>
<features>
<acpi/>
<apic/>
<vmport state="off"/>
</features>
<cpu mode="custom" match="exact" check="none">
<model fallback="forbid">qemu64</model>
</cpu>
<clock offset="utc">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled="no"/>
<suspend-to-disk enabled="no"/>
</pm>

 

 

- Paul (Technogeezer)
Editor of the Unofficial Fusion Companion Guides
Reply
0 Kudos
geraldo77
Contributor
Contributor

Hello,

I am running Red Hat Enterprise Linux 9.1 in vmware Fusion 13.01 on Mac OS Ventura 13.3 x64 on a Mac Mini 2018


Model Name: Mac mini
Model Identifier: Macmini8,1
Processor Name: 6-Core Intel Core i7
Processor Speed: 3,2 GHzNumber of Processors: 1
Total Number of Cores: 6
L2 Cache (per Core): 256 KB
L3 Cache: 12 MB
Hyper-Threading Technology: Enabled
Memory: 64 GB


The kernel version of the Red Hat vm is:
5.14.0-162.22.2.el9_1.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 15 14:44:24 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux


When I am trying to run openshift on the Red Hat virtual machine I am getting:


crc start
Error starting machine: Error in driver during machine start: virError(Code=1, Domain=10, Message='internal error: qemu unexpectedly closed the monitor: 2023-03-27T10:28:47.805718Z qemu-kvm: error: failed to set MSR 0x48d to 0x5600000016
qemu-kvm: ../target/i386/kvm/kvm.c:3013: int kvm_buf_set_msrs(X86CPU *): Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.')

 

Did anyone manage to address this already?

 

Thanks in advance!

Reply
0 Kudos