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
2. Select the copy option in virtual manager after choosing the specific disk.
3. Select Next for the Prompt.
4. Select Virtual Disk Image (.vdi). Because we can resize this image size.
5. Select the option Dynamically allocated.
6. Give the location and file name for .vdi image
7. Then select copy option to confirm it.
Based on the image size it will take time.
8. Then release the image, which you have selected for the copy option in Step 2. from virtual mediamanager.
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>
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
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.
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]