Tuesday, 1 May 2012

How to add Extra storage in Virtual Box

You can add extra storage by following the steps and after adding the new partitioned space, format the space and mount it where you want.

File -----> Virtual Media Manager ------> Add

In VirtualBox 4.0.0 virtual media manager there is no 'add' option. Therefore you can not create new virtual disks for machines that are currently powered on. This is a serious problem because thick provisioning disks can take a long amount of time, for large disks. To create a new virtual disk one must first power down a vm, then 'edit settings' This is blocking because you cannot edit settings while a virtual machine is running.

A vm must be powered down to create a new -disk- for any vm in 4.0.0.

The work around right now is to create a 'junk vm' just so you can create a new disk for a vm that is currently running. Once disk is provisioned, poweroff the virtual machine you really want the new disk for, edit settings and attach the disk you created for the 'junk vm'. Now remove the junk vm and select 'remove only' when it asks about what to do with the files for junk vm.

Reboot After adding the disk and format it as ext3 and mount the partation to a mount point.

Follow the screen shoots to add an extra space in the vm


After add the extra space you can able to view the added space using the command 

# fdisk -l

and format the new partition using the command # fdisk

# fdisk /dev/sdb
 cmd:n

# partprobe

# mkdir /STORAGE

# mkfs.ext3 /dev/sdb2

add the newly created partation in fstab  # vim /etc/fstab

# mount  /dev/sdb2 /STORAGE

# mount -a

No comments:

Post a Comment