Page 1 of 1

Problem opening VDI after converting from VHD

Posted: 28. Aug 2009, 23:17
by sdw162006
I'm using VB 3.0.4, on a Windows Vista host. I have been using a XP guest, with a VHD drive for a few weeks now. I decided to compact the virtual drive, since it's grown about a gig large than it's content.
I ran the command

Code: Select all

C:\Program Files\Sun\xVM VirtualBox>vboxmanage clonehd "c:\Users\Wiebel\.VirtualBox\XP SP3 with IE6
2009-Apr.vhd" "c:\Users\Wiebel\.VirtualBox\HardDisks\XP_IE6.vdi" --format VDI --type immutable --rem
ember
VirtualBox Command Line Management Interface Version 3.0.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 8d51eb06-6768-4896-aa69-0b0cdf7bfe36
The new VDI drive was listed in the virtual media manager with a problem. It gave an error about "Failed to open the hard disk C:\..." "Could not get the storage format of C:\... (VERR_NOT_SUPPORTED"

I tried doing the clonehd command several more times, without the --immutable switch, and using lower case 'vdi' for the format. I can not get the drive to open once converted to VDI format.

This is not critical, as the VHD file still works fine, I just want to compact the file before I make a immutable disk for differencing against.

Any ideas what to do?

Re: Problem opening VDI after converting from VHD

Posted: 29. Aug 2009, 00:02
by vbox4me2
Try without immutable, if that works you can set immutable seperately.

Re: Problem opening VDI after converting from VHD

Posted: 29. Aug 2009, 01:40
by sdw162006
I already tried it without --immutable.
Tried it with just the --format VDI, and just --format vdi

Can't set immutable after conversion, because it's not registered, due to the error.