modifying the size of two disks .vdi

Discussions related to using VirtualBox on Windows hosts.
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

modifying the size of two disks .vdi

Post by Fielding »

I have reach a strange situation :
host windows 7 - 64 -16GB RaM
guest windows xp , with two data disks

I apply the command :

Vboxmanage modifyhd "Y:\VirtualBox\Data\Machines\WindowsXPpro-btwinVA-COMUNICACIONES\WindowsXPpro-btwinVA-COMUNICACIONES-disk2.vdi" --resize 50000 for one of the disks and seems quickly resized.

I observ this in the main VB window by the size indicated for disk2.vdi
But also observ a occupation of 67 MB.
I enter in the COMUNICACIONES machine and see that the old .vdi continues with the same size of 10 GB and the old occupation. No data loss. I have a security copy if necessary, but I don't understand what is happening.

Can you help me please ?


Best Regards
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: modifying the size of two disks .vdi

Post by Perryg »

Just increasing the size of the hard drive will not extend the primary partition to use the new space.
viewtopic.php?f=24&t=50661
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

Perryg wrote:Just increasing the size of the hard drive will not extend the primary partition to use the new space.
viewtopic.php?f=24&t=50661
I'll try
Any problem i will comment
Best Regards
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

I am trying
I boot from the gparted iso but only see the three virtual disks of 10 GB initially created, but don't see the new units of 50 GB
What am i doing bad ?

Image


Simply i don't know how expand the primary partition to use the new space

Best Regards
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

I have found this tutorial .
http://www.llakomy.com/articles/increas ... th-gparted

but really i don't see any unallocated space.
I only see the three original 10 GB disks , but no the new size created that i can see from outside the VM in the storage section.

Best Regards

Note : The two 10 GB disks are data disks inside the VM
I haven't try resize the system disk of 10 GB because is a VMDK and have to convert to vdi.
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

A screenshot of the situation outside the VM

Image
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

May be in relation with the limit four IDE devices ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: modifying the size of two disks .vdi

Post by Perryg »

Are you booting the guest with the Gparted ISO in the guests virtual drive?
Do you have snapshots?
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

Hello again Perry.
I have 5 snapshots
I am not able to understand well the second question. The GParted drive seems to be IDE secondary master. Please see my screenshot.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: modifying the size of two disks .vdi

Post by Perryg »

I think I see what is happening. Since the VDI drives are not the primary drive Gparted is not seeing them.
I can see that the resize did work for the HDD but the partition will not show by 10GB and you can't extend the primary partition to use the new space.
I don't know if this is an XP host issue or not. Someone with XP as host will need to test.

The other thing is you can not resize a drive if you have snapshots. I have not tested this on secondary drives though. That I can try tomorrow.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: modifying the size of two disks .vdi

Post by Perryg »

I go to this sooner and can tell you that if you have snapshots you can not resize the additional drives either.
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

Perryg wrote:I go to this sooner and can tell you that if you have snapshots you can not resize the additional drives either.

Do you have any idea ?

Perhaps delete the snapshots ?

Clone the virtual machine ?

No solution ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: modifying the size of two disks .vdi

Post by Perryg »

The safest is to clone the guest. select to create a new guest as one file without snapshots. ( not sure the exact wording )
Then you will be able to see the new sizes in Gparted.
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

I'll try and comment.
Best Regards
Fielding
Posts: 170
Joined: 3. May 2012, 22:21

Re: modifying the size of two disks .vdi

Post by Fielding »

Tomorrow more
I supposed i need to redimensionate again the hard disk before applying Gparted.
In the clone machine the HD are again 10 GB from outside according to the screenshot
Best Regards

Image
Image
Image
Image
Image
Image
Post Reply