Virtualization inside a virtualizer, discussions

This is for discussing general topics about how to use VirtualBox.
Post Reply
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Virtualization inside a virtualizer, discussions

Post by vbox4me2 »

This is a general sticky topic about success and failure methods on getting for example xen running inside VBox, all other such topics will be locked as people get confused and frustrated why it won't work.

As a general rule of thumb, most Virtualization packages do not support running another such package inside it, it is like trying to install XP inside a running XP, that will not work either.

There are some situations where this is possible with VBox and that is what this post is for, clearification, confirmation and information about the how, why and why not.
You CAN run Virtualization inside virtualization.
What you can't do is use Virtualization Extensions (AMD-V, VT-X) inside a virtualized server.
Do make sure you mention VBox version number and other environment settings/hardware should you have a success story. It should be obvious discussions about running xen inside vmware will be removed as this is the VBox forum.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Virtualization inside a virtualizer, discussions

Post by stefan.becker »

Some Additions:

If you have a Xen Host, you cant run VirtualBox or VMWARE at the same time Xen is running. With a Xen Kernel its impossible to build the kernel modules for VirtualBox or VMWARE. So here the only way is the additionial installation of a standard kernel. To run VirtualBox or VMWARE you must boot with standard kernel.

In VMWARE there are some Parameters to start VMWARE inside an VMWARE Guest. Have a look at this site for further details: http://sanbarrow.com/vmx/vmx-advanced.h ... or_control
uwe.plonus
Posts: 1
Joined: 30. Jul 2009, 14:00
Primary OS: Ubuntu 8.04
VBox Version: PUEL
Guest OSses: Ubuntu / Windows

Re: Virtualization inside a virtualizer, discussions

Post by uwe.plonus »

Successfully started a XEN-Kernel and a XEN-DomU inside Virtuabox!

Virtualbox: 3.0.2
Guest: Ubuntu 8.04.3 Server
Created one DomU on the server

Only drawback: The Ubuntu-Server does not start the normal way. The only possibility to start the server is to use the CD-image and use the "start from first disk" option.

Hope this helps.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Virtualization inside a virtualizer, discussions

Post by stefan.becker »

Yes, Xen can be started in a Virtualizer. But you cant use this with VT.

So a Windows Guest inside a Linux with Xen as VirtualBox Guest on a Linux Host does not work.
vuser1
Posts: 26
Joined: 26. Jan 2009, 23:24

Re: Virtualization inside a virtualizer, discussions

Post by vuser1 »

OpenVZ works inside VBox smoothly. You know, OpenVZ offers better performance (especially networking) than Xen.
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Re: Virtualization inside a virtualizer, discussions

Post by sej7278 »

vuser1 wrote:OpenVZ works inside VBox smoothly. You know, OpenVZ offers better performance (especially networking) than Xen.
Yup just tried today, I've now got a Fedora10 host running VirtualBox, inside which is a CentOS 5.3 guest that's running OpenVZ, inside which is Ubuntu 8.04 (all 64-Bit).

OpenVZ is a glorified chroot container system like FreeBSD jails or Solaris zones, not really a virtualisation platform like VirtualBox/Xen/KVM/VMWare, so there's no real reason it shouldn't work.
seihalai
Posts: 1
Joined: 24. Aug 2009, 12:53
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: debian, win7

Re: Virtualization inside a virtualizer, discussions

Post by seihalai »

I installed Virtualbox for Debian/Lenny running as a guest on Vmware ESX. I tried to add another Debian guest for VirtualBox. Installation started but get stucked when loading kernel. Is there any possibilities for this configuration?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Virtualization inside a virtualizer, discussions

Post by Sasquatch »

No, this idea is the same as VB inside VB. VB itself won't run as Host on a Guest system, without some kind of special actions. That's what this topic is about, to find the ways to get virtualization inside a virtualization going. VB is just not the product to do this without some tweaks and hacks, just like any other virtualization app btw.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Virtualization inside a virtualizer, discussions

Post by Technologov »

I have opened a feature-request back then:
[feature-request] Nested Virtualization: VT-in-VT
http://www.virtualbox.org/ticket/4032
NeBlackCat
Posts: 154
Joined: 3. Aug 2008, 13:37

Re: Virtualization inside a virtualizer, discussions

Post by NeBlackCat »

Been trying to do the following:

XP SP3:
---vbox 3.0.8 (commercial):
------Ubuntu 9.04:
---------vbox 3.0.8 (commercial):
------------Ubuntu 9.04 live CD (local ISO)

No luck. The inner VM (trying to run the Ubuntu live CD) stalls on startup. It runs the initial live CD menu, but then locks up, or gives IO APIC errors, or gives timeout messages once you tell it to boot from the "CD".

I've tried various combinations of enabling/disabling VT-D (and also IO APIC) in both virtualised environments, no difference.

One thing I'd like to try is removing the vbox tools from the (first) Ubuntu VM, but I can't see how to do this - any ideas?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Virtualization inside a virtualizer, discussions

Post by Sasquatch »

NeBlackCat wrote:Been trying to do the following:

XP SP3:
---vbox 3.0.8 (commercial):
------Ubuntu 9.04:
---------vbox 3.0.8 (commercial):
------------Ubuntu 9.04 live CD (local ISO)

No luck. The inner VM (trying to run the Ubuntu live CD) stalls on startup. It runs the initial live CD menu, but then locks up, or gives IO APIC errors, or gives timeout messages once you tell it to boot from the "CD".

I've tried various combinations of enabling/disabling VT-D (and also IO APIC) in both virtualised environments, no difference.

One thing I'd like to try is removing the vbox tools from the (first) Ubuntu VM, but I can't see how to do this - any ideas?
Don't bother. You can't run VB inside itself. Been there, done that. It will stall the moment it's past the BIOS splash.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
NeBlackCat
Posts: 154
Joined: 3. Aug 2008, 13:37

Re: Virtualization inside a virtualizer, discussions

Post by NeBlackCat »

Anyone have any luck with QEMU/KQEMU inside a vbox vm?
DaveHCYJ
Posts: 7
Joined: 22. Oct 2009, 00:22
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Gentoo, XP, LinuxMint

Re: Virtualization inside a virtualizer, discussions

Post by DaveHCYJ »

Just curious, why would you run virtualization inside of virtualization? What are the benefits or what would be scenario where you would need this? Couldn't all the inner VM's just run in the outer instance? Or is the whole point that there is no real reason other than it's "just for fun" or "because I can".
aeichner
Oracle Corporation
Posts: 193
Joined: 31. Aug 2007, 19:12

Re: Virtualization inside a virtualizer, discussions

Post by aeichner »

Sasquatch wrote:
NeBlackCat wrote:Been trying to do the following:

XP SP3:
---vbox 3.0.8 (commercial):
------Ubuntu 9.04:
---------vbox 3.0.8 (commercial):
------------Ubuntu 9.04 live CD (local ISO)

No luck. The inner VM (trying to run the Ubuntu live CD) stalls on startup. It runs the initial live CD menu, but then locks up, or gives IO APIC errors, or gives timeout messages once you tell it to boot from the "CD".

I've tried various combinations of enabling/disabling VT-D (and also IO APIC) in both virtualised environments, no difference.

One thing I'd like to try is removing the vbox tools from the (first) Ubuntu VM, but I can't see how to do this - any ideas?
Don't bother. You can't run VB inside itself. Been there, done that. It will stall the moment it's past the BIOS splash.
This is not entirely true. If you have a processor with nested paging capabilities you can run VBox inside VBox. You can't use hardware virtualization in the inner VM though but raw mode will work just fine. This method was used to get VBox running on FreeBSD. So running a VM inside a VM is actually useful if you want to port the hypervisor to a new platform because you don't need to reboot the host and may loose data if something goes wrong (answering DaveHCYJ's question). :)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Virtualization inside a virtualizer, discussions

Post by Sasquatch »

aeichner wrote:This is not entirely true. If you have a processor with nested paging capabilities you can run VBox inside VBox. You can't use hardware virtualization in the inner VM though but raw mode will work just fine. This method was used to get VBox running on FreeBSD.
But how many people has a nested paging capable CPU? AFAIK, only the Core i7 from Intel and some high end AMD's have it. Some users don't even have hardware-v available (either CPU or motherboard that doesn't support it).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply