Problem opening VDI after converting from VHD

Discussions related to using VirtualBox on Windows hosts.
Post Reply
sdw162006
Posts: 3
Joined: 28. Aug 2009, 20:58
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: OpenSUSE, DSL Linux, WIndows 2000, Windows XP, Sabayon Linux

Problem opening VDI after converting from VHD

Post 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?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Problem opening VDI after converting from VHD

Post by vbox4me2 »

Try without immutable, if that works you can set immutable seperately.
sdw162006
Posts: 3
Joined: 28. Aug 2009, 20:58
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: OpenSUSE, DSL Linux, WIndows 2000, Windows XP, Sabayon Linux

Re: Problem opening VDI after converting from VHD

Post 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.
Post Reply