qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nested virtualization in 4.2.0


From: Eric Lenio
Subject: nested virtualization in 4.2.0
Date: Thu, 30 Jan 2020 06:16:09 -0700

Hello,

I'm attempting to use nested virtualization. A prerequisite of this is to expose the vmx CPU flag to my qemu VM. So I'm running qemu 4.2.0 on my Mac (Catalina, 10.15.2) with the following command line:

qemu-system-x86_64 -cpu host,+vmx,+pae,+nx -smp cpus=2 -accel hvf -nic user,ipv6=off,model=e1000 -m size=8192 -machine type=q35 -cdrom ~/Downloads/systemrescuecd-6.0.3.iso mydisk.qcow2

This successfully boots into an Ubuntu system but when I inspect /proc/cpuinfo there is no vmx flag. I know my machine supports it, here is partial output of "sysctl -a", which has the vmx flag:

machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C

During startup of qemu I see:

qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]

So clearly qemu isn't thinking my machine has "full" vmx capability. Any tips?

thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]