Possible to test Xen inside a VirtualBox?

Discussions about using Linux guests in VirtualBox.
Post Reply
kveroneau
Posts: 15
Joined: 19. Jan 2014, 00:01

Possible to test Xen inside a VirtualBox?

Post by kveroneau »

Hello All,

I am wondering if it's possible to run the Xen hypervisor inside a Linux guest? I know any emulator/virtualizer that doesn't use VT-x/AMD-V should technically run inside VirtualBox. I just don't feel like either uninstalling VirtualBox or dual-booting a second Linux partition to play around with Xen. I believe the newer versions of Xen require a VT-x/AMD-V enabled chip.

A side question is... Can you run VirtualBox inside a VirtualBox guest? With VT-x/AMD-V disabled of course.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Possible to test Xen inside a VirtualBox?

Post by mpack »

Quick answer: don't know, try it.

Longer answer: even a VM platform which doesn't use VT-x may still play tricks with privilege levels (rings) that make it awkward to run inside another VM. Hence VM within a VM is not supported whether or not it uses VT-x.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Possible to test Xen inside a VirtualBox?

Post by socratis »

kveroneau wrote:A side question is... Can you run VirtualBox inside a VirtualBox guest? With VT-x/AMD-V disabled of course.
I just tried the following successfully. VT-x/AMD-V was enabled on both VMs.
  • OSX running VirtualBox with
    • WinXP (VT-x/AMD-V) running VirtualBox with
      • WinXP (VT-x/AMD-V)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Possible to test Xen inside a VirtualBox?

Post by Perryg »

Your second (nested) virtualizer will not have VT-x/AMD-v support. This means no 64 bit guests in the nest. Also you must have nested page support on the real host.
The real question is not nesting VBox in VBox though it is nesting Xen in VBox which is going to be different, especially if it requires VT-x which it won't see.
Post Reply