VirtualBoxでGuest Additionsをインストールする

電脳備忘録
VirtualBoxで共有フォルダを利用するにはGuest Additionsをインストールしないといけないようです。 早速対応したのですが、いろいろ躓いたので備忘録に残しておこうと思います。

お約束

まいどのことですが、参照は自己責任でお願いいたします。

環境

ゲストOS...Scientific Linux6.1 64bit版

インストール

VirtualBoxのメニュー「デバイス」-「Guest Additionsのインストール」を選択し、インストールを実行。
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.2 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.1.2 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
The make utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
The gcc utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-131.6.1.el6.x86_64
Building the main Guest Additions module                   [失敗]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
Installing X.Org Server 1.7 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  ]
Press Return to close this window...
失敗してる。メッセージを見ると、"The gcc utility was not found."とか" The missing package can be probably installed with
yum install kernel-devel-2.6.32-131.6.1.el6.x86_64"といった記述があるので、どうやらパッケージが足りていないようです。

追加するパッケージ

・gcc
・kernel-devel

追加方法

yum install gcc kernel-devel
再度インストールを実施。
Building the VirtualBox Guest Additions kernel modules
The make utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
Building the main Guest Additions module                   [失敗]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
また怒られた...。ログ(/var/log/vboxadd-install.log)を見てみる。
/usr/src/vboxguest-4.1.2/vboxguest/build_in_tmp: line 55: make: コマンドが見つかりません
どうやらmakeがインストールされていないようなのでmakeをインストール...。

追加するパッケージ

・make

追加方法

yum install make
再度インストールを実施したところ今度はうまくいきました。

広告

ブログの維持費に充てるでございます・・・。