[Top][All Lists]

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

[Qemu-discuss] Supported hypervisors running VMs in nested VM

From: Rain Maker
Subject: [Qemu-discuss] Supported hypervisors running VMs in nested VM
Date: Sat, 3 Oct 2015 23:18:55 +0200

Hello list,

I am trying to setup a lab environment for a backup solution. This lab
should be able to demonstrate the interaction the software has with
certain hypervisors, such as VMWare, Hyper-V and KVM, and the VMs
therein. My main focus is currently on Hyper-V.

I've enabled nested virtualization in the kernel module. When booting
a Linux-based LiveCD, I can see the vmx flag being passed to the VM.

However, I am unable to run any virtual machines within the hypervisors.

I've done tests on a couple of versions of Windows / Hyper-V, and
these are the results. Host system is Ubuntu 15.10, KVM version is

Windows 2008 R2
Installation of Hyper-V via add / remove features works.
Booting works (which, because HV is a "type 1" hypervisor, is also a
special kind of Virtual Machine). However, I am unable to boot guest
VMs within this HV Instance.

The Event Viewer in Windows shows that 2 drivers are unable to load:
'Virtualization Infrastructure' driver required by the Virtual Machine
Management service is not installed or is disabled. Check your
settings or try reinstalling the Hyper-V role.
'Virtual Machine Bus' driver required by the Virtual Machine
Management service is not installed or is disabled. Check your
settings or try reinstalling the Hyper-V role.

Device Manager shows these 2 devices, with an error state of "Windows
cannot load the device driver for this hardware. The driver may be
corrupted or missing. (Code 39)"

Windows 2012 / 2016 technical preview 3
The installation via the "default" method of Add/Remove Features does
not work. Hyper-V displays the error message "A hypervisor is already

This check can be skipped by using a different method of installation
(from PowerShell):
Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V
–All -NoRestart

This results in (again) the server booting up, but being unable to run
any guest VMs. The error message is less clear then that in 2008, just
"The Virtual Machine Management Service failed to start the virtual
machine 'New Virtual Machine' because one of the Hyper-V components is
not running (Virtual machine ID
is what I could find.

Just to verify that "nesting" is actually working, I've also installed
a Ubuntu 15.10 VM and installed Qemu on it.
This combination CAN successfully run a VM.

I've also installed VirtualBox on one of the Windows VMs. This
VirtualBox instance is also capable of running virtual machines.
According to the icon in the bottom right, VirtualBox IS using the
hardware virtualization.

Is this a problem specific to Hyper-V? Is there a method to get
Hyper-V working including running guests? I know for a fact that
VMWare Workstation / ESX is able to run Hyper-V fully, so it should
not be completely impossible (but I dislike VMWare for different

My Qemu command line (generated by virt-manager). Except for disks and
domain names, all are identical:

qemu-system-x86_64 -enable-kvm -name Windows_2008_R2 -S -machine
pc-i440fx-vivid,accel=kvm,usb=off -cpu
-m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid
54a8f3a3-66c2-45a5-a280-ecf7019a67fa -no-user-config -nodefaults
-mon chardev=charmonitor,id=monitor,mode=control -rtc
base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=discard
-no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global
PIIX4_PM.disable_s4=1 -boot strict=on -device
ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
-device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1
-netdev tap,fd=24,id=hostnet0 -device
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -chardev
spicevmc,id=charchannel0,name=vdagent -device
-device usb-tablet,id=input0 -spice
-device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
spicevmc,id=charredir0,name=usbredir -device
usb-redir,chardev=charredir0,id=redir0 -chardev
spicevmc,id=charredir1,name=usbredir -device
usb-redir,chardev=charredir1,id=redir1 -chardev
spicevmc,id=charredir2,name=usbredir -device
usb-redir,chardev=charredir2,id=redir2 -chardev
spicevmc,id=charredir3,name=usbredir -device
usb-redir,chardev=charredir3,id=redir3 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on

Thank you in advance for response.

Roel Brook

reply via email to

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