Difference between revisions of "Create a shared folder"

From Archivematica
Jump to navigation Jump to search
(Created page with 'Main Page > Virtual appliance instructions > Create a shared folder Creating a shared folder allows you to add files to a folder on the host machine and have them appear…')
 
Line 8: Line 8:
  
 
2. Set up the shared folder in VirtualBox
 
2. Set up the shared folder in VirtualBox
*From within the Sun VirtualBox application, select the current version of the Archivimatica appliance and click on the "Settings" button below the main menu bar. Note that the application must '''not''' be running in order to be able to slect the settings.
+
*From within the Sun VirtualBox application, select the current version of the Archivimatica appliance and click on the "Settings" button below the main menu bar. Note that the application must not be running in order to be able to slect the settings.
*From with the Settings dialog, select "Shared Folders" from within the "Details" tab.  
+
*In the Settings dialogue, select "Shared Folders" (under "Details" tab).  
*Click on the "Add Share" button on the right side of the window (the folder with the plus sign) and navigate to the folder you created in step 1. Give the shared folder a name that VirtualBox can use to identify it. The default is the name the folder already has in the host system; note that due to Linux limitations you should create a folder name that has no capital letters or special characters (such as underscores).
+
*Click on the "Add Share" icon on the right side of the window (the folder with the plus sign) and navigate to the folder you created in step 1. Give the shared folder a name that VirtualBox can use to identify it. The default is the name the folder already has in the host system; note that due to Linux limitations you should create a folder name that has no capital letters or special characters (such as underscores).
 +
*Click OK.
  
  
Line 16: Line 17:
 
*Launch the Archivimatica appliance in VirtualBox.
 
*Launch the Archivimatica appliance in VirtualBox.
 
*Open a command line interface in Ubuntu: <ctrl><alt><F1>
 
*Open a command line interface in Ubuntu: <ctrl><alt><F1>
*Login as demo
+
*Login as demo and use the password demo
*Grant the demo account /root privileges by typing "sudo -s", and type the password "demo" when prompted
+
*Grant the demo account /root privileges by typing "sudo -s", and give the demo account password when prompted
 
*Mount the shared folder by using the following command:
 
*Mount the shared folder by using the following command:
   mount -t vboxsf <folder name (the name you gave the folder in the Virtual Box Settings menu)> <filepath in Linux>. Example: mount -t vboxsf sharedfolder /home/demo/Documents
+
   mount -t vboxsf '''<folder name (the name you gave the folder in the Virtual Box Settings menu)>''' '''<filepath in Linux>'''. Example: mount -t vboxsf sharedfolder /home/demo/Documents
  
 
*type "exit" to exit from your root login
 
*type "exit" to exit from your root login

Revision as of 17:22, 3 September 2009

Main Page > Virtual appliance instructions > Create a shared folder

Creating a shared folder allows you to add files to a folder on the host machine and have them appear in a folder in the virtual machine (VM).


1. Create a folder on the host machine.


2. Set up the shared folder in VirtualBox

  • From within the Sun VirtualBox application, select the current version of the Archivimatica appliance and click on the "Settings" button below the main menu bar. Note that the application must not be running in order to be able to slect the settings.
  • In the Settings dialogue, select "Shared Folders" (under "Details" tab).
  • Click on the "Add Share" icon on the right side of the window (the folder with the plus sign) and navigate to the folder you created in step 1. Give the shared folder a name that VirtualBox can use to identify it. The default is the name the folder already has in the host system; note that due to Linux limitations you should create a folder name that has no capital letters or special characters (such as underscores).
  • Click OK.


3. Mount the shared folder in the VM

  • Launch the Archivimatica appliance in VirtualBox.
  • Open a command line interface in Ubuntu: <ctrl><alt><F1>
  • Login as demo and use the password demo
  • Grant the demo account /root privileges by typing "sudo -s", and give the demo account password when prompted
  • Mount the shared folder by using the following command:
  mount -t vboxsf <folder name (the name you gave the folder in the Virtual Box Settings menu)> <filepath in Linux>. Example: mount -t vboxsf sharedfolder /home/demo/Documents
  • type "exit" to exit from your root login
  • type "exit" to exit from your demo login
  • Return to the Gnome GUI <ctrl><alt><F7>


You should now be able to see and manipulate the contents of both folders from within both the host environment and the guest Ubuntu environment.

Note that if you power off or restart Ubuntu (as opposed to preserving the VM state when you end the session) you will need to re-mount the shared folder(s) when Ubuntu starts again.