LoginSignup
1
0

More than 5 years have passed since last update.

centos7【centos7.6 && Virtualbox5.2.22のGuestAdditionsのインストールでこける】

Last updated at Posted at 2018-12-11

環境

Virtualbox: 5.2.22
Guest OS: centos7.6(kernel:3.10.0-957.1.3.el7)
Host OS: centos7.5

現象

2018/12/12現在、kernelのupdateをかけてからguestadditionsをインストールしようとしたらエラーした。
画面サイズがディスプレイいっぱいにならなかったり、ホストとの共有ディレクトリやクリップボード共有も無効となる。

エラーの内容

GuestAdditionsのインストール途中でエラーメッセージを確認しろというメッセージが出てインストールができない。
※dkms,make,gcc,bzip2,gcc-c++,kernel-headers,kernel-devel,perlはインストール済み
※kernel-headersとkernelのバージョンも一致していることを確認済み

$ cat /var/log/vboxadd-install.log

chcon: can't apply partial context to unlabeled file '/opt/VBoxGuestAdditions-5.2.22/src/vboxguest-5.2.22/build_in_tmp'
chcon: can't apply partial context to unlabeled file '/opt/VBoxGuestAdditions-5.2.22/other/mount.vboxsf'
chcon: can't apply partial context to unlabeled file '/var/lib/VBoxGuestAdditions/lib/libGL.so.1'

$ cat /var/log/vboxadd-setup.log

Building the main Guest Additions module.
Building the shared folder support module.
Building the graphics driver module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-957.1.3.el7.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
(以下略)


エラーのメッセージは以下URLと同じ現象
https://www.centos.org/forums/viewtopic.php?t=69013&p=289780

解決策

上記URLによると、残念ながら次のvirtualboxのバージョンアップ(5.2.23)まで待つか、どうしてもcentos7.6でやるならvirtualbox以外の仮想化ツールを使うしかなさそう。

参考

2018/12/12現在、以下からvirtualbox 5.2.23のTestbuildsは入手可能。
https://www.virtualbox.org/wiki/Testbuilds
VirtualboxのticketにはTestbuildsでcentos7.6で成功したとの書き込みもあるよう。
https://www.virtualbox.org/ticket/18093

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0