<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
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:
<div><br>
</div>
<div>OpenNebula 3.0</div>
<div>libvirtd on KVM (Centos 5.6) is 0.8.2</div>
<div>Shared NFS Filesystem</div>
<div>oneadmin account adding to KVM/QEMU groups</div>
<div><br>
</div>
<div>onehost successfully monitored:</div>
<div><br>
</div>
<div>
<div>Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked</div>
<div> ID NAME RVM TCPU FCPU ACPU TMEM FMEM AMEM STAT</div>
<div> 0 kvm01 0 400 397 400 31.4G 17G 31.4G on</div>
<div> 6 kvm02 0 400 400 400 31.4G 30.8G 31.4G on</div>
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>I'm hoping this is just a really dumb beginners mistake. If anyone has any suggestions - let me know. Thanks!</div>
<div><br>
</div>
<div><br>
</div>
<div>Information on hypervisor for oned.log is as follows:</div>
<div><br>
</div>
<div>
<div>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</div>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>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".</div>
<div><br>
</div>
<div>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".</div>
<div><br>
</div>
<div>Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh: Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0</div>
<div><br>
</div>
<div>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".</div>
<div><br>
</div>
<div>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".</div>
<div><br>
</div>
<div>Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0</div>
<div><br>
</div>
<div>Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -</div>
<div><br>
</div>
<div>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'</div>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown failure</div>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255</div>
<div><br>
</div>
<div>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</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>vm.log is as follows:
<div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<pre>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
<span class="vm_log_error">Tue Oct 18 11:01:14 2011 [VMM][E]: Could not create domain from /srv/cloud/one/var//10/images/deployment.1</span>
Tue Oct 18 11:01:14 2011 [VMM][I]: ExitCode: 255
<span class="vm_log_error">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</span>
Tue Oct 18 11:01:17 2011 [DiM][I]: New VM state is FAILED</pre>
</span>
<div><br>
</div>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div>
<div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span lang="FR" style="font-size: 8.5pt; font-family: 'Century Gothic', sans-serif; color: rgb(31, 73, 125); ">RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA<o:p></o:p></span></div>
<div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<span lang="FR" style="font-size: 8.5pt; font-family: 'Century Gothic', sans-serif; color: rgb(31, 73, 125); ">300 W Adams St, Floor 7 | Chicago, IL 60606<br>
312-589-6931 (o) | 312-388-2929 (m) <br>
<a href="mailto:ryan.aydelott@vibes.com" style="color: blue; text-decoration: underline; "><span style="color: blue; ">ryan.aydelott@vibes.com</span></a> | <a href="http://www.vibes.com/" style="color: blue; text-decoration: underline; "><span style="color: blue; ">www.vibes.com</span></a></span></div>
</div>
</span></div>
<br>
</div>
</div>
</div>
</body>
</html>