SUSE & openSUSE

Tips,Tricks, Tutorials,How Tos and Troubleshooting suse linux

How to install VirtualBox Guest Additions for openSUSE guest OS

Posted by admin on June 22nd, 2008


VirtualBox (now Sun xVM) Guest Additions are a set of drivers and utilities that are shipped as a subset of VirtualBox for the purpose of being installed inside a Guest Computer to improve its performance and cooperation with the rest of the Product.

If you are running openSUSE as a guest OS and want to install the VirtualBox Guest Additions then follow the procedure below:

Install GNU C Compiler, Make and Kernel Source

The VirtualBox Guest Additions require the GNU C compiler, make utility and the Kernel-Source packages to be installed if not previously installed.

Switch user to Root and install the packages

saibaba@opensuse:~> su -
password:

opensuse:~# yast2 –install gcc gcc-c++ make kernel-source

This installs the GNU C, C++ compilers, Kernel-Source package and the make utility.

Now, from the host OS, on the Guest OS Virtualbox Devices menu, click “Install Guest Additions…” this mounts a virtual CD volume  on the openSUSE guest OS under

/media/cdrom/VBOXADDITIONS_<version>

here it is

/media/cdrom/VBOXADDITIONS_1.6.2_31466

Change directory to that window and run the install script

opensuse:~# cd /media/cdrom/VBOXADDITIONS_1.6.2_31466/

opensuse:~# ./VBoxLinuxAdditions.run all

This should install the VirtualBox Guest Additions. Now restart the openSUSE guest OS for the additions to take effect. The Guest Additions improve guest performance and user experience including display settings etc.

Related posts

14 Responses to “How to install VirtualBox Guest Additions for openSUSE guest OS”

  1. JOKe Says:

    Will compiz fusion work after installing guest addons ?

  2. SoB Rogue Says:

    What Version of openSUSE is this for? I followed these direction in 11.0 to no avail. I also came across this on the Virtualbox site:
    http://www.virtualbox.org/wiki/Guest_OSes

    openSUSE 11.0 status is- Works partially, Additions do not support X11 yet

    So I’m guessing that’s why I’m having issues, unless I did something wrong….
    Has anyone else gotten GuestAdditons to work in 11.0?

  3. RickRoller Says:

    No dice in 11.0

    No such client module –install
    The search path follows. It does not include the current directory.
    /y2update/clients
    /root/.yast2/clients
    /usr/share/YaST2/clients

  4. Wade Says:

    I’ve figured this much out in openSuse,

    It should be “opensuse:~# yast2 –install gcc gcc-c++ make kernel-source”
    Note the double dash

    For me it was “cd /media/VBOXADDITIONS_”
    Note the removal of cdrom

    I ran into an issue where it said the last kernel build failed,so the Guest Additions didn’t succeed.I then went to the Install Software section and installed the default kernel, and then tried to install guest additions again and it worked.

  5. Wade Says:

    The comments make the double dash look like one dash, so it should be “opensuse:~# yast2 – -install gcc gcc-c++ make kernel-source” where there are two dashes in front of install, no space in between them.

  6. stanleyxu2005 Says:

    1. Run “Install Software”
    2. Press “CTRL+M” to launch Repository Manager”
    3. Add “http://download.opensuse.org/repositories/Virtualization:/VirtualBox/openSUSE_11.0/” as a new repository
    4. Run “Install Software” again
    5. Type “virtualbox” in Search Box. (You will see three new updates of VirtualBox)
    6. Right click on these new updates and select “Update”
    7. Press “Accept” to finish the update progress
    8. Restart your system
    9. Run “sudo sh ./media/…./VBoxLinux-x86.run”
    10. Restart your system

    Done! Tested with openSUSE v11 + VirtualBox 2.04

  7. Nicolas Says:

    I tried the instructions but I got a fail when i ran the install. The log shows

    “*** Error: unable to find the include directory for your current Linux Kerlnel. Specify KERN_INCL=$ and run Make again.

    Anybody else experience this?

  8. Nicolas Says:

    I thought I posted this yesturday but it seemed to disappear. I tried all the procedures above for opensuse 11.1 and I get a error each time telling me to look in a log file. I do and it says

    “MakeFile:38 *** Error: unable to find the include directory for your current linux kernel. Specify KERN_INCL=”

    Anyone else get this?

  9. Sergio Says:

    Hello Nicolas,

    the following link should help you:

    http://www.virtualbox.org/changeset/375

    I have the same problem, I will try to fix it during the weekend…let me know if ok

    Sergio

  10. Nicolas Says:

    I found my problem. The linux kernels were not matching. A new kernel had been installed off the net as an update but linux source was from the CD. I believe grabbing the kernel off the net fixed the problem.

    I do have a new linux kernel to put in place and new virtual box update I saw go out. I’ll post back if I have any upgrade issues.

  11. Shawn Says:

    With the 2.2.2 VirtualBox update, I followed the instructions given on the top of the page. The only issue was I manually added each package to be installed through the yast2 program itself, instead of using the terminal. I kept getting some sort of unknown command “n” errors. So manually adding one by one through the Install Software option worked just fine, just search for each program listed above. Once installed and rebooted, the additions installed perfectly, the only issue was the xorg enforcement of a static resolution which the installer will tell you how to edit the xorg.conf to remove this enforcement. Did exactly what it said, had to switch to the root user to be able to edit the conf with no permission issues. Once I edited out what the installer asked. rebooted the guest OS and all was fully functioning!

    Hope this helps.

  12. stantman Says:

    To avoid “yast2: invalid option — ‘n’” problem try to use
    yast2 –-install gcc gcc-c++ make kernel-source
    command.

  13. RichardOn Says:

    Interesting site, but much advertisments on him. Shall read as subscription, rss.

  14. chief Says:

    I type yast2 –install gcc gcc-c++ make kernel-source

    Yast2 opens, starts to grab packages, but it says there are 732mb worth of packages? It is also installing things like ‘myspell-british’ and ‘kde4-l10n-en-_GB’

    have I done something wrong? It seems a bit weird that gcc, gcc-c++, make, and kernel-source would be 730mb!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>