Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt_virtualbox [2012/01/23 15:56] droemel |
userdoc:tt_virtualbox [2012/01/27 11:07] abelbeck |
||
---|---|---|---|
Line 2: | Line 2: | ||
- | You can convert an astlinux-XX.img file to a VirtualBox .vdi and have a bootable system with a few simple steps. | + | You can convert an astlinux-XX.img file to a [[https:// |
- Download an AstLinux ' | - Download an AstLinux ' | ||
- | - Decompress the image using gunzip | + | - Decompress the image using gunzip, yielding a .img file |
- Use the VBoxManage utility to convert the image to a virtual disk | - Use the VBoxManage utility to convert the image to a virtual disk | ||
+ | |||
+ | Example: | ||
+ | |||
+ | gunzip astlinux-1.0.1-asterisk-1.8.8.1.img.gz | ||
VBoxManage convertfromraw -format VDI astlinux-1.0.1-asterisk-1.8.8.1.img astlinux-1.0.1.vdi | VBoxManage convertfromraw -format VDI astlinux-1.0.1-asterisk-1.8.8.1.img astlinux-1.0.1.vdi | ||
Line 12: | Line 16: | ||
//The formats VDI, VMDK and VHD are supported.// | //The formats VDI, VMDK and VHD are supported.// | ||
- | Then you can then resize the image to let's say 2 GB: | + | Then you can then resize the image... |
- | VBoxManage modifyhd --resize <new size in MB> <path to image> e.g. | + | Usage: |
- | VBoxManage modifyhd --resize 2048 / | + | |
- | Then simply create a new virtual machine using this file as the disk and start the normal **[[userdoc: | + | VBoxManage modifyhd --resize <new size in MB> <path to image> |
+ | |||
+ | Example (let's say 2 GB): | ||
+ | |||
+ | VBoxManage modifyhd --resize 2048 astlinux-1.0.1.vdi | ||
+ | |||
+ | Then simply create a new VirtualBox | ||
+ | |||
+ | Start the AstLinux Virtual Machine... | ||
+ | |||
+ | Finally, configure using the normal **[[userdoc: | ||
/* Be sure to use it as IDE harddisk in VirtualBox (default is SATA). You also need to create a secondary IDE harddisk for UnionFS. | /* Be sure to use it as IDE harddisk in VirtualBox (default is SATA). You also need to create a secondary IDE harddisk for UnionFS. | ||
Line 25: | Line 38: | ||
In my case it was ''/ | In my case it was ''/ | ||
- | I used a network bridge (en0) and the PCnet-Fast III adapter for the ' | ||
- | |||
- | ==== Alternative for VMDK (VMWare) in Java ==== | ||
- | |||
- | http:// | ||
- | |||
- | Usage: | ||
- | |||
- | java -Dtype=< | ||
- | |||
- | Example: | ||
- | |||
- | java -jar raw2vmdk.jar / | ||
- | |||
- | ==== Convert VM images to other formats ?=== | ||
- | There is another way to convert images into other VM formats with [[http:// | ||
- | |||
- | http:// | ||
- | |||
- | |||
- | \\ | ||