All pastes #941884 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-14 00:55 UTC
rendered paste body
       From the command line, you can create shared folders using the the VBoxMan-
       age command line interface; see chapter 8, VBoxManage reference, page 83. The
       command is as follows:
       VBoxManage sharedfolder add "VM name" -name "sharename"
                             -hostpath "C:\test"
   There are two types of shares:
   1. VM shares which are only available to the VM for which they have been defined;
   2. transient VM shares, which can be added and removed at runtime and do not
       persist after a VM has stopped; for these, add the -transient option to the
       above command line.
   Shared folders have read/write access to the files at the host path by default. To
restrict the guest to have read-only access, create a read-only shared folder. This can
either be achieved using the GUI or by appending the parameter -readonly when
creating the shared folder with VBoxManage.
   Then, you can mount the shared folder from inside a VM the same way as you would
mount an ordinary network share:
    • In a Windows guest, starting with VirtualBox 1.5.0, shared folders are
       browseable and are therefore visible in Windows Explorer. So, to attach the
       host’s shared folder to your Windows guest, open Windows Explorer and look
       for it under “My Networking Places” -> “Entire Network” -> “VirtualBox Shared
       Folders”. By right-clicking on a shared folder and selecting “Map network drive”
       from the menu that pops up, you can assign a drive letter to that shared folder.
       Alternatively, on the Windows command line, use the following:
       net use x: \\vboxsvr\sharename
       While vboxsvr is a fixed name (note that vboxsrv would also work), replace
       “x:“ with the drive letter that you want to use for the share, and sharename
       with the share name specified with VBoxManage.