This command converts a raw disk image to a VirtualBox Disk Image (VDI) file. The syntax is as follows:
VBoxManage convertfromraw <filename> <outputfile> [--format VDI|VMDK|VHD] [--variant Standard,Fixed,Split2G,Stream,ESX] [--uuid <uuid>] VBoxManage convertfromraw stdin <outputfile> <bytes> [--format VDI|VMDK|VHD] [--variant Standard,Fixed,Split2G,Stream,ESX] [--uuid <uuid>]
where the parameters mean:
-
--bytes
-
The size of the image file, in bytes, provided through stdin.
-
--format
-
Select the disk image format to create. Default is VDI. Other options are VMDK and VHD.
-
--variant
-
Allow to choose a file format variant for the output file. It is a comma-separated list of variant flags. Not all combinations are supported, and specifying inconsistent flags will result in an error message.
-
--uuid
-
Allow to specifiy the UUID of the output file.
The second form forces VBoxManage to read the content for the disk image from standard input (useful for using that command in a pipe).
Note
For compatibility with earlier versions of VirtualBox, the "convertdd" command is also supported and mapped internally to the "convertfromraw" command.