tieshow 2013-01-18
在 VirtualBox 4.1.10 软件中安装 openSUSE 12.1 操作系统后,它已经自带了 VBoxGuestAdditions 4.1.4,如下所示:
ben@vbox:~> zypper search virtualbox-guest Loading repository data... Reading installed packages... S | Name | Summary | Type --+------------------------------+--------------------------------------------+-------- | virtualbox-guest-kmp-default | Guest kernel modules for VirtualBox | package i | virtualbox-guest-kmp-desktop | Guest kernel modules for VirtualBox | package | virtualbox-guest-kmp-pae | Guest kernel modules for VirtualBox | package i | virtualbox-guest-tools | VirtualBox guest tools | package i | virtualbox-guest-x11 | VirtualBox X11 drivers for mouse and video | package ben@vbox:~> ben@vbox:~> zypper search -s virtualbox-guest-kmp-desktop Loading 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/Oss i | virtualbox-guest-kmp-desktop | package | 4.1.4_k3.1.0_1.1-3.2.3 | x86_64 | openSUSE-12.1-Oss i | virtualbox-guest-kmp-desktop | package | 4.1.4_k3.1.0_1.1-3.2.3 | x86_64 | openSUSE-12.1-12.1-1.4 v | virtualbox-guest-kmp-desktop | package | 4.1.4_k3.1.0_1.1-3.2.3 | i586 | 163/Oss v | virtualbox-guest-kmp-desktop | package | 4.1.4_k3.1.0_1.1-3.2.3 | i586 | openSUSE-12.1-Oss ben@vbox:~> ben@vbox:~> zypper info virtualbox-guest-kmp-desktop Loading repository data... Reading installed packages... Information for package virtualbox-guest-kmp-desktop: Repository: 163/Oss Name: virtualbox-guest-kmp-desktop Version: 4.1.4_k3.1.0_1.1-3.2.3 Arch: x86_64 Vendor: openSUSE Installed: Yes Status: up-to-date Installed Size: 413.0 KiB Summary: Guest kernel modules for VirtualBox Description: VirtualBox is an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU Public License (GPL).
这样的好处是不用在 VirtualBox 中另外安装增强功能了,坏处是这个增强功能的版本太低了,才 4.1.4,而最新版本是 4.1.10。
现在让我们开始安装 VBoxGuestAdditions 4.1.10 吧。
首先,使用 zypper 命令卸载 VBoxGuestAdditions 4.1.4:
ben@vbox:~> sudo zypper remove virtualbox-guest-kmp-desktop virtualbox-guest-tools virtualbox-guest-x11 Loading 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-x11 3 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 systemctl Warning: Unit file of created job changed on disk, 'systemctl --system daemon-reload' recommended. insserv: warning: script 'S01atop' missing LSB tags and overrides insserv: warning: script 'atop' missing LSB tags and overrides Removing 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]