Help us understand the problem. What is going on with this article?

カーネルアップデート後にVirtualBoxの共有フォルダが機能しなくなった場合の対処方法

More than 3 years have passed since last update.

Vagrantなどで下手にカーネルをアップデートすると,共有フォルダが機能しなくなるのでその場合の対処方法.

Cent OS 6の場合

以下のコマンドをゲスト内で実行してカーネルモジュールを再コンパイルします.

sudo /etc/init.d/vboxadd setup

その後,再起動します.

Cent OS 7の場合

バージョンは適宜書き換えてください.もし,ここにvboxaddが無い場合は,/etc/systemd/system/multi-user.target.wants/vboxadd.serviceをみるとExecStart=の後ろに書いてあるはずです.

sudo /opt/VBoxGuestAdditions-5.0.12/init/vboxadd setup

自動的に再コンパイルを実行する

そもそもカーネルアップデートの度に再コンパイルするのは面倒なので,DKMSを用いて自動化します.DKMSはEPELリポジトリに入っているので,こちらを有効化してからインストールします.

sudo yum install epel-release
sudo yum install dkms
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした