Solaris Guest Additions in VirtualBox on Mac OS X

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.
Once the cd is mounted, you can install as follows...

Open a terminal window and su to root, then do this:

cd /media/VB\*

pkgadd -d ./VBoxSolarisAdditions.pkg

And hopefully you will see this:

The following packages are available:

 1  SUNWvboxguest     Sun xVM VirtualBox Guest Additions

                      (i386) 1.6.0

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1

Processing package instance <SUNWvboxguest> from
</media/VBOXADDITIONS_1.6.0_30421/VBoxSolarisAdditions.pkg>

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/1099.vboxclient
/opt/VirtualBoxAdditions <implied directory>
/opt/VirtualBoxAdditions/VBoxClient
/opt/VirtualBoxAdditions/VBoxRandR.sh
/opt/VirtualBoxAdditions/VBoxService
/opt/VirtualBoxAdditions/etc/devlink.tab
/opt/VirtualBoxAdditions/solaris_xorg.conf
/opt/VirtualBoxAdditions/vboxclient.desktop
/opt/VirtualBoxAdditions/vboxguest.conf

...
/var/svc/manifest/system/virtualbox/vboxservice.xml
/var/svc/manifest/system/virtualbox <implied directory>
[ verifying class <none> ]
Modifying /etc/devlink.tab
[ verifying class <sed> ]
## Executing postinstall script.

Sun xVM VirtualBox Guest Additions - postinstall script

This script will setup and load the VirtualBox Guest kernel module...
Loaded vboxguest.
Configuring Xorg...
Configuring client...
Configuring service...
Done.

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.


Comments:

I was following this blog and could not find the ISO image to mount. It turned out that it is "built in". You need to start the Solaris VM and then go to Devices->Install guest additions and after that the ISO image appears in Solaris and everything can be installed. This enables full-screen 1600x1200 resolution for the Solaris guest.

Posted by Alexander Kolbasov on May 12, 2008 at 07:17 AM EDT #

Thanks, Alexander. I accidentally left out the Devices > Install guest additions. I am glad that you noticed that, as it apparently is supposed to be the only thing you need to do to mount the additions ISO. It didn't work in my case, and this is why I had to try the other ways to mount the image. Today, I uninstalled the package (pkgrm SUNWvboxguest) and rebooted, then retried the Devices > Install Guest additions and it did work the way it is supposed to.

Posted by Susan on May 12, 2008 at 09:00 AM EDT #

I've followed all of the above with VB (both 1.6 and 2.0) and OpenSolaris. VB shows the GuestAdditions.iso as being mounted, but the VM cannot see it, so I cannot install the guestadditions. Any ideas?

Posted by Sal on September 05, 2008 at 07:28 AM EDT #

Sal -- I saw this in the Vbox user guide:

If in case the CD-ROM drive on the guest doesn’t get mounted (observed on
some versions of Solaris 10), execute as root:

svcadm restart volfs

Although Opensolaris is not Solaris 10, maybe this will work. Do it while the
ISO is mounted in VB. Please let me know what happens.

Posted by guest on September 05, 2008 at 08:09 AM EDT #

I followed these Instructions to install the Solaris Guest additions for VBox 2.0.2 and the following occurred:

The following packages are available:
1 SUNWvboxguest Sun xVM VirtualBox Guest Additions
(i386) 2.0.2,REV=2008.09.12.14.57

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages)
pkgadd: ERROR: ERROR: Unable to acquire package administration lock for this system; try again later
pkgadd: ERROR: Unable to lock this zone for administration

1 package was not processed!

Posted by Peter Large on September 19, 2008 at 11:32 AM EDT #

I followed these Instructions to install the Solaris Guest additions for VBox 2.0.2 and the following occurred:

The following packages are available:
1 SUNWvboxguest Sun xVM VirtualBox Guest Additions
(i386) 2.0.2,REV=2008.09.12.14.57

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages)
pkgadd: ERROR: ERROR: Unable to acquire package administration lock for this system; try again later
pkgadd: ERROR: Unable to lock this zone for administration

1 package was not processed!

What should I do?

Posted by Peter Large on September 19, 2008 at 11:35 AM EDT #

Here are some forum threads that discuss similar problems, maybe one of them will be of some help?
http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2005-08/1182.html
http://forums.sun.com/thread.jspa?threadID=5214156
http://opensolaris.org/jive/thread.jspa?messageID=32630

Posted by susan on September 19, 2008 at 12:09 PM EDT #

> pkgadd: ERROR: ERROR: Unable to acquire package administration lock for this system; try again > later
> pkgadd: ERROR: Unable to lock this zone for administration

try using 'pfexec' as you would 'sudo'.

Posted by Michael B on September 21, 2008 at 05:11 AM EDT #

Tried pfexec. It didn't work. The response was exactly the same.

Posted by Peter Large on September 21, 2008 at 05:45 AM EDT #

But Seamless mode doesn't work with these additions right?

Posted by schoash on September 24, 2008 at 10:30 PM EDT #

Seamless mode actually does work. But it basically just removes the OpenSolaris desktop background so you can see and interact with your Mac desktop. The menu bar of OpenSolaris is still there, as well as the bottom bar (whatever that is called), and the OpenSolaris app windows are confined to that area. If you use Spaces on your mac, for example, you can't drag the OpenSolaris apps to different spaces. So IMO, seamless is a bit of a misnomer.

Posted by susan on September 25, 2008 at 12:49 AM EDT #

Thats great, I just tried it out and it works great, just had to increase the video memory! Btw I am using debian as a vm host.

Posted by schoash on September 25, 2008 at 01:00 AM EDT #

Thank you for the instructions. Worked great with VB 2.0.4.

Posted by guest on November 11, 2008 at 09:55 AM EST #

Works like a charme.

Posted by Man on November 23, 2008 at 09:12 AM EST #

I'm learning Solaris and running it on a VM in Ubuntu. Pkgadd is something that I probably won't get into in-depth but I needed to know how to use it at the start :D Thank you for your help!

Posted by Asymptote on December 31, 2008 at 06:59 AM EST #

hello everyone
maybe i'm a bit dense but i've being trying to follow ALL the instructions above and there is NO WAY i can get the full screen. the only version on full screen i get is a small ubuntu window with a black frame in my much bigger MAC os X monitor.
i've mounted the "CD" and i've tried to run it with the commands shown above and i always get and error syntax message. i've miracolously managed to get the "auto-resize guest window" unlocked but still NO FULL SCREEN for me. can someone help me?
can you please tell me (if anyone has understood the problem) where i go wrong?

thank you so much for your help. :D

Posted by giorgio on February 06, 2009 at 11:55 PM EST #

what is the error that you get?

Posted by susan on February 07, 2009 at 04:15 AM EST #

Hello once I have mounted the CD I do as you say, and this is the result:

cd /media/VB\* - No such file directory

pkgadd -d ./VBoxSolarisAdditions.pkg - pkgadd command not found

Am I REALLY that dumb? :D

Posted by giorgio on February 09, 2009 at 06:08 AM EST #

I just realized that it sounds like you are using Ubuntu as your guest OS. If that's the case, these instructions do not apply because they are specific to using OpenSolaris as the guest.

I happen to have a Ubuntu installation in VBox that I was playing with a few months ago, and I see that the path inside the Ubuntu box to the guest additions CD is /media/cdrom, so you would have to cd /media/cdrom in Ubuntu to get to the guest additions.

The pkgadd command is a Solaris command, not present in Ubuntu. You need to use Ubuntu's command for installing software packages. I don't know what that command is. You should see the VirtualBox documentation. There is a pdf User Guide available from this page: http://www.virtualbox.org/wiki/End-user_documentation and the guide has instructions for installing Linux guest additions. Hope this helps!

Posted by susan on February 09, 2009 at 02:15 PM EST #

YOU ARE A GENIUS!!!!!!
thank you SOOOOOO much :D

Posted by giorgio on February 10, 2009 at 08:39 AM EST #

In my case the Virtualbox geuest additions iso was mounted on a different virtual os every time i clicked the "install guest additions button".You need to go to the main virtualbox window---file--Virtualmedia manager--Browse over to the virtualbox guest additions iso --and release it from any other (not tunning) virtual sessions. Then clicking the install guest additions in open solaris works as expected.

Posted by Hari Jayaram on April 01, 2009 at 03:04 AM EDT #

Many thanks for the post. I'm getting fed up with the lack of information from Sun on how to do things. It's all way too geeky

Posted by Adrian Ward on May 08, 2009 at 06:57 AM EDT #

Mantap, alhamdulillah lancar om :D

Posted by emulanetwork on January 18, 2011 at 10:08 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

morganic

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today