<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>As requested:</div>
<div><br>
</div>
<div>[root@kvm02 10]# cat deployment.1</div>
<div><domain type='kvm'></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><name>one-10</name></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><vcpu>4</vcpu></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><memory>4194304</memory></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><os></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><type arch='x86_64'>hvm</type></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><boot dev='cdrom'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></os></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><devices></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><emulator>/usr/bin/kvm</emulator></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><disk type='file' device='cdrom'></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><source file='/srv/cloud/one/var//10/images/disk.0'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><target dev='cdromc' bus='ide'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><readonly/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><driver name='qemu' type='raw' cache='default'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></disk></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><disk type='file' device='disk'></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><source file='/srv/cloud/one/var//10/images/disk.1'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><target dev='hde' bus='virtio'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><driver name='qemu' type='raw' cache='default'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></disk></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><graphics type='vnc' listen='172.20.90.21' port='5911'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></devices></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><features></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><acpi/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></features></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></div>
</div>
<div>
<div>[root@kvm02 10]# cat deployment.2</div>
<div><domain type='kvm'></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><name>one-10</name></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><vcpu>4</vcpu></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><memory>4194304</memory></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><os></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><type arch='x86_64'>hvm</type></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><boot dev='cdrom'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></os></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><devices></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><emulator>/usr/bin/kvm</emulator></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><disk type='file' device='cdrom'></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><source file='/srv/cloud/one/var//10/images/disk.0'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><target dev='cdromc' bus='ide'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><readonly/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><driver name='qemu' type='raw' cache='default'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></disk></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><disk type='file' device='disk'></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><source file='/srv/cloud/one/var//10/images/disk.1'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><target dev='hde' bus='virtio'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><driver name='qemu' type='raw' cache='default'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></disk></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><graphics type='vnc' listen='172.20.90.21' port='5911'/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></devices></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><features></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><acpi/></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></features></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span></div>
<div></domain></div>
</div>
<div><br>
</div>
<div>
<div>[root@kvm02 10]# virsh list --inactive</div>
<div> Id Name                 State</div>
<div>----------------------------------</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div>
<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>
</div>
<br>
<div>
<div>On Oct 18, 2011, at 4:01 PM, Javier Fontan wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Can you send us the deployment files (I can see both deployment.1 and<br>
deployment.2) files? Also go to the node and execute<br>
<br>
# virsh list --inactive<br>
<br>
as root and check that there are no inactive VMs defined.<br>
<br>
Cheers<br>
<br>
On Tue, Oct 18, 2011 at 6:28 PM, Ryan Aydelott <<a href="mailto:ryan.aydelott@vibes.com">ryan.aydelott@vibes.com</a>> wrote:<br>
<blockquote type="cite">I am having an issue with bootstrapping an image into a KVM hypervisor, I<br>
</blockquote>
<blockquote type="cite">have had success with Xen prior to this, but now trying KVM. Some basic<br>
</blockquote>
<blockquote type="cite">info:<br>
</blockquote>
<blockquote type="cite">OpenNebula 3.0<br>
</blockquote>
<blockquote type="cite">libvirtd on KVM (Centos 5.6) is 0.8.2<br>
</blockquote>
<blockquote type="cite">Shared NFS Filesystem<br>
</blockquote>
<blockquote type="cite">oneadmin account adding to KVM/QEMU groups<br>
</blockquote>
<blockquote type="cite">onehost successfully monitored:<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:23:11 2011 [ReM][D]: HostPoolInfo method invoked<br>
</blockquote>
<blockquote type="cite">  ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT<br>
</blockquote>
<blockquote type="cite">   0 kvm01                0    400    397    400  31.4G    17G  31.4G     on<br>
</blockquote>
<blockquote type="cite">   6 kvm02                0    400    400    400  31.4G  30.8G  31.4G     on<br>
</blockquote>
<blockquote type="cite">I can successfully start KVM hosts via Virsh using the command line. However<br>
</blockquote>
<blockquote type="cite">when I attempt to do so using OpenNebula it fails. It may be important to<br>
</blockquote>
<blockquote type="cite">note that in /var/log/libvirt/qemu where I would normally see log files for<br>
</blockquote>
<blockquote type="cite">one-5.log, one-6.log, etc - no file is created for this instance. This leads<br>
</blockquote>
<blockquote type="cite">me to believe that kvm is not even being called on the machine.<br>
</blockquote>
<blockquote type="cite">I'm hoping this is just a really dumb beginners mistake. If anyone has any<br>
</blockquote>
<blockquote type="cite">suggestions - let me know. Thanks!<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Information on hypervisor for oned.log is as follows:<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0<br>
</blockquote>
<blockquote type="cite">kvm02:/srv/cloud/one/var//10/images/disk.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG D 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">DST: /srv/cloud/one/var//10/images/disk.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">Creating directory /srv/cloud/one/var//10/images<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">Executed "mkdir -p /srv/cloud/one/var//10/images".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">Executed "chmod a+w /srv/cloud/one/var//10/images".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">Cloning /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">Executed "cp -r /srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.1".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.1".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: LOG I 10 ExitCode: 0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:52 2011 [TM][D]: Message received: TRANSFER SUCCESS 10 -<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 Command<br>
</blockquote>
<blockquote type="cite">execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then<br>
</blockquote>
<blockquote type="cite">/var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//10/images/deployment.2 kvm02<br>
</blockquote>
<blockquote type="cite">10 kvm02; else                              exit 42; fi'<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Failed<br>
</blockquote>
<blockquote type="cite">to create domain from /srv/cloud/one/var//10/images/deployment.2<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 error: Unknown<br>
</blockquote>
<blockquote type="cite">failure<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG E 10 Could not<br>
</blockquote>
<blockquote type="cite">create domain from /srv/cloud/one/var//10/images/deployment.2<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: LOG I 10 ExitCode: 255<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:14:53 2011 [VMM][D]: Message received: DEPLOY FAILURE 10 Could<br>
</blockquote>
<blockquote type="cite">not create domain from /srv/cloud/one/var//10/images/deployment.2<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">vm.log is as follows:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:50:42 2011 [DiM][I]: New VM state is ACTIVE.<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:50:43 2011 [LCM][I]: New VM state is PROLOG.<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:50:43 2011 [VM][I]: Virtual Machine has no context<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">opennebula:/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso<br>
</blockquote>
<blockquote type="cite">kvm02:/srv/cloud/one/var//10/images/disk.0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][D]: tm_clone.sh: DST:<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Creating directory<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Cloning<br>
</blockquote>
<blockquote type="cite">/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "cp -r<br>
</blockquote>
<blockquote type="cite">/srv/cloud/images/rhel-server-5.4-x86_64-dvd.iso<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.0".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.0".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 10:56:09 2011 [TM][I]: ExitCode: 0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh:<br>
</blockquote>
<blockquote type="cite">opennebula:/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0<br>
</blockquote>
<blockquote type="cite">kvm02:/srv/cloud/one/var//10/images/disk.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][D]: tm_clone.sh: DST:<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Creating directory<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Cloning<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "cp -r<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var/images/c38ebcb9c8b7d7f658feb6e9e62653e0<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.1".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/disk.1".<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:13 2011 [TM][I]: ExitCode: 0<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [LCM][I]: New VM state is BOOT<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][I]: Generating deployment file:<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var/10/deployment.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][I]: Command execution fail: 'if [ -x<br>
</blockquote>
<blockquote type="cite">"/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/deployment.1 kvm02 10 kvm02; else<br>
</blockquote>
<blockquote type="cite">exit 42; fi'<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][I]: error: Failed to create domain from<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/deployment.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][I]: error: Unknown failure<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][E]: Could not create domain from<br>
</blockquote>
<blockquote type="cite">/srv/cloud/one/var//10/images/deployment.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][I]: ExitCode: 255<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:14 2011 [VMM][E]: Error deploying virtual machine: Could<br>
</blockquote>
<blockquote type="cite">not create domain from /srv/cloud/one/var//10/images/deployment.1<br>
</blockquote>
<blockquote type="cite">Tue Oct 18 11:01:17 2011 [DiM][I]: New VM state is FAILED<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">RYAN AYDELOTT | SR. SYSTEMS/NETWORK ADMIN | VIBES MEDIA<br>
</blockquote>
<blockquote type="cite">300 W Adams St, Floor 7 | Chicago, IL 60606<br>
</blockquote>
<blockquote type="cite">312-589-6931 (o) | 312-388-2929 (m)<br>
</blockquote>
<blockquote type="cite"><a href="mailto:ryan.aydelott@vibes.com">ryan.aydelott@vibes.com</a> | <a href="http://www.vibes.com">www.vibes.com</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">_______________________________________________<br>
</blockquote>
<blockquote type="cite">Users mailing list<br>
</blockquote>
<blockquote type="cite"><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
</blockquote>
<blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<br>
<br>
<br>
-- <br>
Javier Fontán Muiños<br>
Project Engineer<br>
OpenNebula Toolkit | <a href="http://opennebula.org">opennebula.org</a><br>
</div>
</blockquote>
</div>
<br>
</body>
</html>