Low Level Lovers

The stories of low layer programming and developments.

ホスト側のディレクトリをLinux仮想マシンでマウントする

環境

  • ホスト
    Windows 10 1803
    VMware Workstation 14.1.3 build-9474260
  • ゲスト
    Ubuntu Desktop 18.04.1 LTS

方法

準備。

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