[virtualbox] mounting VirtualBox shared folders in Ubuntu guest

mounting VirtualBox shared folders in Ubuntu guest with the command:

sudo mount -t vboxsf -o uid=1000,gid=1000 share /home/username/host

where the option -o makes sure that you will have access to the mount (that will otherwise be owned by root).


[Virtualbox] Enlarge a Virtual Disk in VirtualBox(linux) in Windows host

Not enough space in ubuntu virtual box (in Windows host)?

The VBoxManage can solve the problem. The command line will be :

VBoxManage modifyhd “C:\[your_user_path]\VirtualBox VMs\Windows 7\Windows 7.vdi” -- resize 10240

Note. 10240bytes = 10G

Source from : How To Enlarge a Virtual Machine’s Disk in VirtualBox or VMware

And we use GParted to manage these partitions. More easilier.

What to be mentioned is that, if you got your linux-swap blocking, it is better to ready this blog :
Resize a VirtualBox guest Linux VDI Disk under Windows Host

resize virtualbox disk

Resize the virtual disk (VirtualBox version 4.0+ only)

If you are using VirtualBox version 4.0 or later, you can resize the logical capacity of a virtual disk using the VBoxManage modifyhd --resize command.

On the host system, run the following command:

cd /path/to/vbox/disks

VBoxManage modifyhd OldDisk.vdi –-resize 30000

whereOldDisk.vdiis the filename of the virtual disk VDI file you want enlarge and30000is the new maximum size (in megabytes) of the virtual disk.

If your host OS is Windows, then the commands you need to enter at the Command Prompt will look more like the following.

cd “C:\Documents and Settings\myusername\.VirtualBox\HardDisks”

“C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” modifyhd OldDisk.vdi –resize 30000
Link from : http://trivialproof.blogspot.fr/2011/01/resizing-virtualbox-virtual-hard-disk.html