-不明なファイルシステムタイプvboxsfvirtualbox共有ファイル設定ubuntu + windows



Unknown Filesystem Type Vboxsf Virtualbox Shared File Settings Ubuntu Windows



win7ロード済みvirtualbox仮想マシン
共有ディレクトリを設定するときは、次のコマンドを実行する必要があります。

mount -t vboxsf osshare /home/tb/winshare/

これは、Eディスクの下のフォルダー設定をubuntuの/ home / tb / winshareに共有することを意味します



以下に示すように、winで共有ディレクトリを設定します。
画像

しかし、ubuntuで実行すると、次のように表示されます。



-unknown filesystem type vboxsf

検索した後、実行すると言います:apt-get install virtualbox-ose-guest-utils
しかし、それはまったく成功しませんでした。

もう一度検索:ホスト(win)と仮想マシン(linux)の両方をインストールする必要があることがわかりましたGuest Additionsこれ。
ダウンロードしようと思って見つけた virtualbox公式ミラー そしてダウンロードVBoxGuestAdditions_4.3.12.isoこれ。次に、仮想マシンの実行ウィンドウにClick-Device-Install Enhanced Features(ダウンロードしたISOファイルを挿入する必要があります virtualboxインストールディレクトリ/ ProgramFiles Oracle VirtualBox インストールディレクトリには、実際にはデフォルトでこのISOがあります。 )。
画像
まあ、これは勝つと実際には省略できます。 。


仮想マシンでは、最初に必要なISOをマウントする必要があると述べました。勝ちの設定は以下の通りです



画像

次に、仮想マシン内にいます(ubuntu in root許可)

root@xxxxx:/dev# mount /dev/cdrom /home/tb/winshare/ mount: block device /dev/sr0 is write-protected, mounting read-only

次に、マウントされていることを確認します。

root@xxxxx:/dev# cd /home/tb/winshare/ root@xxxxx:/home/tb/winshare# ls 32Bit AUTORUN.INF cert runasroot.sh VBoxSolarisAdditions.pkg VBoxWindowsAdditions.exe 64Bit autorun.sh OS2 VBoxLinuxAdditions.run VBoxWindowsAdditions-amd64.exe VBoxWindowsAdditions-x86.exe

残りはそれを実行することです〜

root@xxxxx:/home/tb/winshare# sh ./VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 5.0.10 Guest Additions for Linux............ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... Removing existing VirtualBox DKMS kernel modules ...done. Removing existing VirtualBox non-DKMS kernel modules ...done. Building the VirtualBox Guest Additions kernel modules ... You should restart your guest to make sure the new modules are actually used

最後の文を見てください、need restart your virtualbox

再起動したら、戻ってこの記事の最初の写真を見てみましょう。
次に実行します

mount -t vboxsf osshare /home/tb/winshare/ osshare is the name you set on win, and the following is the directory where `ubunut` needs to be mounted.

現時点ではありません-unknown filesystem type vboxsfこれは間違っています。

ホストと仮想マシン間のファイル共有を実現できます。

画像