Warning: Trying to access array offset on value of type bool in /home/r1029599/public_html/engineer-log.net/wp-content/themes/simplicity2/lib/customizer.php on line 5404

VirtualBox Guest Additions エラー対処法 (CentOS)

目次

エラー内容

CentOS6にGuest Additionsをインストールしたら、起動時はいつもこんあエラーが出る

Starting the VirtualBox Guest Additions  FAILED
(modprobe vboxguest failed)
Starting VirtualBox Guest Addition service VirtualBox Additions module not loaded!
bootログファイル
Welcome to CentOS 
Starting udev:  GOK
Setting hostname localhost.localdomain:  OK
Setting up Logical Volume Management: 3 logical volume(s) in volume group "VolGroup" now active OK
Checking filesystems
/dev/mapper/VolGroup-lv_root: clean, 907710/12148736 files, 35971170/48578560 blocks
/dev/sda1: clean, 66/128016 files, 172137/512000 blocks
/dev/mapper/VolGroup-lv_home: clean, 690/327040 files, 85552/1310720 blocks
OK
Remounting root filesystem in read-write mode:  OK
Mounting local filesystems:  OK
Enabling local filesystem quotas:  OK
Enabling /etc/fstab swaps:  OK
Entering non-interactive startup
Calling the system activity data collector (sadc)... 
Starting monitoring for VG VolGroup: 3 logical volume(s) in volume group "VolGroup" monitored OK
Bringing up loopback interface:  OK
Bringing up interface eth1:  Determining if ip address 192.168.8.167 is already in use for device eth1... OK
Starting auditd: OK
Starting portreserve: OK
Starting system logger: OK
Starting irqbalance: OK
Starting rpcbind: OK
Starting system message bus: OK
Setting network parameters... OK
Starting NetworkManager daemon: OK
Starting Avahi daemon... OK
Starting NFS statd: OK
Starting cups: OK
Starting acpi daemon: OK
Starting HAL daemon: OK
Retrigger failed udev eventsOK
Loading autofs4: OK
Starting automount: OK
Starting the VirtualBox Guest Additions  FAILED
(modprobe vboxguest failed)
Starting VirtualBox Guest Addition service VirtualBox Additions module not loaded!
Starting kdump:OK
Starting sshd: OK
Starting ntpd: OK
Starting mysqld:  OK
Starting postfix: OK
Starting abrt daemon: OK
Starting httpd: OK
Starting crond: OK
Starting SMB services: OK
Starting atd: OK
Starting certmonger: OK
解決方法

ネットで色々調べてみて、なんとか解決しました。

まず、依然パッケージをインストールしましょう!

# yum -y update kernel
# yum -y install kernel-devel kernel-headers dkms gcc gcc-c++

インストール完了したら、再起動しましょう!
再起動したら、エラー内容がちょっと変わりましたね

Starting the VirtualBox Guest Additions  FAILED
(modprobe vboxguest failed)
Starting VirtualBox Guest Addition service VirtualBox Additions module not loaded!
No kdump initial ramdisk found.WARNING
Rebuilding /boot/initrd-2.6.32-642.1.1.el6.i686kdump.img

しかし、vboxをリビルドしたら、エラーが治りましたw

# /etc/init.d/vboxadd setup

– PR –
– PR –