VirtualBox in a Solaris 11.1 zone

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
awatkins1966
Posts: 22
Joined: 6. Mar 2008, 18:34

VirtualBox in a Solaris 11.1 zone

Post by awatkins1966 »

Just wonder if anyone has tried install VirtualBox in a Solaris 11.1 zone recently, since I am not having any luck.
I have followed http://learnings-on-solaris.blogspot.co ... -zone.html.

As as soon as I start a virtualbox guest-client I get the following error:
Failed to open a session for the virtual machine w.

The virtual machine 'w' has terminated unexpectedly during startup with exit code 0.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {22781af3-1c96-4126-9edf-67a020e0e858}
Any pointers?

Andrew
Brutalizer
Posts: 76
Joined: 7. Oct 2012, 18:24

Re: VirtualBox in a Solaris 11.1 zone

Post by Brutalizer »

No, I dont think Virtualbox can be installed into a zone. It must run in the global zone.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VirtualBox in a Solaris 11.1 zone

Post by Ramshankar »

Brutalizer wrote:No, I dont think Virtualbox can be installed into a zone. It must run in the global zone.
The installation is done from the global zone because we need to install drivers but it should (or at least used to) be possible to configure local zones and run VMs from it. Maybe it's broken now, but I cannot say what's going on without more information.

We'd need at least VBox.log and from the global zone, output of svcs -a | grep zoneaccess output as well. I'll probably also require the zonecfg output for the local zone.
Oracle Corp.
awatkins1966
Posts: 22
Joined: 6. Mar 2008, 18:34

Re: VirtualBox in a Solaris 11.1 zone

Post by awatkins1966 »

I think it was user error in the end.
I did get it working and as you say you have to install in global zone and then you install in the zone.

I had to add some other packages to get VirtualBox GUI to work.

Thanks,

Andrew
Carlos Azevedo
Posts: 14
Joined: 3. Jul 2012, 19:02

Re: VirtualBox in a Solaris 11.1 zone

Post by Carlos Azevedo »

VirtualBox 4.2.18 does work on NGZs with no GUI installed.
But VirtualBox 4.3.2 doesn't and I still don't know why!
And I have noticed that the /dev/vboxdrv has gone!

Now I'm getting the following error messages:

VBoxHeadless --startvm w2k3-1 &
...
VBoxHeadless: Error -1908 in suplibOsInit!
VBoxHeadless: Kernel driver not installed
VBoxHeadless: Tip! Make sure the kernel module is loaded. It may also help to reinstall VirtualBox.
...

Of course I have already tried to clean up everything and reinstall, but that's not working either.
I also have noticed that after the installation on the GZ, when repeating the steps in the NGZ, the installation is "too fast" like really not loading or updating what's required.

By the way, it still runs in the GZ.

I still don't know about the zoneaccess SMF service but it may be time to start looking at it.
But the more easily accessible documentation is out-of-date!

Regards.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VirtualBox in a Solaris 11.1 zone

Post by Ramshankar »

It's a regression in 4.3.2. See https://www.virtualbox.org/ticket/12271
Oracle Corp.
Carlos Azevedo
Posts: 14
Joined: 3. Jul 2012, 19:02

Re: VirtualBox in a Solaris 11.1 zone

Post by Carlos Azevedo »

OK, but that's rather disappointing.

Thank you.
Post Reply