twitter
    Find out what I'm doing, Follow Me :)
Showing posts with label VirtualBox. Show all posts
Showing posts with label VirtualBox. Show all posts

VirtualBox Shared folders on Ubuntu 10.04 client

Required: Virtualbox Guest Additions. See this post: http://diegobenna.blogspot.com/2011/01/how-to-install-virtualbox-guest.html

Prepare host

Click on Devices and then Shared Folders in Virtualbox:


Click on the add button in the Shared Folder dialog:


Click on the down arrow in the Folder Path field, select Other and navigate to the folder you create:

 

Make a note of the Folder Name since you'll be needing it in a minute. Check off Make Permanent to ensure the shared folder stays shared after you shutdown or reboot your virtual machine:


Prepare guest
If the client is Linux, you have to mount and connect it to a folder.

The following bash commands (in the client) would setup a correct mount (and creates a link from your desktop) Note: you should not use spaces in the share name.

sudo mkdir /mnt/sharename 
sudo chmod 777 /mnt/sharename
sudo mount -t vboxsf -o uid=1000,gid=1000 Example-Shared-Folder /mnt/sharename
ln -s /mnt/sharename $HOME/Desktop/sharename

Note: if you want to mount the folder as owned and writable only by root, omit the  -o uid=1000,gid=1000  option to the mount command.

For the above command if you get error as

mount: unknown filesystem type 'vboxsf'

Then just change the vboxsf to vboxfs

If error persist install virtualbox guest utils:

sudo apt-get install virtualbox-ose-guest-utils

end reboot the virtual machine.

To ensure the shared folder is mounted whenever your virtual machine is booted, run the following command: sudo nano /etc/rc.local and enter the command you entered in the last step (without the sudo in front) into this file below the hashes (i.e., #'s) but above “exit 0” (note that the arrow keys move the cursor and ctrl+x is used to exit which will prompt you to save first, answer Y, then hit Enter)

sudo mount -t vboxsf -o uid=1000,gid=1000 Example-Shared-Folder /mnt/sharename


Exit the terminal by typing: exit or by pressing ctrl+d.

Congratulations, you now have a functional Linux Mint virtual machine to use for any purpose you see fit. Please see below if you would like to enable hardware video acceleration on your virtual machine.

How To Install Virtualbox Guest Additions On A Ubuntu 10.04 Lucid Lynx Virtual Machine

First, go to the Devices menu for your virtual machine, and select Install Guest Additions.



This will mount a CD image in your Ubuntu virtual machine with the Guest Additions installer; you should see the icon appear on your virtual machine’s Desktop. Double-click on the icon to mount it.

Next, open a Terminal window.You’ll need to navigate to the /media directory, and then change to the directory representing the CD image.

cd /media/

The name is usually something like VBOXADDITIONS_version_release, for example:

VBOXADDITIONS_3.1.6_59338

Change to the VBOXADDITIONS directory, and then launch the installer. You can do this with this command for a 32 bit virtual machine:

sudo ./VBoxLinuxAdditions-x86.run

For a 64 bit machine:

sudo ./VBoxLinuxAdditions-amd64.run

Type your password to authenticate, and the Guest Additions Installer will launch. It usually takes a few minutes to complete, and once you’re finished, the installer will return you to the Terminal prompt.

Once the installer is done, reboot your Ubuntu virtual machine.

When your Ubuntu virtual machine reboots, it will now support mouse integration, and you’ll be able to increase the resolution beyond 800×600.

The video below will show you how to install Guest Additions with Ubuntu 10.04. Once you see how it’s done it will only take a few minutes and one VirtualBox restart, then you’re good to go.