Objective
After installing the OpenSUSE 12.1 operating system in the VirtualBox 4.1.10 software, it has its own vboxguestadditions 4.1.4, as follows:
[Email protected]:~>Zypper Search Virtualbox-guestLoading Repository Data ... Reading Installed packages ... S | Name | Summary | type--+------------------------------+--------------------------------------------+--------| Virtualbox-guest-kmp-default | Guest kernel modules for VirtualBox | Packagei |Virtualbox-guest-kmp-desktop| Guest kernel modules for VirtualBox | Package | Virtualbox-guest-kmp-pae | Guest kernel modules for VirtualBox | Packagei |Virtualbox-guest-tools| VirtualBox Guest Tools | Packagei |virtualbox-guest-x11| VirtualBox X11 drivers for mouse and video | Package[email Protected]:~>[email protected]:~>zypper search-s virtualbox-guest-kmp-desktopLoading Repository Data ... Reading Installed packages ... S | Name | Type | Version | Arch | repository--+------------------------------+---------+------------------------+--------+----------------------- I | Virtualbox-guest-kmp-desktop | Package |4.1.4_k3.1.0_1.1-3.2.3 | x86_64 | 163/ossi | Virtualbox-guest-kmp-desktop | Package |4.1.4_k3.1.0_1.1-3.2.3 | x86_64 | Opensuse-12.1-ossi | Virtualbox-guest-kmp-desktop | Package |4.1.4_k3.1.0_1.1-3.2.3 | x86_64 | opensuse-12.1-12.1-1.4v | Virtualbox-guest-kmp-desktop | Package |4.1.4_k3.1.0_1.1-3.2.3 | i586 | 163/OSSV | Virtualbox-guest-kmp-desktop | Package |4.1.4_k3.1.0_1.1-3.2.3 | i586 | Opensuse-12.1-oss[email Protected]:~>[email protected]:~>Zypper Info virtualbox-guest-kmp-desktopLoading Repository Data ... Reading Installed packages ... Information for package virtualbox-guest-kmp-desktop:repository:163/ossname:virtualbox-guest-kmp-desktopversion:4.1.4_k3.1.0_1.1-3.2.3arch:x86_64vendor:opensuseinstalled:yesstatus:up-to-dateinstalled size:413.0 Kibsummary:guest Kernel modules for Virtualboxdescription:virtualbox are an extremely feature rich, high performance productfor Enterprise C Ustomers, it is also the only professional solutionthat is freely available as Open Source software under the terms of the GNU public License (GPL).
The advantage is that you don't have to install additional enhancements in the VirtualBox, the downside is that the enhanced version is too low for 4.1.4, and the latest version is 4.1.10.
Now let's start installing Vboxguestadditions 4.1.10.
Uninstalling older versions of Vboxguestadditions
First, use the Zypper command to uninstall Vboxguestadditions 4.1.4:
[Email protected]:~>sudo zypper remove virtualbox-guest-kmp-desktop virtualbox-guest-tools virtualbox-guest-x11Loading Repository Data ... Reading Installed packages ... Resolving package dependencies ... The following packages is going to be removed:virtualbox-guest-kmp-desktop virtualbox-guest-tools virtualbox-guest-x11 3 Packages to remove. After the operation, 6.1 MiB would be freed. Continue? [y/n/?] (y): removing virtualbox-guest-tools-4.1.4-3.2.3 [done]additional rpm output:redirecting to Systemctlwarning:unit file of created job changed on disk, ' Systemctl--system daemon-reload ' recommended.insserv:warning:script ' s01atop ' missing LSB tags and overridesinsserv:warning:script ' atop ' missing LSB tags and overridesremoving virtualbox-guest-x11-4.1.4-3. 2.3 [done]removing virtualbox-guest-kmp-desktop-4.1.4_k3.1.0_1.1-3.2.3 [done]
Preparatory work
Then do some preparatory work:
[Email protected]:~>sudo zypper refreshRepository ' 163/non-oss ' is up to date. Repository ' 163/oss ' is up to date. Repository ' 163/update ' is up to date. Repository ' Updates for OpenSUSE 12.1 12.1-1.4 ' are up to date. Repository ' Opensuse-12.1-non-oss ' is up to date. Repository ' Opensuse-12.1-oss ' is up to date. All repositories has been refreshed. [Email protected]:~>sudo zypper updateLoading Repository Data ... Reading Installed packages ... Nothing to do. [Email protected]:~>sudo zypper install make gccLoading Repository Data ... Reading installed packages ... ' gcc ' is already installed. No update candidate for ' gcc-4.6-15.1.3.x86_64 '. The highest available version is already installed. ' Make ' is already installed. No update candidate for ' make-3.82-147.1.2.x86_64 '. The highest available version is already installed. Resolving package dependencies ... Nothing to do. [Email protected]:~>uname-aLinux VBox 3.1.9-1.4-Desktop#1 SMP PREEMPT Fri Jan 08:55:10 UTC (efb5ff4) x86_64 x86_64 x86_64 gnu/linux[email protected]:~>sudo zypper install kernel-Desktop-develLoading Repository Data ... Reading Installed packages ... ' Kernel-desktop-devel ' is already installed. No update candidate for ' kernel-desktop-devel-3.1.9-1.4.1.x86_64 '. The highest available version is already installed. Resolving package dependencies ... Nothing to do.
That means installing make, gcc, and kernel-desktop-devel packages first, as you can see from above, that I've already installed these packages on my machine.
In addition, the DKMS package needs to be installed first:
Be sure to install DKMS before installing the Linux Guest additions. If DKMS isn't available or not installed, the guest kernel modules would need to be recreated manually whenever the guest Kernel is updated using the command/etc/init.d/vboxadd setupas root.
However, the OpenSUSE operating system does not support dkms, while other major Linux operating systems basically support dkms. This is very bad, as described above, after the kernel kernel of the OpenSUSE OS is upgraded, it is necessary to run the Sudo/etc/init.d/vboxadd Setup command manually once each time.
Start installation
Now, copy the Vboxguestadditions.iso file from the VirtualBox software installation directory to the OpenSUSE operating system, and then:
[Email protected]:~/repo/vboxguestadditions>7z x Vboxguestadditions.iso7-zip [+] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18p7zip Version 9.20 (Locale=en_us. utf-8,utf16=on,hugefiles=on,1 CPU) processing archive:VBoxGuestAdditions.isoExtracting 32BitExtracting 32bit/ Os2extracting 32bit/os2/vboxguest.sysextracting 32bit/os2/vboxservice.exeextracting 32Bit/OS2/ Gengradd.dllextracting 32bit/os2/libc063.dllextracting 32bit/os2/readme.txtextracting 32Bit/OS2/ Vboxmouse.sysextracting 32bit/readme.txtextracting 64BitExtracting 64bit/readme.txtextracting AUTORUN. Infextracting vboxlinuxadditions.runextracting vboxsolarisadditions.pkgextracting Vboxwindowsadditions-amd64.exeextracting vboxwindowsadditions-x86.exeextracting Vboxwindowsadditions.exeextracting autorun.shextracting runasroot.sheverything is okfolders:3files:16size:50349 560compressed:50751488[email protected]:~/repo/vboxguestadditions>sudo./vboxlinuxadditions.runVerifying Archive Integrity ... All good. uncompressing VirtualBox 4.1.10 Guest additions for Linux ... VirtualBox Guest Additions installerinsserv:warning:script ' s01atop ' missing LSB tags and overridesinsserv:warning:scr IPT ' atop ' missing LSB tags and overridesinsserv:warning:script ' s01atop ' missing LSB tags and overridesinsserv:warning : script ' atop ' missing LSB tags and overridesremoving existing VirtualBox DKMS kernel modules DoneRemoving existing VirtualBox non-dkms kernel modules DoneBuilding the VirtualBox guest Additions Kernel modulesbuilding The main guest additions module DoneBuilding the shared folder support module DoneBuilding the OpenGL support module DoneDoing non-kernel setup of the Guest additions DoneShould restart your guest to make sure the new modules is actually usedinsserv:warning:script ' s01atop ' missing LSB tags and overridesinsserv:warning:script ' atop ' missing LSB tags and overridesinsserv:warning:script ' s01atop ' missin G LSB tags and overridesinsserv:warning:script ' atop ' missing LSB tags and overridesinsserv:warning:script ' s01atop ' m Issing LSB tags and overridesinsserv:warning:script ' atop ' missing LSB tags and overridesinsserv:warning:script ' s01at Op ' missing LSB tags and overridesinsserv:warning:script ' atop ' missing LSB tags and overridesinstalling the Window Syst EM driversfailed(Could not find the x.org or XFree86 Window System.)
The last installing the Window system drivers failed is normal, because I installed the OpenSUSE operating system is text-mode, there is no X-window installed.
ll/optTotal 8drwxr-xr-x 8 root root 4096 Mar VBoxGuestAdditions-4.1.10
As you can see, the vboxguestadditions is installed in the/OPT directory.
Finally, restart the virtual machine to complete the installation:
Sudo/sbin/shutdown-r Now Broadcast message from [e-mail protected] on pts/0 (Sat, + 16:27:46 +0800): The system is going down for reboot NO W!
Post-installation scenarios
In VirtualBox, assign a data space for the OpenSUSE operating system, the name is ISO, and set to Auto-mount as follows:
After starting the OpenSUSE operating system, in the/media directory there is a corresponding sf_ starting directory, as follows:
[Email protected]:~>df-hFilesystem Size used Avail use% mounted onrootfs 9.1G 2.7G 5.9G 32%/devtmpfs 242M 32K 242M 1%/devtmpfs 246M 0 246M 0%/dev/shmtmpfs 246M 308K 245M 1%/run/dev/sda1 9.1G 2.7G 5.9G 32%/tmpfs 246M 0 246M 0%/sys/fs/cgrouptmpfs 246M 308K 245M 1%/VAR/RUNTMPFS 246M 308K 245M 1%/var/locktmpfs 246M 0 246M 0%/medianone 80G 42G 39G 53%/media/sf_iso[Email protected]:~>Ll/mediaTotal 4drwxrwx---1 rootvboxsf4096 Mar 17 14:33Sf_iso
This directory belongs to the VBOXSF user group, so we use the following command to add ourselves to this user group:
sudo/usr/sbin/usermod-a vboxsf ' WhoAmI ' grep ' whoami '/etc/groupvideo:x:33:ben sudo:!:1000:ben vboxsf:!:1001:ben
If this data space is not auto-mount, you can manually install it with the sudo mount-t vboxsf ISO /mnt command.
Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.
Installing Vboxguestadditions 4.1.10 for OpenSUSE 12.1 in a virtual machine