[one-users] KVM Hypervisor Failed Image Start

Ryan Aydelott ryan.aydelott at vibes.com
Tue Oct 18 09:28:14 PDT 2011


I am having an issue with bootstrapping an image into a KVM hypervisor, I have had success with Xen prior to this, but now trying KVM. Some basic info:

OpenNebula 3.0
libvirtd on KVM (Centos 5.6) is 0.8.2
Shared NFS Filesystem
oneadmin account adding to KVM/QEMU groups

onehost successfully monitored:

Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked
  ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
   0 kvm01                0    400    397    400  31.4G    17G  31.4G     on
   6 kvm02                0    400    400    400  31.4G  30.8G  31.4G     on

I can successfully start KVM hosts via Virsh using the command line. However when I attempt to do so using OpenNebula it fails. It may be important to note that in /var/log/libvirt/qemu where I would normally see log files for one-5.log, one-6.log, etc - no file is created for this instance. This leads me to believe that kvm is not even being called on the machine.

I'm hoping this is just a really dumb beginners mistake. If anyone has any suggestions - let me know. Thanks!


Information on hypervisor for oned.log is as follows:

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh: opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 kvm02:/srv/cloud/one/var//10/images/disk.1

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh: DST: /srv/cloud/one/var//10/images/disk.1

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Creating directory /srv/cloud/one/var//10/images

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//10/images".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//10/images".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 /srv/cloud/one/var//10/images/disk.1".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0

Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.2 kvm02 10 kvm02; else                              exit 42; fi'

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Failed to create domain from /srv/cloud/one/var//10/images/deployment.2

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown failure

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG E 10 Could not create domain from /srv/cloud/one/var//10/images/deployment.2

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255

Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: DEPLOY FAILURE 10 Could not create domain from /srv/cloud/one/var//10/images/deployment.2


vm.log is as follows:

Tue Oct 18 10:50:42 2011 [DiM][I]: New VM state is ACTIVE.
Tue Oct 18 10:50:43 2011 [LCM][I]: New VM state is PROLOG.
Tue Oct 18 10:50:43 2011 [VM][I]: Virtual Machine has no context
Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: opennebula:/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso kvm02:/srv/cloud/one/var//10/images/disk.0
Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: DST: /srv/cloud/one/var//10/images/disk.0
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//10/images
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//10/images".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//10/images".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso /srv/cloud/one/var//10/images/disk.0".
Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.0".
Tue Oct 18 10:56:09 2011 [TM][I]: ExitCode: 0
Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh: opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 kvm02:/srv/cloud/one/var//10/images/disk.1
Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh: DST: /srv/cloud/one/var//10/images/disk.1
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//10/images
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//10/images".
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//10/images".
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0 /srv/cloud/one/var//10/images/disk.1".
Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".
Tue Oct 18 11:01:13 2011 [TM][I]: ExitCode: 0
Tue Oct 18 11:01:14 2011 [LCM][I]: New VM state is BOOT
Tue Oct 18 11:01:14 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/10/deployment.1
Tue Oct 18 11:01:14 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.1 kvm02 10 kvm02; else                              exit 42; fi'
Tue Oct 18 11:01:14 2011 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var//10/images/deployment.1
Tue Oct 18 11:01:14 2011 [VMM][I]: error: Unknown failure
Tue Oct 18 11:01:14 2011 [VMM][E]: Could not create domain from /srv/cloud/one/var//10/images/deployment.1
Tue Oct 18 11:01:14 2011 [VMM][I]: ExitCode: 255
Tue Oct 18 11:01:14 2011 [VMM][E]: Error deploying virtual machine: Could not create domain from /srv/cloud/one/var//10/images/deployment.1
Tue Oct 18 11:01:17 2011 [DiM][I]: New VM state is FAILED

RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA
300 W Adams St, Floor 7 | Chicago, IL 60606
312-589-6931 (o) | 312-388-2929 (m)
ryan.aydelott at vibes.com<mailto:ryan.aydelott at vibes.com> | www.vibes.com<http://www.vibes.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111018/3a441c97/attachment-0002.htm>


More information about the Users mailing list