Supported images and conversion
THIS PART OF WIKI IS OUTDATED AND UNDER CONSTRUCTION. PLEASE BE PATIENT.
In order to use your own images in OpenNebula, they have to be in supported format.
What are the supported OS images and how to convert them?
Your OS images will run under virtualization system Xen v4.0.1, they must be therefore compatible with this system. Easiest way to check the compatibility is to use utility "file" in unix-type OS.
Command "file image_file_name" should output:
- if it is RAW image of whole disk, ie. more partitions with MBR and bootloader (preferred format)
linux-diskimage.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x849f2, GRUB version 0.94; partition 1: ID=0x83, active, starthead 32, startsector 2048, 1024000 sectors; partition 2: ID=0x8e, starthead 221, startsector 1026048, 5265408 sectors, code offset 0x48
- if it is RAW image of filesystem (for advanced users). It is easier to create, but less flexible and interoperable.
linux-rootfsimage.img: Linux rev 1.0 ext3 filesystem data, UUID=81a2e5b2-8d1f-4205-9de9-c47ff1186a23, volume name "sci-linux" (large files)
If the output is different from those above or the image format is different (eg. QCOW(2) format), you have to convert it into RAW format to use it in MetaCloud (eg. with "qemu-img convert")..
Note: The kernel of your image must also support Xen. It must have xen in it's name (*-2.6.32-5-xen-amd64) or must be 3.0 or higher.
Note: If you experience problems with damaged ext4 journal after restart, add option barrier=0 to / in /etc/fstab