0
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.

VirtualBox 上にマウントした共有フォルダ内でシンボリックリンクを利用する

Posted at

共有フォルダで npm install 等を行う際に必要となったのでメモ

環境

  • ホストOS : Windows 10 pro
  • ゲストOS : Ubuntu 16.04
  • Oracle VM VirtualBox 5.2.24 r128163 (Qt5.6.2)

手順

  1. VirtualBox は閉じておく

  2. ホスト側でコマンドプロンプトを立ち上げる

  3. VM 名リストを取得

    $ "C:\Program Files\Oracle\VirtualBoxVBoxManage" list vms
    
  4. 対象 VM の設定を変更

    $ "C:\Program Files\Oracle\VirtualBoxVBoxManage" setextradata [VM名] VBoxInternal2/SharedFoldersEnableSymlinksCreate/[共有フォルダ名] 1
    

    例:

    $ "C:\Program Files\Oracle\VirtualBoxVBoxManage" setextradata Ubuntu16.04 VBoxInternal2/SharedFoldersEnableSymlinksCreate/share 1
    
  5. SharedFoldersEnableSymlinksCreate を確認

    $ "C:\Program Files\Oracle\VirtualBoxVBoxManage" getextradata [VM名] enumerate
    Key: GUI/LastCloseAction, Value: SaveState
    Key: GUI/LastGuestSizeHint, Value: 1072,866
    Key: GUI/LastNormalWindowPosition, Value: -1079,-201,1072,908
    Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/share, Value: 1
    
  6. VirtualBox を管理者として実行(右クリック => 管理者として実行)

以上

0
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
0
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?