Adding New Virtual Drive in Virtual Box

Written by sathish. Posted in Linux

Oracle Virtual Box is used to run the multiple guest operating system without rebooting the host system. With the help of this we can run many flavours of linux under various version in one host operating system.

Host operating system Windows 7 Professional SP1
Guest Operating System Linux
Oracle Virtual Box version 4.1.8 r75467


Here we will take the image of Oracle Developer Days,

1.   Select Virtual media manager from File tab in oracle Virtual Box odd_1.png

2.     Select the copy option in virtual manager after choosing the specific disk.  
odd_2.png  

3.  Select Next for the Prompt.  
odd_3.png  

4.   Select Virtual Disk Image (.vdi). Because we can resize this image size.  
odd_4.png  

5.   Select the option Dynamically allocated.  
odd_5.png  

6.   Give the location and file name for .vdi image  
odd_6.png  

7.   Then select copy option to confirm it.  
odd_7.png
Based on the image size it will take time. odd_7-1.png

8.   Then release the image, which you have selected for the copy option in Step 2.  from virtual mediamanager.  
odd_8.png  

9.    Resizing the relased image.
Open command promt (cmd) and go to virtual box exe’s by cd command  and locate the VBoxManage binaries and run the following. This consumes space from hard disk. Make sure  you have enough space.
VBoxManage modifyhd –-resize(195Gb)<image path>

odd_9.png

10.    Now make .vdi image available to Virtual machine by following command
C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach “ODD Clone” –storagectl “IDE Controller” –port 0 –device 0 –type hdd –medium “D:\ODD Clone\New Oracle Developer Days-disk1.vdi   odd_10.png

11.   Make sure that, In virtual Box manager now we have three entries disk1.vdi(which is recently modified the size), disk1.vmdk and disk2.vmdk. Among all the disk, disk1.vdi and disk2.vmdk attached to ODD Clone and status of disk1.vmdk not attached.
odd_11.bmp  

odd_11-1.bmp

12.   Now we can verify the size by after booting the Virtual box image.
fdisk -L
 [This is why I am taking the bootable image drive in step 2. You can also create raw disk since it will not contain any data]

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Tags: , , ,

Leave a comment

Techlister© - 2012