VirtualBox でホスト Mac OS からゲスト Linux システムにフォルダーを共有する [closed] 質問する

VirtualBox でホスト Mac OS からゲスト Linux システムにフォルダーを共有する [closed] 質問する

Virtual Box でホスト (Mac) とゲスト OS (Ubuntu) 間でフォルダーを共有するにはどうすればよいですか?

ベストアンサー1

最新バージョンのVirtualBox(4.3.10)が必要です。ゲスト追加機能がインストールされましたUbuntu で。

  • 仮想マシンの電源をオフにしてVirtualBoxで選択した状態で、マシン > 設定... > 共有フォルダに移動します。
  • 「フォルダー パス」の場合は、アイコンをクリックして共有するフォルダーを参照します。
  • 「フォルダー名」には、共有を説明する名前を入力します。
  • 「OK」をクリックして、仮想マシンを再起動します。
  • 基本的に空のフォルダーであるマウント ポイントを作成します。
  • ターミナルを起動して次のように入力します: sudo mount -t vboxsf folder_name path_to_mount_pointfolder_nameは共有を説明するために先ほど入力した名前です
  • これで共有フォルダを参照できるはずです。

マウントに問題がある場合は、次のエラーが発生します。

mount: wrong fs type, bad option, bad superblock on mydata,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount.<type> helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

次の手順を実行します。

sudo rm /sbin/mount.vboxsf
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

おすすめ記事