揮発性のメモ2

http://d.hatena.ne.jp/iww/

CentOS 6にGuest Additionsを入れる

VirtualBox4.2.12で確認
【virtualbox】Guest Additionsインストール方法【centos】
を参考にしながら、CentOS 6.4にGuest Additionsをインストールする

yum install gcc make
yum install kernel-devel-2.6.32-358.el6.i686
/mnt/VBoxLinuxAdditions.run install

インストールコマンドは実行すると、前回インストールした分を削除してから作業を始めるので
何回実行しても大丈夫。
インストールが完了すると自動的に起動して有効になる。

yum install kernel-devel

としてからインストール作業をおこなったら次のエラーが出た

Building the VirtualBox Guest Additions kernel modules
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-358.el6.i686

Building the main Guest Additions module                   [失敗]
(Look at /var/log/vboxadd-install.log to find out what went wrong)

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=37385
の人たちも言ってるようにインストールされてるパッケージとカーネルバージョンが違うよという話