VBoxManage converfromraw stdin to a fixed image?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
haceat
Posts: 1
Joined: 18. Aug 2009, 02:18
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

VBoxManage converfromraw stdin to a fixed image?

Post by haceat »

When I do:
#sudo dd if=/dev/sda count=1000000 | VBoxManage convertfromraw stdin myimage.vdi 512000000

It works fine but creates a dynamic image. If I add "--variant Fixed" then it quickly gives:

Creating fixed image with size 512000000 bytes (512MB)...
Error while creating the disk image "myimage.vdi": VERR_INVALID_PARAMETER

So the message shows that it tried to create a fixed rather than dynamic image, but it always gives this VERR_INVALID_PARAMETER message.

Is it possible to use convertfromraw stdin AND make a fixed image? If so, how?

Thanks.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: VBoxManage converfromraw stdin to a fixed image?

Post by baf »

Code: Select all

sudo dd .... |VBoxManage convertfromraw   stdin outf 40000000  --variant Fixed
Seems to work for me. Exactly how do you call it and what your VBox Version?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Post Reply