Guenadi N Jilevski's Oracle BLOG

Oracle RAC, DG, EBS, DR and HA DBA BLOG

Upgrade Guest Additions in Oracle VM VirtualBox (Solaris and Linux guests)

Upgrade Guest Additions in Oracle VM VirtualBox (Solaris and Linux guests)

Upgrading VirtualBox requires respective upgrade of the guest additions to ensure that users benefit from new feature or bug fixes. In this article you will have a look at how to upgrade Guest Additions in Solaris and OEL environment.

 

Upgrading Guest Additions for Linux

On Linux as root from the virtual CD execute sh ./VBoxLinuxAdditions.run command.

[root@raclinux2 bin]# cd /media/VBOXADDITIONS_4.1.0_73009

[root@raclinux2 VBOXADDITIONS_4.1.0_73009]# ls

32Bit AUTORUN.INF runasroot.sh VBoxSolarisAdditions.pkg VBoxWindowsAdditions.exe

64Bit autorun.sh VBoxLinuxAdditions.run VBoxWindowsAdditions-amd64.exe VBoxWindowsAdditions-x86.exe

[root@raclinux2 VBOXADDITIONS_4.1.0_73009

[root@raclinux2 VBOXADDITIONS_4.1.0_73009]# sh ./VBoxLinuxAdditions.run

Verifying archive integrity… All good.

Uncompressing VirtualBox 4.1.0 Guest Additions for Linux………

VirtualBox Guest Additions installer

Removing installed version 4.1.0 of VirtualBox Guest Additions…

Removing existing VirtualBox DKMS kernel modules [ OK ]

Removing existing VirtualBox non-DKMS kernel modules [ OK ]

Building the VirtualBox Guest Additions kernel modules

Not building the VirtualBox advanced graphics driver as this Linux version is

too old to use it.

Building the main Guest Additions module [ OK ]

Building the shared folder support module [ OK ]

Doing non-kernel setup of the Guest Additions [ OK ]

You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers

Installing X.Org 7.1 modules [ OK ]

Setting up the Window System to use the Guest Additions [ OK ]

You may need to restart the hal service and the Window System (or just restart

the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]

[root@raclinux2 VBOXADDITIONS_4.1.0_73009]#

Upgrading Guest Additions for Solaris

An attempt to install the new guest additions will probably result in the following error message.

Current administration requires that a unique instance of the

<SUNWvboxguest> package be created. However, the maximum number of

instances of the package which may be supported at one time on the

same system has already been met.

Apparently, a Solaris package exists and needs to be removed. Remove the Solaris package SUNWvboxguest using the pkgrm SUNWvboxguest command as show below.

# pkgrm SUNWvboxguest

The following package is currently installed:

 SUNWvboxguest Oracle VM VirtualBox Guest Additions

(i386) 4.0.12,REV=r72916.2011.07.15.19.05

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWvboxguest>

This package contains scripts which will be executed with super-user

permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y

## Verifying package <SUNWvboxguest> dependencies in global zone

## Processing package information.

## Executing preremove script.

VirtualBox Guest Additions – preremove script

This script will unload the VirtualBox Guest kernel module…

VirtualBox FileSystem kernel module not loaded.

Device busy

Cannot unload module: vboxguest

Will be unloaded upon reboot.

VirtualBox guest kernel module unloaded.

Restoring X.Org…

Done.

## Removing pathnames in class

## Removing pathnames in class

/var/svc/manifest/system/virtualbox/vboxservice.xml

/usr/lib/VBoxOGLpassthroughspu.so

/usr/lib/VBoxOGLpackspu.so

/usr/lib/VBoxOGLfeedbackspu.so

/usr/lib/VBoxOGLerrorspu.so

/usr/lib/VBoxOGLcrutil.so

/usr/lib/VBoxOGLarrayspu.so

/usr/lib/VBoxOGL.so

/usr/kernel/fs/vboxfs

/usr/kernel/fs/amd64/vboxfs

/usr/kernel/drv/vboxguest.conf

/usr/kernel/drv/vboxguest

/usr/kernel/drv/amd64/vboxguest

/usr/dt/config/Xsession.d/1099.vboxclient

/usr/bin/VBoxService

/usr/bin/VBoxControl

/usr/bin/VBoxClient-all

/usr/bin/VBoxClient

/usr/X11/lib/modules/input/vboxmouse_drv.so

/usr/X11/lib/modules/input/amd64/vboxmouse_drv.so

/usr/X11/lib/modules/drivers/vboxvideo_drv.so

/usr/X11/lib/modules/drivers/amd64/vboxvideo_drv.so

/opt/VirtualBoxAdditions/x11restore.pl

/opt/VirtualBoxAdditions/x11config15sol.pl

/opt/VirtualBoxAdditions/x11config.pl

/opt/VirtualBoxAdditions/vboxguest.sh

/opt/VirtualBoxAdditions/vboxclient.desktop

/opt/VirtualBoxAdditions/i386/vboxfsmount

/opt/VirtualBoxAdditions/i386/pam_vbox.so

/opt/VirtualBoxAdditions/i386/VBoxService

/opt/VirtualBoxAdditions/i386/VBoxControl

/opt/VirtualBoxAdditions/i386/VBoxClient

/opt/VirtualBoxAdditions/i386

/opt/VirtualBoxAdditions/amd64/vboxfsmount

/opt/VirtualBoxAdditions/amd64/pam_vbox.so

/opt/VirtualBoxAdditions/amd64/VBoxService

/opt/VirtualBoxAdditions/amd64/VBoxControl

/opt/VirtualBoxAdditions/amd64/VBoxClient

/opt/VirtualBoxAdditions/amd64

/opt/VirtualBoxAdditions/VBoxService

/opt/VirtualBoxAdditions/VBoxISAExec

/opt/VirtualBoxAdditions/VBoxControl

/opt/VirtualBoxAdditions/VBoxClient

/opt/VirtualBoxAdditions/VBox.sh

/opt/VirtualBoxAdditions/LICENSE

/opt/VirtualBoxAdditions/1099.vboxclient

/opt/VirtualBoxAdditions

/etc/fs/vboxfs/mount

/etc/fs/vboxfs

/dev/vboxguest

## Updating system information.

Removal of <SUNWvboxguest> was successful.

#

Change directory to the virtual CD drive and add the new package.

# cd cdrom

# ls

cdrom0 vboxadditions_4.0.12_72916

vboxadditions_4.0.10_72479 vboxadditions_4.1.0_73009

# cd vboxadditions_4.1.0_73009

# ls

32Bit VBoxWindowsAdditions-amd64.exe

64Bit VBoxWindowsAdditions-x86.exe

AUTORUN.INF VBoxWindowsAdditions.exe

VBoxLinuxAdditions.run autorun.sh

VBoxSolarisAdditions.pkg runasroot.sh

# pkgadd -d VBoxSolarisAdditions.pkg

The following packages are available:

 1 SUNWvboxguest Oracle VM VirtualBox Guest Additions

(i386) 4.1.0,REV=r73009.2011.07.19.12.42

Select package(s) you wish to process (or ‘all’ to process

all packages). (default: all) [?,??,q]: y

ERROR: Entry does not match available menu selection. Enter the number

 of the menu item you wish to select, or the token which is associated

with the menu item, or a partial string which uniquely identifies the

token for the menu item. Enter ?? to reprint the menu.

Select package(s) you wish to process (or ‘all’ to process

all packages). (default: all) [?,??,q]: y

ERROR: Entry does not match available menu selection. Enter the number

 of the menu item you wish to select, or the token which is associated

with the menu item, or a partial string which uniquely identifies the

token for the menu item. Enter ?? to reprint the menu.

Select package(s) you wish to process (or ‘all’ to process

all packages). (default: all) [?,??,q]: all

Processing package instance from cdrom/vboxadditions_4.1.0_730 09/VBoxSolarisAdditions.pkg>

Oracle VM VirtualBox Guest Additions(i386) 4.1.0,REV=r73009.2011.07.19.12.42

Oracle Corporation

Using </> as the package base directory.

## Processing package information.

## Processing system information.

## Verifying package dependencies.

## 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 [y,n,?] y

Installing Oracle VM VirtualBox Guest Additions as

## Installing part 1 of 1.

/etc/fs/vboxfs/mount

/opt/VirtualBoxAdditions/1099.vboxclient

/opt/VirtualBoxAdditions/LICENSE

/opt/VirtualBoxAdditions/VBox.sh

/opt/VirtualBoxAdditions/VBoxClient

/opt/VirtualBoxAdditions/amd64/VBoxClient.Z

/opt/VirtualBoxAdditions/amd64/VBoxControl.Z

/opt/VirtualBoxAdditions/amd64/VBoxService.Z

/opt/VirtualBoxAdditions/amd64/pam_vbox.so

/opt/VirtualBoxAdditions/amd64/vboxfs

/opt/VirtualBoxAdditions/amd64/vboxfs_s10

/opt/VirtualBoxAdditions/amd64/vboxfsmount

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_110.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_13.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_14.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_15.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_16.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_17.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_18.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_19.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_70.so.Z

/opt/VirtualBoxAdditions/amd64/vboxmouse_drv_71.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_110.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_13.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_14.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_15.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_16.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_17.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_18.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_19.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_70.so.Z

/opt/VirtualBoxAdditions/amd64/vboxvideo_drv_71.so.Z

/opt/VirtualBoxAdditions/i386/VBoxClient.Z

/opt/VirtualBoxAdditions/i386/VBoxControl.Z

/opt/VirtualBoxAdditions/i386/VBoxService.Z

/opt/VirtualBoxAdditions/i386/pam_vbox.so

/opt/VirtualBoxAdditions/i386/vboxfs

/opt/VirtualBoxAdditions/i386/vboxfs_s10

/opt/VirtualBoxAdditions/i386/vboxfsmount

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_110.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_13.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_14.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_15.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_16.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_17.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_18.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_19.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_70.so.Z

/opt/VirtualBoxAdditions/i386/vboxmouse_drv_71.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_110.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_13.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_14.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_15.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_16.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_17.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_18.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_19.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_70.so.Z

/opt/VirtualBoxAdditions/i386/vboxvideo_drv_71.so.Z

/opt/VirtualBoxAdditions/solaris_xorg.conf

/opt/VirtualBoxAdditions/solaris_xorg_modeless.conf

/opt/VirtualBoxAdditions/vboxclient.desktop

/opt/VirtualBoxAdditions/vboxguest.sh

/opt/VirtualBoxAdditions/x11config.pl

/opt/VirtualBoxAdditions/x11config15sol.pl

/opt/VirtualBoxAdditions/x11restore.pl

/usr/bin/VBoxClient

/usr/bin/VBoxClient-all

/usr/bin/VBoxControl

/usr/bin/VBoxService

/usr/kernel/drv/amd64/vboxguest

/usr/kernel/drv/vboxguest

/usr/kernel/drv/vboxguest.conf

/usr/lib/VBoxOGL.so

/usr/lib/VBoxOGLarrayspu.so

/usr/lib/VBoxOGLcrutil.so

/usr/lib/VBoxOGLerrorspu.so

/usr/lib/VBoxOGLfeedbackspu.so

/usr/lib/VBoxOGLpackspu.so

/usr/lib/VBoxOGLpassthroughspu.so

/var/svc/manifest/system/virtualbox/vboxservice.xml

[ verifying class <none> ]

/opt/VirtualBoxAdditions/VBoxControl

/opt/VirtualBoxAdditions/VBoxISAExec

/opt/VirtualBoxAdditions/VBoxService

## Executing postinstall script.

Uncompressing files…

Configuring VirtualBox guest kernel module…

VirtualBox guest kernel module loaded.

Creating links…

Installing mouse and video drivers for X.Org 1.3.0…

Configuring client…

Installing 64-bit shared folders module…

Installing 32-bit shared folders module…

Configuring service…

Updating boot archive…

Done.

Please re-login to activate the X11 guest additions.

If you have just un-installed the previous guest additions a REBOOT is required.

Installation of <SUNWvboxguest> was successful.

#


July 27, 2011 - Posted by | oracle

2 Comments »

  1. [...] Upgrade Guest Additions in Oracle VM VirtualBox (Solaris and Linux … [...]

    Pingback by Solaris vm | Checkinout | August 1, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 778 other followers

%d bloggers like this: