userdoc:tt_proxmox

This is an old revision of the document!


Convert AstLinux install files to Proxmox VE

You can convert an astlinux-XX.img file to a Proxmox VE .qcow2 file and have a bootable system with a few simple steps.

  1. Download an AstLinux 'geni586' .img.gz file
  2. scp the image to /var/lib/vz/images/ on your Proxmox VE server
  3. Decompress the image using gunzip, yielding a .img file
  4. Use the qemu-img utility to resize the raw image (in this example to 4 GB)
  5. Use the qemu-img utility to convert the image to a .qcow2 virtual disk

Example:

gunzip astlinux-1.1.3-asterisk-1.8.23.1.img.gz

qemu-img resize astlinux-1.1.3-asterisk-1.8.23.1.img 4G
qemu-img convert -f raw astlinux-1.1.3-asterisk-1.8.23.1.img -O qcow2 astlinux.qcow2
  • Now simply create a new 32bit KVM virtual machine with an IDE disk and the Intel E1000 NIC.
  • Take note of the VM ID, copy or move the astlinux.qcow2 to /var/lib/vz/images/<VM ID>/ (it starts with 100).
  • Then edit /etc/pve/local/qemu-server/<VM ID>.conf and change the name of ide0 to astlinux.qcow2.

Start the AstLinux Virtual Machine…

Finally, configure using the normal setup.

Be sure to use it as IDE harddisk in Proxmox VE.

I tested this with Proxmox VE 3.1 on a real machine, it doesn't work if you install Proxmox VE in another Virtual Machine (like VirtualBox) :-).

  • userdoc/tt_proxmox.1387665013.txt.gz
  • Last modified: 2013/12/21 16:30
  • by droemel