Difference between revisions of "VirtualBox"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Cov
imported>Cov
Line 2: Line 2:
  
 
=VMware Support=
 
=VMware Support=
While VirtualBox should be able to open <code>.vmdk</code> images, if your version is unable to, you can crack open VMware images with <code>dd</code>. See the [[VMware#Cracking_Open_VMDK_Images_with_DD|VMware article]] for instructions.
+
While VirtualBox should be able to open <code>.vmdk</code> images, you may need or want to convert the formats on the command line. Also, you can crack open VMware images with <code>dd</code> and loop-mount the partitions individually. See the [[VMware#Cracking_Open_VMDK_Images_with_DD|VMware article]] for instructions.
  
=Converting a Raw Image=
+
=Converting a Flat VMDK=
 
To convert a raw image to a virtual desktop image, you just need to run the <code>VBoxManage convertfromraw</code> command.
 
To convert a raw image to a virtual desktop image, you just need to run the <code>VBoxManage convertfromraw</code> command.
 
<pre>
 
<pre>
$ VBoxManage convertfromraw centosroot.img centosroot.vdi
+
$ VBoxManage convertfromraw CentOS/Red\ Hat\ Enterprise\ Linux\ 4-flat.vmdk ~/RHEL4.vdi
 
VirtualBox Command Line Management Interface Version 3.1.0
 
VirtualBox Command Line Management Interface Version 3.1.0
 
(C) 2005-2009 Sun Microsystems, Inc.
 
(C) 2005-2009 Sun Microsystems, Inc.
 
All rights reserved.
 
All rights reserved.
  
Converting from raw image file="centosroot.img" to file="centosroot.vdi"...
+
Converting from raw image file="CentOS/Red Hat Enterprise Linux 4-flat.vmdk" to file="/home/user/RHEL4.vdi"...
Creating dynamic image with size 2829464064 bytes (2699MB)...
+
Creating dynamic image with size 3221225472 bytes (3072MB)...
 
</pre>
 
</pre>
  
 
[[Category:Libre course software]]
 
[[Category:Libre course software]]
 
[[Category:Howtos]]
 
[[Category:Howtos]]

Revision as of 22:39, 1 March 2010

VirtualBox is partially libre, gratis virtualization software.

VMware Support

While VirtualBox should be able to open .vmdk images, you may need or want to convert the formats on the command line. Also, you can crack open VMware images with dd and loop-mount the partitions individually. See the VMware article for instructions.

Converting a Flat VMDK

To convert a raw image to a virtual desktop image, you just need to run the VBoxManage convertfromraw command.

$ VBoxManage convertfromraw CentOS/Red\ Hat\ Enterprise\ Linux\ 4-flat.vmdk ~/RHEL4.vdi
VirtualBox Command Line Management Interface Version 3.1.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Converting from raw image file="CentOS/Red Hat Enterprise Linux 4-flat.vmdk" to file="/home/user/RHEL4.vdi"...
Creating dynamic image with size 3221225472 bytes (3072MB)...