Hi,
I had a 20 GB VHD Windows Server 2008 image that I ended up using all the space. Did the following I saw on another post here to double the size from 20 to 40 GB:
C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "C:\Users\test\Virtua
l Machines\Windows_Server_2008_R2_Enterprise.vhd" --resize 40000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
After running this the image in VB Manager said it was now 40 GB...great I thought! Then I proceeded to boot the image but now during the POST I get:
FATAL! No valid boot media detected.
I unfortunately did not think to make a backup before doing this...do I need to start over from scratch?
Resizing broke my Windows Server VHD
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Resizing broke my Windows Server VHD
That just showed how important it is to make a backup of files when you're going to modify them. Was the original VHD a dynamic expanding one? This is in the manual about it:
All that you can try is to hook it up to another VM and see if you can read any data from it and salvage what you can. You may have to start from scratch anyway, because it no longer boots. Repairing it might just as well fail.
It doesn't work otherwise and I reckon that if it doesn't give you an error when it's fixed, you would end up with what you have now.The --resize option allows you to change the capacity of an existing image; this adjusts the logical size of a virtual disk without affecting the physical size much. This currently works only for expanding the capacity of VDI and VHD formats, and only for the dynamically allocated variants.
All that you can try is to hook it up to another VM and see if you can read any data from it and salvage what you can. You may have to start from scratch anyway, because it no longer boots. Repairing it might just as well fail.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
dcadiou
- Posts: 1
- Joined: 6. Oct 2011, 01:12
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: win 7
Re: Resizing broke my Windows Server VHD
Hi
I also had the same kind of problem (fortunately I had backups).
I run a vboxmanage modify ... --resize command to expand an initial vhd file, at the end the new size seems correct, but the disk is now empty and the vm don't boot anymore.
I attached this vhd as a slave to another vm, and saw that this disk is empty with no partition at all.
So : Don't use this command to resize, it's a very dangerous command. It seems there is a bug in it !!!
Otherwise I don't understand why this command is still proposed by virtualbox team to user !
I also had the same kind of problem (fortunately I had backups).
I run a vboxmanage modify ... --resize command to expand an initial vhd file, at the end the new size seems correct, but the disk is now empty and the vm don't boot anymore.
I attached this vhd as a slave to another vm, and saw that this disk is empty with no partition at all.
So : Don't use this command to resize, it's a very dangerous command. It seems there is a bug in it !!!
Otherwise I don't understand why this command is still proposed by virtualbox team to user !
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Resizing broke my Windows Server VHD
Strange. I use it all the time and do not have problems.
But if you are a Windows user and have problems then just use CloneVDI Tool
Linux users can use this tool in wine.
But if you are a Windows user and have problems then just use CloneVDI Tool
Linux users can use this tool in wine.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Resizing broke my Windows Server VHD
I think that if there is a bug, it's in the VHD support. After all, resizing of dynamic VDI files go without any problem.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.