Resize Virtual hard drive not successful?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Matt USA
Posts: 33
Joined: 26. Jan 2014, 20:24
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Windows10, Windows 7
Location: Battle Ground WA - Near Portland Or

Resize Virtual hard drive not successful?

Post by Matt USA »

Windows 7 64 bit host and guest.
VirtualBox help about says version Version 4.3.10 r93012
Guest Additions is in the guest systems tray states version 4.3.8 r92456
I am out of hard drive space on my VM virtualbox. My goal is to increase from 50 to 100 GB
Prime1.vdi Virtual Size: 100.00 GB Actual Size: 16.65 GB Dynamically allocated.

When I navigate to start/My Computer/C: it says 2.33 GB free of 49.8 GB
I ran the modifyhd command successfully and rebooted both host and guest systems

C:\Program Files\Oracle\VirtualBox>Vboxmanage modifyhd "C:\Users\Matt\VirtualBox VMs\Prime1\Prime1.vdi" --resize 102400
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Help?

Matt
Attachments
Resize Virtual Hard drive.zip
VBox.log
(2.56 KiB) Downloaded 43 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Resize Virtual hard drive not successful?

Post by loukingjr »

try this in your Windows guest
right click on my computer and select manage
Go to the disk management
Right click on the drive and click extend volume
Confirm the amount of extension. By default this will be the drives maximum.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Matt USA
Posts: 33
Joined: 26. Jan 2014, 20:24
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Windows10, Windows 7
Location: Battle Ground WA - Near Portland Or

Re: Resize Virtual hard drive not successful?

Post by Matt USA »

Hello loukingjr,

I tried to right click on my computer and select manage
Go to the disk management
Right click on the drive and click extend volume, But the word extend volume is grayed out?
Help?
Matt
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Resize Virtual hard drive not successful?

Post by loukingjr »

Matt USA wrote:Hello loukingjr,

I tried to right click on my computer and select manage
Go to the disk management
Right click on the drive and click extend volume, But the word extend volume is grayed out?
Help?
Matt
I'm not sure Matt. It works for others. Hopefully someone else may have an idea.

you could try doing a search on something like, can't extend volume Windows 7. There may be a reason it fails on metal as well.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Resize Virtual hard drive not successful?

Post by loukingjr »

I just tried it with my Windows 7 guest. I enlarged it 20GB. Started the guest and my extend volume was not greyed out and it worked. when your .vdi was only 50GB did you partition it? did you have snapshots when you resized it?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Matt USA
Posts: 33
Joined: 26. Jan 2014, 20:24
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Windows10, Windows 7
Location: Battle Ground WA - Near Portland Or

Re: Resize Virtual hard drive not successful?

Post by Matt USA »

I believe the answer to when my .vdi was only 50GB did I partition it? is No
Did I have snapshots when I re-sized it the answer is Yes?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Resize Virtual hard drive not successful?

Post by loukingjr »

Matt USA wrote:I believe the answer to when my .vdi was only 50GB did I partition it? is No
Did I have snapshots when I re-sized it the answer is Yes?
you are not supposed to resize a .vdi if you have snapshots unless you actually resize the highest numbered snapshot.vdi. I'm not sure how one goes about fixing it if you resized the guest .vdi instead.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Matt USA
Posts: 33
Joined: 26. Jan 2014, 20:24
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Windows10, Windows 7
Location: Battle Ground WA - Near Portland Or

Re: Resize Virtual hard drive not successful?

Post by Matt USA »

I confess I do not understand loukingjr when you say "you are not supposed to resize a .vdi if you have snapshots unless you actually resize the highest numbered snapshot.vdi. I'm not sure how one goes about fixing it if you resized the guest .vdi instead." This is my first VM
I found this thread here: http://social.technet.microsoft.com/For ... proinstall

" You certainly can extend a boot volume in NT 6.1 (Win7/Server 2008 R2), as long as you first convert the volume to a dynamic disk. You do this by right-clicking the Disk (not the volume) in Disk Management and clicking "Convert to Dynamic Disk", or by running the required commands using diskpart.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx"

I can do it but am nervous! I think I will sleep on it and check to see if anyone else chimes in with suggestions.Thank you!
Matt
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Resize Virtual hard drive not successful?

Post by loukingjr »

You should read this
How to resize a Virtual Drive
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Resize Virtual hard drive not successful?

Post by mpack »

Please don't send me questions by personal message: stick to the forums.

To address your problem as simply as possible: you can't resize a drive if you use snapshots. So, you need to get rid of the snapshots - utterly get rid of them, as if they had never existed. The easiest way to do that is to clone the VM: when asked you answer full (not linked) clone, current state only, and don't reset the MAC address.

You will then be able to resize the clone VM's disk. After thoroughly testing the clone you can delete the old VM. I suggest you avoid snapshots in future.
apptutor
Posts: 1
Joined: 25. Sep 2015, 21:12

Re: Resize Virtual hard drive not successful?

Post by apptutor »

Hi, I created a video tutorial that shows step by step how to successfully resize a Fixed .vdi drive. Since this is my first post here, I am not able to post the link, I will add it later. But here is a summary of each step I walk you through.

01 Introduction - Yes you can re-size a fixed VDI drive
02 Review 6 Steps to re-size successfully
03 Release and remove (don't delete!) the Fixed VDI Drive you want to re-size.
04 Use command line CMD (run as administrator) Navigate to VboxManage Directory.
05 Clone the drive with VBoxManage clonehd.
06 Resize the VDI Drive with modifyhd.
07 Start Virtualbox, add new cloned VDI drive and extend partition.
08 If your OS does not have a Partition tool what can you do?

http://apptutor.com/courses/how-to-virt ... res/413794

Thanks,
Mike
Last edited by apptutor on 28. Sep 2015, 03:36, edited 1 time in total.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Resize Virtual hard drive not successful?

Post by mpack »

Or, you could just do all that in one step with CloneVDI. :roll:
Post Reply