This is an old revision of the document!
Convert AstLinux install files to VirtualBox
You can convert an astlinux-XX.img file to a VirtualBox .vdi and have a bootable system with a few simple steps.
- Download an AstLinux 'geni586' .img.gz file
- Decompress the image using gunzip
- Use the VBoxManage utility to convert the image to a virtual disk
VBoxManage convertfromraw -format VDI astlinux-1.0.1-asterisk-1.8.8.1.img astlinux-1.0.1.vdi
The formats VDI, VMDK and VHD are supported.
Then you can then resize the image to let's say 2 GB:
VBoxManage modifyhd --resize <new size in MB> <path to image> e.g. VBoxManage modifyhd --resize 2048 /Users/astlinux/astlinux-1.0.1.vdi
Then simply create a new virtual machine using this file as the disk and start the normal setup. I used a network bridge (en0) and the PCnet-Fast III adapter for the 'geni586' image (on a Mac).
Convert VM images to other formats
There is another way to convert images into other VM formats with Qemu described here:
http://www.xgrr.de/wordpress/2008/02/25/convert-virtualbox-vdi-to-vmware-vmdk