Solaris Guest Additions in VirtualBox on Mac OS X
By morganic on May 08, 2008
I had a little difficulty figuring out how to get the Solaris additions installed. I could not find the VirtualGuestAdditions.iso, even after consulting the VB doc. Eventually, I stumbled around long enough to get it installed.
The key points:
- Start the OpenSolaris virtual machine.
- With the OpenSolaris window selected, choose Devices > Install Guest Additions and the CD icon should show up.
- If that doesn't work, try to mount the iso image for the additions in VirtualBox: Devices > Mount CD/DVD ROM>CD-ROM Image (I think the guest window has to be selected in order for the Devices option to show up on the menu bar.)
- Select the VirtualBox main window, and open File > Virtual Disk Manager.
In the Virtual Disk Manager, click CD/DVD Images tab, select the VBoxGuestAdditions.iso, and click OK.
- If the icon for the VBoxGuestAdditions does not appear on the desktop, check to see if there is a real CD in the drive. This is what caused my problems -- as soon as I ejected the CD, the additions icon showed up on the Solaris desktop. I believe I had to eject the CD from Mac OSX, not Solaris.
- Make sure also that if you mounted the ISO for Opensolaris, that you remove that CD in the Virtual Disk Manager. It seems that only one CD, virtual or physical, can be dealt with at a time.
Open a terminal window and su to root, then do this:
pkgadd -d ./VBoxSolarisAdditions.pkg
And hopefully you will see this:
The following packages are available:
1 SUNWvboxguest Sun xVM VirtualBox Guest Additions
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
Processing package instance <SUNWvboxguest> from
Sun xVM VirtualBox Guest Additions(i386) 1.6.0
Sun Microsystems, Inc.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
WARNING: setting mode of </etc/devlink.tab> to default mode (644)
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWvboxguest> [y,n,?] y
Installing Sun xVM VirtualBox Guest Additions as <SUNWvboxguest>
## Installing part 1 of 1.
/opt/VirtualBoxAdditions <implied directory>
/var/svc/manifest/system/virtualbox <implied directory>
[ verifying class <none> ]
[ verifying class <sed> ]
## Executing postinstall script.
Sun xVM VirtualBox Guest Additions - postinstall script
This script will setup and load the VirtualBox Guest kernel module...
Please re-login to activate the X11 guest additions.
Installation of <SUNWvboxguest> was successful.
Then you need to log out and log back in. The thing you should immediately notice is the screen resolution is now set appropriately for the screen size. You can use Full Screen and really get full screen.