VirtualBox in an OpenSolaris zone?

Discussions related to using VirtualBox on Solaris hosts.

VirtualBox in an OpenSolaris zone?

Postby bsder » 31. May 2008, 14:49

A couple people have asked this question but gotten no response. The User's Guide seems to indicate that this is possible, but nobody seems to have an answer.

So, how about an answer this round even if it's negative? Is it possible to run VirtualBox in an OpenSolaris 2008.5 zone?

Thanks.
bsder
 
Posts: 3
Joined: 31. May 2008, 14:35

Postby Phobos » 2. Jun 2008, 04:48

Phobos
Volunteer
 
Posts: 117
Joined: 28. Feb 2008, 00:15

Postby pete_l » 3. Jun 2008, 12:58

I asked the question that phobos refers to (and was kind enough to provide a reply for). The cited article basically says "yes, it's possible - we've done it". However it provides no actionable information, although this declaration does contradict the post which said it had to run in the global zone.

I spent a day reasearching and then messing around with containers, zones and pools. I got almost nowhere - probably due to my own unfamiliarity with the jargon. I think I configured a pool - but on my 1-processor box it failed to initialise. I later found a little article which said that pools need at least two processors, so at least I learned something.

As it turns out, it seems that at best a zone will only control CPU usage. It will do nothing to prevent a resource intensive process or VM from performing extreme amounts of disk I-O or network I-O to the detriment of other resource-sharers and is therefore not a solution to my problem. I have therefore concluded that it's not possible to fully contain a VM. The possibility of this was the only reason I persued a Solaris implementation of VB.I have since torn-down the evaluation system and reported that Solaris is either not capable of performing this management task, or that the solution is so obscure that no-one has published a straighforward way of acheiving it. When I find some time, I am thinking about running VB under Linux and will build a Solaris guest where I can learn more about containers etc. in an environment where my mistakes can easily be rolled back to an earlier snapshot.
pete_l
 
Posts: 62
Joined: 23. May 2008, 15:10

Postby Phobos » 3. Jun 2008, 19:18

maybe you could use some of this information on containers, opensolaris and virtualbox http://blogs.sun.com/jsavit/entry/zones_in_opensolaris_livecd_inside to help you
Phobos
Volunteer
 
Posts: 117
Joined: 28. Feb 2008, 00:15

Postby pete_l » 3. Jun 2008, 20:13

Yes, that looks like some pretty good info. ATM I have some higher priorities but maybe in a few weeks I'll get a chance to revisit this area.
I've bookmarked it for future reference, thanks

Pete
pete_l
 
Posts: 62
Joined: 23. May 2008, 15:10

Re: VirtualBox in an OpenSolaris zone?

Postby kebabbert » 30. Nov 2010, 14:06

It is doable. Read here for more information
http://opensolaris.org/jive/thread.jspa ... 5&tstart=0

I am setting up zones and Virtualbox inside each zone. Right now. Will finish the thread when I get everything working.
kebabbert
Volunteer
 
Posts: 321
Joined: 31. May 2008, 10:00
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: WinXP, RedHat, Ubuntu

Re: VirtualBox in an OpenSolaris zone?

Postby sej7278 » 30. Nov 2010, 14:35

not meaning to sound rude, but opensolaris is well and truly dead, so isn't this a waste of effort?

surely you should just be using regular solaris 10 x86_64 or 11 express beta (whatever they call it today)?
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

Re: VirtualBox in an OpenSolaris zone?

Postby kebabbert » 1. Dec 2010, 13:27

So what if OpenSolaris is dead?

There have been many preview distros of Solaris 11 source code. One of the first distros was called "Solaris Express CE". Then it got killed. OpenSolaris is another preview distro of Solaris 11 source code. Then it got killed, and "Solaris 11 Express" is the latest preview. They have all been previews with different names, of the same Solaris 11 source code. OpenSolaris was build 134 of Solaris 11 source code. Solaris 11 Express is build 151a of Solaris 11 source code. It is the same Solaris 11 source code, nothing has changed except the name and the license.

OpenSolaris has been renamed to Solaris 11 Express. They are the same distro.

In other words, what applies to OpenSolaris also applies to Solaris 11 Express, and therefore this post is interesting for Solaris 11 Express users.
kebabbert
Volunteer
 
Posts: 321
Joined: 31. May 2008, 10:00
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: WinXP, RedHat, Ubuntu

Re: VirtualBox in an OpenSolaris zone?

Postby ch.eick » 12. Apr 2011, 13:15

Dear all,
hopefully I'm not to late, to answer this question. On 10.12.2010 I held an presentation regarding "VirtualBox in
an OpenSolaris Zone" on our OpenSolaris User Group Frankfurt.
What I did in my demo was to install a OpenSolaris b150 (Oracle 11 Express) with two Zones. VirtualBox has to be
installed in the global-zone, because of the device integration. By sharing the installation path of Virtualbox and
although the VirtualBox devices in each zone you can start and use VirtualBox in the zone.
I used iscsi devices to share storage between VirtualBox, to be able to boot VMs in both zones (only one iscsi at one time).
My zones are clones of an image_zone using zfs and also my guest installations are clones of an image with zfs compression.
It was possible to boot for example VM_1 on zone_1 and teleport it to zone_2 (same VM configuration in VirtualBox!).

Conclusion:
It is possible to have VirtualBox running in a zone.
It is not answered to use special devices in a zone, that means I didn't use usb in a zone.
I also didn't use cpu capping, because there are no resources to cap :-) (Toshiba Tecra M10; 2 cpu and 4Gb Ram)
There is a German presentation, describing all this ;-)
ch.eick
 
Posts: 19
Joined: 12. Apr 2011, 09:15
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: WinXP; Win7


Return to VirtualBox on Solaris Hosts

Who is online

Users browsing this forum: No registered users and 4 guests