virtualbox 4.1.12 vdi expansion failed

Discussions related to using VirtualBox on Mac OS X hosts.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: virtualbox 4.1.12 vdi expansion failed

Post by mpack »

I don't know what your linked blog said - I don't follow offsite links.

Your questions are starting to get very basic. I don't intend to provide tuition on such low level subjects as how to copy files on OS X. I think the instructions I gave already should be quite clear if you add some common sense.
elchap1n
Posts: 21
Joined: 29. Jan 2013, 22:50

Re: virtualbox 4.1.12 vdi expansion failed

Post by elchap1n »

Just a follow up - have not heard any more on my questions -

What did you think about this article since this is what i used:
By the way i followed this URL:
http://www.gubatron.com/blog/2011/08/29 ... ve-on-mac/
elchap1n
Posts: 21
Joined: 29. Jan 2013, 22:50

Re: virtualbox 4.1.12 vdi expansion failed

Post by elchap1n »

Hello,

I was able to bring up the clone. So at this point, what are the proper directions to increase the size of the VDI and the OS. Please advice since the instruction on the website were wrong per your comments so please let me know.

Since you don't follow outside links here is paste of the website:
These are the website instructions:
Step 0. Backup your current drive (optional)
$ VboxManage clonehd <path to your original drive> <path of the copy>

Step 1. Resize!
$ VBoxManage modifyhd <path to your vdi> --resize <new size in megabytes>

Step 2. (Re)Start VirtualBox
After you’ve physically resized your drive, both VirtualBox and your OS should know about the changes.

Step 3. Let your OS know the new logical size of the drive
Storage > Disk Management > Right Click on the partition you want to extend.
Select the option that says “Extend”, a Wizard will open, just hit Next until it ends if you want to use the whole space.
After you’re done, if you refresh your “Computer” on the File explorer the resized drive should show right away


I followed the above commands step by step, but something went wrong after the resize so please let me know what the proper step are to resize windows7,thanks.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: virtualbox 4.1.12 vdi expansion failed

Post by mpack »

Start by making a copy (not a clone) of the VM folder to secondary disk - this is your backup in case things go wrong again.

The procedure for resizing is the same as you tried before, i.e. use "VBoxManage modifyhd --resize". If you prefer you can try installing Wine/WineBottler so that you can run CloneVDI and use that to resize the disk. Once the disk (hardware) is enlarged then you need to use Disk Management inside the Win7 guest to resize the system partition.
elchap1n
Posts: 21
Joined: 29. Jan 2013, 22:50

Re: virtualbox 4.1.12 vdi expansion failed

Post by elchap1n »

Sure, I can do that also:

Since you don't follow outside links here is paste of the website:
These are the website instructions:
Step 0. Backup your current drive (optional)
$ VboxManage clonehd <path to your original drive> <path of the copy>

Step 1. Resize!
$ VBoxManage modifyhd <path to your vdi> --resize <new size in megabytes>

Step 2. (Re)Start VirtualBox
After you’ve physically resized your drive, both VirtualBox and your OS should know about the changes.

Step 3. Let your OS know the new logical size of the drive
Storage > Disk Management > Right Click on the partition you want to extend.
Select the option that says “Extend”, a Wizard will open, just hit Next until it ends if you want to use the whole space.
After you’re done, if you refresh your “Computer” on the File explorer the resized drive should show right away


I followed the above commands step by step, but something went wrong after the resize so please let me know what the proper step are to resize windows7,thanks.
elchap1n
Posts: 21
Joined: 29. Jan 2013, 22:50

Re: virtualbox 4.1.12 vdi expansion failed

Post by elchap1n »

Oh by the way, doing just a 'cp' i get this error when I try to use the vdi that was copied:

Failed to open the hard disk
/Volumes/Data/VBOX/Windows7.vdi

Cannot register the hard disk
'/Volumes/Data/VBOX/Windows7.vdi'
{....some long UUID number...} because a hard disk '/Volumes/Data/VBOX/Win7-clone.vdi with {...some long UUID number..} already exists.

How is this issue resolved?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: virtualbox 4.1.12 vdi expansion failed

Post by mpack »

You asked for instructions and I gave them. Why are you still referring to that blog?
elchap1n
Posts: 21
Joined: 29. Jan 2013, 22:50

Re: virtualbox 4.1.12 vdi expansion failed

Post by elchap1n »

You mentioned that the instructions I followed were wrong so I listed what I followed and get your feedback on what is wrong, so I just wanted to make sure I have the correct instructions (step by step) on the proper virtualbox procedure to increase the size of the vdi/os disk?
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: virtualbox 4.1.12 vdi expansion failed

Post by ChipMcK »

elchap1n wrote: I just wanted to make sure I have the correct instructions (step by step)
perhaps these references will be of assistance
viewtopic.php?f=1&p=167076
viewtopic.php?f=2&p=177034
viewtopic.php?f=7&p=191854
elchap1n
Posts: 21
Joined: 29. Jan 2013, 22:50

Re: virtualbox 4.1.12 vdi expansion failed

Post by elchap1n »

Those seem to be instruction for xp, ubuntu and linux. But I just want to make sure I have the correct instructions for MacOS. I'm trying to have the correct procedure as I don't want to loose data. Is the following procedure correct (i'm still unclear about a couple of items - see inline questions):

Step 0. Start by making a copy (not a clone) of the VM folder to secondary disk (per mpack)
$ cp <path to your original VDI File> <path of the copied VDI file>

Step 1. Resize!
$ VBoxManage modifyhd <path to your vdi> --resize <new size in megabytes>

Step 2. (Re)Start VirtualBox
--After the resize, does virtualbox pick up the changes automatically or do I need to do something in virtual box?

Step 3. Let your OS know the new logical size of the drive
Storage > Disk Management > Right Click on the partition you want to extend.
Select the option that says “Extend”, a Wizard will open, just hit Next until it ends if you want to use the whole space.
After you’re done, if you refresh your “Computer” on the File explorer the resized drive should show right away
Doccus
Posts: 1
Joined: 19. Jun 2013, 09:52

Re: virtualbox 4.1.12 vdi expansion failed

Post by Doccus »

[quote="elchap1n"]Sure, I can do that also:

Since you don't follow outside links here is paste of the website:
These are the website instructions:
Step 0. Backup your current drive (optional)
$ VboxManage clonehd <path to your original drive> <path of the copy>

Step 1. Resize!
$ VBoxManage modifyhd <path to your vdi> --resize <new size in megabytes>

Step 2. (Re)Start VirtualBox
After you’ve physically resized your drive, both VirtualBox and your OS should know about the changes.

Step 3. Let your OS know the new logical size of the drive
Storage > Disk Management > Right Click on the partition you want to extend.
Select the option that says “Extend”, a Wizard will open, just hit Next until it ends if you want to use the whole space.
After you’re done, if you refresh your “Computer” on the File explorer the resized drive should show right away

========================
I also followed these instructions, however I got only a "new partition" until I realized this I kept trying to figure out why the drive was not reported as the new size..inconvenient, as I need to reinstall the programs onto the new partition, to have the paths correctly recognized, but acceptable.. is it simply a limitation in win 2000 that there is no "extend" option? I also have an XP install that needs a larger HD, but that one really does need the main HD enlarged.. IS the "extend" option not a function of Virtual Box at all, but simply a windows option?
THX
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: virtualbox 4.1.12 vdi expansion failed

Post by noteirak »

IS the "extend" option not a function of Virtual Box at all, but simply a windows option?
That is correct.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply