Monday, January 12, 2015

VirtualBox - Ubuntu - create and share a SharedFolder in Ubuntu VM

Environment:
OS: Ubuntu 14.04 on Guest VM
VirtualBox: 4.3.6 on Host Machine Windows 7



Steps to follow:


  • Need to make sure "Virtualbox Guest Additions" is installed (see Resource-01)
  • Creating a folder in Host Windows
  • Create a 'Shared Folder' in VirtualBox
    1. Start the VM and go to 'Devices > Shared Folders Settings...'
    2. On Settings dialog, click on 'Shared Foldrers' which will show existing shared folders at right (see pic-01)
    3. Click on 'Add new shared folder definition' icon (see pic-01)
      Pic-01
    4. Specify 'folder path', 'Folder Name' (see pic-02) and click 'Ok' 
      Pic-02
    5. Click 'Ok' on Settings dialog

  • Prepare Ubuntu VM

    • Create a folder where host folder with be mapped to 
    • Run mount command - "sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) SharedWithVMs ~/SharedWithVMs". In this case shared folder in VirtualBox and folder in Ubuntu VM having same name
Resources:
  1. How to install "VirtualBox Guest Additions" - http://peerprogrammer.blogspot.com/2015/01/virtual-box-setup-install-guest.html


No comments: