Changes

Jump to: navigation, search
Converting a RAW Disk Image to VDI Format
<pre>
C:\Program Files\Sun\xVM VirtualBox>VBoxmanage VBoxManage showhdinfo Ubuntu.vdi 
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
<pre>
VBoxmanage VBoxManage modifyhd <disk image>.vdi settype immutable
VirtualBox Command Line Management Interface Version 2.1.4
<pre>
VBoxmanage VBoxManage modifyhd <disk image>.vdi settype writethrough
VirtualBox Command Line Management Interface Version 2.1.4
<pre>
VBoxmanage VBoxManage modifyhd <disk image>.vdi settype normal
VirtualBox Command Line Management Interface Version 2.1.4
:<tt>VBoxManage convertfromraw ''[-static]'' -format ''<format>'' ''<source image file>'' ''<target image file>''</tt>
where the optional ''-static'' directive specifies that the converted disk is to be fixed in size (when -static is omitted the disk is created as dynamically sized), ''<format>'' represents the format to which the raw image is to converted (VDI, VMDK or VHD), ''<source image file>'' is the filename of the raw image file and ''<target image file>'' is the name of the converted image file.
For example, the following command converts a raw image file to a VDI virtual disk:
<pre>
VBoxManage convertfromraw -format VDI xenvista.img xenvistavboxvista.vdi
VirtualBox Command Line Management Interface Version 2.1.4
All rights reserved.
Converting from raw image file="xenvista.img" to file="xenvistavboxvista.vdi"...
Creating dynamic image with size 10485760000 bytes (10000MB)...
</pre>
1,798
edits

Navigation menu