Installing VirtualBox on Solaris Container

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
anhduynguyen
Posts: 2
Joined: 20. Feb 2008, 02:05

Installing VirtualBox on Solaris Container

Post by anhduynguyen »

I am able to install and configure VirtualBox on OpenSolaris host. However, I am trying to use VirtualBox within a Solaris Container (i.e., zone). After setting up the zone and installing the package, I get the following error:

## Executing postinstall script.
innotek VirtualBox - postinstall script
This script will setup and load the VirtualBox kernel module...
cat: cannot open /etc/name_to_major: No such file or directory
cat: cannot open /etc/name_to_major: No such file or directory
No such file or directory
Cannot access file (/etc/minor_perm).
cat: cannot open /etc/name_to_major: No such file or directory
Failed to load vboxdrv.
Creating links...
Done.


This error does not occur at the 'global zone' level and I can use VirtualBox properly at that level.

Any insight on how to install the driver within the non-global zone would greatly be appreciated.
Tomservo
Posts: 34
Joined: 13. Feb 2008, 13:42
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Solaris Express 11

Post by Tomservo »

You can't install drivers in local zones.
anhduynguyen
Posts: 2
Joined: 20. Feb 2008, 02:05

Post by anhduynguyen »

That's what I thought was the root of the problem.

So, that leads me to my next question. ....

Since I'm able to install the application on the global zone and the driver is correctly installed at that level, is there a way to configure the non-global zone to utilize the driver installed at the global zone?
nikitelli
Posts: 2
Joined: 26. Apr 2008, 13:57

Post by nikitelli »

as you might are running the zone as a sparse-root model it will explain why you can't access these files.

To change this, define the zone as a whole-root zone. In that case the zone is completely independent when installing packages.

# zonecfg -z itchy
zonecfg:itchy> remove inherit-pkg-dir dir=/lib
zonecfg:itchy> remove inherit-pkg-dir dir=/platform
zonecfg:itchy> remove inherit-pkg-dir dir=/sbin
zonecfg:itchy> remove inherit-pkg-dir dir=/usr

Let me know if this helps.

-- Nick
nikitelli
Posts: 2
Joined: 26. Apr 2008, 13:57

Post by nikitelli »

my last posting was a little bit to early, sorry for that ...
well I've seen that also in a whole-root zone you won't find these files neither. So no hint from me at the moment.
Post Reply