1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VM環境でmount先のディレクトリにシンボリックリンクを貼る

Last updated at Posted at 2019-06-28

前提

vagrantでマウントできていること

vagrantがマウントできない人

一旦、vagrantをhaltして、以下コマンドを叩く

$ vagrant plugin install vagrant-vbguest
$ vagrant reload

vagrant up時に自動的に新しいバージョンのGuest Additionsに更新してくれる「vagrant-vbguest」というプラグインをインストール

以下の手順で開発をしやすくしてみた

(1). mountコマンドで下準備

$ sudo mount -t C:\Users\Owner\Desktop\VM\public ~/vagrant/public -o username=share,password=share,iocharset=utf8,file_mode=0777,dir_mode=0777

(2). シンボリックリンクを貼る

$ ln -s ~/vagrant/public /var/www/html/

ちゃんと実行できているか疎通確認

  1. ホストもゲストも空である
    image.png
    image.png

  2. ゲストにファイルつくる
    image.png
    image.png
    image.png
    image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?