Opennebula 4.12.1 KVM DEPLOY FAILURE

Hi,

I use opennebula 4.12.1 on centos 6.5 kvm with all updates installed. I imported Ubuntu 14.04 KVM image from marketplace and try to instantiate it. but it fails with next log errors:

/var/log/one/oned.log:

Thu May 14 11:28:05 2015 [Z0][ReM][D]: Req:304 UID:0 VirtualMachineDeploy result SUCCESS, 186
Thu May 14 11:28:08 2015 [Z0][TM][D]: Message received: TRANSFER SUCCESS 186 -

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 ExitCode: 0

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 Successfully execute network driver operation: pre.

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/186/deployment.0’ ‘localhost’ 186 localhost

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 error: Failed to create domain from /var/lib/one//datastores/0/186/deployment.0

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 error: internal error process exited while connecting to monitor: 2015-05-14T15:28:08.729085Z qemu-kvm: -drive file=/var/lib/one//datastores/0/186/disk.0,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: ‘drive-virtio-disk0’ uses a qcow2 feature which is not supported by this qemu version: QCOW version 3

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 2015-05-14T15:28:08.729303Z qemu-kvm: -drive file=/var/lib/one//datastores/0/186/disk.0,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/186/disk.0: Operation not supported

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG E 186 Could not create domain from /var/lib/one//datastores/0/186/deployment.0

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 ExitCode: 255

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: LOG I 186 Failed to execute virtualization driver operation: deploy.

Thu May 14 11:28:08 2015 [Z0][VMM][D]: Message received: DEPLOY FAILURE 186 Could not create domain from /var/lib/one//datastores/0/186/deployment.0

Thu May 14 11:28:14 2015 [Z0][ImM][D]: Datastore system (0) successfully monitored.
Thu May 14 11:28:15 2015 [Z0][InM][D]: Host localhost (0) successfully monitored.

Here is what i see in sunstone:

ERROR Thu May 14 11:28:08 2015 : Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/186/deployment.0

Please advice

The problem is that the image is in a format not compatible with qemu < 1.1. We forgot to convert it to a compatible version before uploading it. You can do two things.

  • Convert the image in a machine with qemu >= 1.1 with this command:
$ qemu-img convert -O qcow2 -o compat=0.10 origin.qcow2 destination.qcow2
  • Download an older version of the image:

http://appliances.opennebula.systems/rel-4.8/Ubuntu-14.04.qcow2.gz.old

The old version has a problem with loopback device and it does not get IP. Making some services fail.

You can find the fix for the loopback problem in this post:

Thank you for help! I used older image and modified it.