Install vboxguestadditions 4.1.10 for opensuse 12.1 in the Virtual Machine

Source: Internet
Author: User
Preface

After the opensuse 12.1 operating system is installed in virtualbox 4.1.10, it comes with vboxguestadditions 4.1.4, as shown below:

Ben @ vbox: ~> Zypper search virtualbox-guest Loading repository data... reading installed packages... S | Name | summary | type -- + ---------------------------- + bytes + -------- | 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 | packageben @ vbox: ~> Ben @ vbox: ~> Zypper search-s virtualbox-guest-KMP-Desktop Loading repository data... reading installed packages... S | Name | type | version | arch | repository -- + response + --------- + ------------------------ + -------- + ----------------------- 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-Ossben @ vbox: ~> Ben @ vbox: ~> Zypper info virtualbox-guest-KMP-Desktop Loading repository data... reading installed packages... information for package virtualbox-guest-KMP-desktop: Repository: 163/ossname: virtualbox-guest-KMP-Skip topversion: 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 is an extremely feature rich, high Performance productfor enterprise MERs, it is also the only professional solutionthat is freely available as open source software under the terms of thegnu Public License (GPL ).

The advantage is that you do not need to install the enhancement feature in virtualbox. The disadvantage is that the version of the enhancement feature is too low to be 4.1.4, and the latest version is 4.1.10.

Now let's start installing vboxguestadditions 4.1.10.

Uninstall vboxguestadditions of earlier versions

First, run the zypper command to uninstall vboxguestadditions 4.1.4:

Ben @ vbox: ~>Sudo zypper remove virtualbox-guest-KMP-desktop virtualbox-guest-tools virtualbox-guest-x11Loading repository data... reading installed packages... resolving package dependencies... the following packages are going to be removed: virtualbox-guest-KMP-desktop virtualbox-guest-tools virtualbox-guest-x113 packages to remove. after the operation, 6.1 MIB will 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]
Preparations

Then make some preparations:

Ben @ vbox: ~>Sudo zypper refresh Repository '2017/non-Oss' is up to date. repository '2017/Oss' is up to date. repository '2017/Update' is up to date. repository 'updates for opensuse 12.1 12.1-1.4 'is up to date. repository 'opensuse-12.1-non-Oss' is up to date. repository 'opensuse-12.1-Oss' is up to date. all repositories have been refreshed. ben @ vbox: ~> Sudo zypper update Loading repository data... reading installed packages... nothing to do. Ben @ vbox: ~> Sudo zypper install make gcc Loading 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. ben @ vbox: ~>Uname- Linux vbox 3.1.9-1.4- Desktop #1 SMP preempt Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) x86_64 x86_64 x86_64 GNU/linuxben @ vbox: ~> Sudo zypper install kernel-Desktop-Devel Loading 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 is to say, install the make, GCC, and kernel-desktop-devel software packages first. From the above, we can see that these software packages have been installed on my machine.

In addition, install the dkms Software Package first:

Be sure to install dkms before installing the Linux guest additions. If dkms is not available or not installed, the guest kernel modules will 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 mainstream Linux operating systems basically support dkms. This is terrible. As mentioned above, if the kernel of the opensuse operating system is upgraded in the future, The sudo/etc/init. d/vboxadd setup command will be run manually every time.

Start Installation

Now, copy the vboxguestadditions. ISO file under the virtualbox software installation directory to the opensuse operating system, and then:

Ben @ vbox :~ /Repo/vboxguestadditions> 7z x vboxguestadditions. ISO 7-zip [64] 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 32 bitextracting 32bit/os2extracting 32bit/os2/vboxguest. sysextracting 32bit/os2/vboxservice.exe extracting 32bit/os2/gengradd. dllextracting 32bit/os2/libc063.dllextracting 32bit/os2/readme.txt extracting 32bit/os2/vboxmou Se. sysextracting 32bit/readme.txt extracting 64 bitextracting 64bit/readme.txt extracting Autorun. infextracting vboxlinuxadditions. runextracting vboxsolarisadditions. pkgextracting VBoxWindowsAdditions-amd64.exeExtracting VBoxWindowsAdditions-x86.exeExtracting vboxwindowsadditions.exe extracting Autorun. shextracting runasroot. sheverything is okfolders: 3 files: 16 size: 50349560 compressed: 50751488ben @ VB Ox :~ /Repo/vboxguestadditions> Sudo./vboxlinuxadditions. Run Verifying 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: script '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 Done Removing existing virtualbox non-dkms Kernel Modules Done Building the virtualbox guest additions kernel modulesbuilding the main guest additions Module Done Building the shared folder Support Module Done Building the OpenGL Support Module Done Doing non-kernel setup of the guest Additions Done You shoshould restart your guest to make sure the new modules are actually usedinsserv: Warning: script 's01atop 'missing LSB tags and overridesinsserv: Warning: script 'atop' missing LSB tags and tags: warning: script 's01atop' missing LSB tags and overridesinsserv: Warning: script 'atop' missing LSB tags and usage: Warning: script 's01atop 'Sing mislsb tags and overridesinsserv: Warning: script 'atop 'missing LSB tags and overridesinsserv: Warning: script 's01atop' missing LSB tags and usage: Warning: script 'atop 'missing LSB tags and overridesinstalling the window system drivers Failed (Cocould not find the X. org or xfree86 window system .)

The final installing the window system drivers failure is normal, because I installed the opensuse operating system in text mode and did not install x-window at all.

Ben @ vbox :~ /Repo/vboxguestadditions>Ll/OPTTotal 8drwxr-xr-x 8 Root 4096 Mar 4 mono-2.10.9drwxr-xr-x 8 root 4096 Mar 17VBoxGuestAdditions-4.1.10

We can see that vboxguestadditions is installed in the/OPT directory.

Finally, restart the VM to complete the installation:

 
Ben @ vbox: ~>Sudo/sbin/shutdown-R nowBroadcast message from Ben @ vbox on pts/0 (SAT, 17 Mar 2012 16:27:46 + 0800): The system is going down for reboot now!
Status after installation

In virtualbox, allocate a data space for the opensuse operating system named ISO and set it to auto-mount, as shown below:

After the opensuse operating system is started, there is a directory starting with SF _ in the/Media Directory, as shown below:

Ben @ vbox: ~>DF-HFilesystem size used avail use % mounted onrootfs 9.1g 2.7g 5.9g 32%/devtmpfs 242 m 32 K 242 m 1%/devtmpfs 246 M 0 246 m 0%/dev/shmtmpfs 246 M 308 K 245 m 1%/run/dev/sda1 9.1g 2.7g 5.9g 32%/tmpfs 246 M 0 246 m 0%/sys/fs/cgrouptmpfs 246 M 308 K 245 m 1%/var/ runtmpfs 246 M 308 K 245 m 1%/var/locktmpfs 246 M 0 246 m 0%/medianone 80g 42g 39g 53%/Media/sf_isoBen @ vbox: ~>Ll/MediaTotal 4drwxrwx --- 1 RootVboxsf4096 Mar 17Sf_iso

This directory belongs to the vboxsf user group, so we use the following command to add ourselves to this user group:

Ben @ vbox: ~>Sudo/usr/sbin/usermod-A vboxsf 'whoam'Ben @ vbox: ~>Grep 'whoam'/etc/groupVideo: X: 33:BenSudo :! : 1000:BenVboxsf :! : 1001:Ben

If the data space is not auto-mount, you can use sudo Mount-T vboxsfISO/Mnt command for manual installation.

References
    • Vritualbox User Manual: Chapter 4. Guest Additions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.