LoginSignup
0
0

More than 5 years have passed since last update.

vagrant upしたらエラーが起きた。

Last updated at Posted at 2016-05-17
Failed to mount folders in Linux guest.

vboxsfが壊れているらしい。

vboxadd setupを再実行

ゲストOSで下記コマンドを実行する
エラーが起きていてもsshでログインしちゃってください。
$ vagrant ssh

[vagrant@vagrant-centos65 ~]$ sudo /etc/init.d/vboxadd setup

Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
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-431.3.1.el6.x86_64

Building the main Guest Additions module                   [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]

kernelをインストール(これは無くてもいいっぽい)

[vagrant@vagrant-centos65 ~]$ sudo yum install http://vault.centos.org/6.5/updates/x86_64/Packages/kernel-devel-2.6.32-431.3.1.el6.x86_64.rpm

[vagrant@vagrant-centos65 ~]$ sudo yum install gcc

再度setup

[vagrant@vagrant-centos65 ~]$ sudo /etc/init.d/vboxadd setup

ゲストOSをログアウトして、ホストOSで再起動

[vagrant@vagrant-centos65 ~]$ exit
$ vagrant halt
$ vagrant up
0
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
0
0