You are not logged in.

#1 2013-04-17 00:43:21

mask
Member
Registered: 2011-05-17
Posts: 16

nested virtualization Qemu

Hello everybody,

I' m trying to use nested virtualization  with qemu.
Apparently the option "-cpu host" is deprecated so I used the option "-cpu qemu64,+vm" which work.
The problem is that I can't add the option "-enable-kvm"... If I do, it results in kernel parnic on the virtualized operating system.
If I try to install a new virtual machine with both options, "-cpu qemu64,+vm  -enable-kvm", then, vmx is not detected in the  virtualized operating system...
I verified that nested virtualization was enabled with the command "systool -m kvm_intel -v | grep nested" and the answer is Yes.

Is this a bug or am I missing something?

Offline

#2 2013-04-17 10:11:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,572

Re: nested virtualization Qemu

man page of qemu doesn't mention anything about -cpu host being deprecated, where did you find that info ?

For running with kvm use something like this :

-machine type=pc,accel=kvm


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2013-04-17 15:17:15

mask
Member
Registered: 2011-05-17
Posts: 16

Re: nested virtualization Qemu

ok ,maybe I was wrong saying it is deprecated, I remember reading this on a forum but I can't find that forum anymore...
Anyway, using -machine type=pc,accel=kvm did not solve the problem.
using "-cpu host -machine type=pc,accel=kv" makes my vm crash with the message "Panic on cpu 0:"
If I use "-cpu qemu64,+vmx -machine type=pc,accel=kv" the kmv acceleration works but no vmx support.
By the way, the command  "qemu-system-x86_64 -cpu host" returns "Unable to find CPU definition: host ; Unable to find x86 CPU definition"
I' m using an i7 ivy-bridge.

Offline

#4 2013-04-17 18:49:46

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: nested virtualization Qemu

Did you try using '-enable-kvm' with both qemu instances?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2013-04-18 03:41:24

mask
Member
Registered: 2011-05-17
Posts: 16

Re: nested virtualization Qemu

Yes, I tried, same result :S

Offline

Board footer

Powered by FluxBB