LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to add another drive image to an existing VM using VirtualBox? (https://www.linuxquestions.org/questions/linux-software-2/how-to-add-another-drive-image-to-an-existing-vm-using-virtualbox-751426/)

colucix 08-31-2009 03:44 AM

How to add another drive image to an existing VM using VirtualBox?
 
Hi all! I have an issue with VirtualBox. My current setup is a machine running Fedora 10 with 1 Tb of disk space. I installed VirtualBox and created a fixed size disk image of 50 Gb for a virtual Windows XP64 OS. Now I require more disk space with additional 100 Gb. Is there a way to add another partition to the virtualized OS as if I added a new hard drive to the system?

In other words, I'd like to create another disk image by using additional space from the same physical drive and mount it under Windows XP in VirtualBox. Is this possible? Thank you.

catkin 08-31-2009 03:59 AM

This question sounds too easy; perhaps I have misunderstood.

You can't add a partition to the VM (because real hardware doesn't present partitions, only HDDs so that's all the OS is designed to work with) so you have to add a virtual HDD and then the guest OS can partition it as required.

To add a virtual HDD, a .vdi file:
  1. Start the VirtualBox configuration window (Applications, System, Sun VirtualBox or similar).
  2. Ensure the Windows VM not running.
  3. If more than one VM in the left panel then click on the Windows VM.
  4. Click on "Hard Disks" and follow the on-screen prompts (+ to create new .vdi file).
.

colucix 08-31-2009 04:38 AM

Quote:

Originally Posted by catkin (Post 3663643)
This question sounds too easy; perhaps I have misunderstood.

Nope, you understood correctly! ;) The question was not easy for me until I have read your solution. I didn't notice that one can click on the Hard Disk title in the list of facilities. I've just followed your instructions and now the system is formatting a new virtual disk. Tank you a lot, catkin! :)


All times are GMT -5. The time now is 01:23 PM.