ホスト側のディレクトリをLinux仮想マシンでマウントする
環境
方法
準備。
sudo apt-get install open-vm-tools sudo mkdir /mnt/hgfs
- 都度マウントしたい場合
以下を実行する。
$ sudo vmhgfs-fuse -o allow_other -o auto_unmount .host:/ /mnt/hgfs
- 起動時に自動マウントしたい場合
/etc/fstabの末尾に以下を追記する。お好みでuidやgidのオプションを追加してください。
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,auto_unmount,defaults 0 0