VirtualBoxのゲスト(CentOS)にGuestAdditionsをインストールする
- windows7 64bit(HostOS)
- CentOS 5.5(GuestOS)
- VirtualBox 3.2.4 r62467
準備
[root@vyunspire ~]# yum -y install kernel-devel [root@vyunspire ~]# yum -y install gcc
インストール
[root@vyunspire ~]# cd /media/VBOXADDITIONS_3.2.4_62467/ [root@vyunspire ~]# sh ./VBoxLinuxAdditions-x86.run
- 背景
何もしないで、GuestAdditionsをインストールするカーネルモジュールがインストールできない。
[root@vyunspire VBOXADDITIONS_3.2.4_62467]# sh ./VBoxLinuxAdditions-x86.run Verifying archive integrity... All good. Uncompressing VirtualBox 3.2.4 Guest Additions for Linux........ VirtualBox Guest Additions installer Removing installed version 3.2.4 of VirtualBox Guest Additions... Building the VirtualBox Guest Additions kernel modules [失敗] (Your system does not seem to be set up to build kernel modules. Look at /var/log/vboxadd-install.log to find out what went wrong) 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 ]
以下のログを参照しつつ、インストールしてみた。
/var/log/vboxadd-install.log