Hello Javier,<div><br></div><div>Thanks for that.  I was able to access the disk.</div><div><br></div><div>I am now getting the error, </div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-size:13px"><br>
</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-size:13px">>> Thu Oct 25 18:17:59 2012 [VMM][I]: error: Unable to read from monitor: Connection reset by peer</span></div><div>
<span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-size:13px"><br></span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-size:13px">I tried all of the suggestions in this thread:</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-size:13px"><br></span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-size:13px">>> </span><a href="http://www.digipedia.pl/usenet/thread/11667/7067/">http://www.digipedia.pl/usenet/thread/11667/7067/</a></div>
<div><br></div><div>Adding the disk group to the oneadmin user,</div><div>changing the order of the apparmor line.</div><div><br></div><div>Also, something that the docs don't point out, when you enable TCP you also have to disable TLS in libvirtd.conf.  </div>
<div>This caused a specific error though I don't remember it off the top of my head (that was a couple days ago).</div><div><br></div><div>Any ideas how I can resolve this?</div><div><br></div><div>Thanks,</div><div>Jon A</div>
<div><div><br><div class="gmail_quote">On Thu, Oct 25, 2012 at 9:10 AM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Make sure you can access /var/lib/one//datastores/0/6/disk.0 on the<br>
node if you are using shared system datastore.<br>
<div><div class="h5"><br>
On Tue, Oct 23, 2012 at 7:47 AM, Jon <<a href="mailto:three18ti@gmail.com">three18ti@gmail.com</a>> wrote:<br>
> Hello All,<br>
><br>
> I'm back again.  Not sure if I should continue this thread of if I should<br>
> start a new one as I'm still having issues deploying VMs, however, I'm now<br>
> working with a fresh install of 3.8 on a fresh install of Ubuntu 12.04.<br>
><br>
> The error I'm getting now is:<br>
><br>
>>> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6 error:<br>
>>> internal error process exited while connecting to monitor: kvm: -drive<br>
>>> file=/var/lib/one//datastores/0/6/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:<br>
>>> could not open disk image /var/lib/one//datastores/0/6/disk.0: Invalid<br>
>>> argument<br>
><br>
> I think this has something to do with the "id" parameter "id=drive-ide0-0-0"<br>
> but I'm not sure where that comes from or how to remedy it.<br>
><br>
> I've created my template via sunstone, is the an easy way to export the<br>
> template from the database?<br>
><br>
> I've copied the full error below in case I've misidentified the source of<br>
> the error.<br>
><br>
> Thanks,<br>
> Jon A<br>
><br>
> Full Error:<br>
><br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6 Command<br>
> execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy<br>
> /var/lib/one//datastores/0/6/deployment.0 kitt 6 kitt<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6 error: Failed<br>
> to create domain from /var/lib/one//datastores/0/6/deployment.0<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6 error: internal<br>
> error process exited while connecting to monitor: kvm: -drive<br>
> file=/var/lib/one//datastores/0/6/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:<br>
> could not open disk image /var/lib/one//datastores/0/6/disk.0: Invalid<br>
> argument<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG E 6 Could not<br>
> create domain from /var/lib/one//datastores/0/6/deployment.0<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6 ExitCode: 255<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: LOG I 6 Failed to<br>
> execute virtualization driver operation: deploy.<br>
> Mon Oct 22 23:39:42 2012 [VMM][D]: Message received: DEPLOY FAILURE 6 Could<br>
> not create domain from /var/lib/one//datastores/0/6/deployment.0<br>
><br>
><br>
><br>
> On Mon, Oct 22, 2012 at 12:10 AM, Jon <<a href="mailto:three18ti@gmail.com">three18ti@gmail.com</a>> wrote:<br>
>><br>
>> Hello Giovanni,<br>
>><br>
>> My mistake, I thought I had.<br>
>><br>
>> I swear I had already configured qemu as suggested "oneadmin:oneadmin"<br>
>> (oneadmin is not a valid group), and as suggested on the mailing list to<br>
>> "oneadmin:cloud", however, I just checked again and it appears that the user<br>
>> and group had not been set.<br>
>><br>
>> I've did what is suggested, I created the file<br>
>> /etc/apparmor.d/libvirt-qemu with the text suggested in the docs, I even<br>
>> toredown apparmor.<br>
>><br>
>> However, I still get the error:<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 error: Domain<br>
>> not found: no domain with matching name<br>
>> '/var/lib/one//datastores/0/7/deployment.0'<br>
>><br>
>> (not getting the permission denied error any more at least)<br>
>><br>
>> Mon Oct 22 00:06:47 2012 [ReM][D]: [373] [0 oneadmin] [AclInfo] method<br>
>> invoked<br>
>> Mon Oct 22 00:06:47 2012 [ReM][D]: [373] [0 oneadmin] [AclInfo] SUCCESS,<br>
>> "<ACL_POOL><ACL><ID>0..."<br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 Command<br>
>> execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy<br>
>> /var/lib/one//datastores/0/7/deployment.0 10.42.0.68 7 10.42.0.68<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 error: failed<br>
>> to get domain '/var/lib/one//datastores/0/7/deployment.0'<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 error: Domain<br>
>> not found: no domain with matching name<br>
>> '/var/lib/one//datastores/0/7/deployment.0'<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 error: Failed<br>
>> to create domain from /var/lib/one//datastores/0/7/deployment.0<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 error: Unable<br>
>> to read from monitor: Connection reset by peer<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG E 7 Could not<br>
>> create domain from /var/lib/one//datastores/0/7/deployment.0<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 ExitCode: 255<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: LOG I 7 Failed to<br>
>> execute virtualization driver operation: deploy.<br>
>><br>
>> Mon Oct 22 00:06:48 2012 [VMM][D]: Message received: DEPLOY FAILURE 7<br>
>> Could not create domain from /var/lib/one//datastores/0/7/deployment.0<br>
>><br>
>> Thanks again for your help.<br>
>><br>
>> Best Regards,<br>
>> Jon A<br>
>><br>
>><br>
>> On Sun, Oct 21, 2012 at 11:52 PM, Giovanni Toraldo <<a href="mailto:me@gionn.net">me@gionn.net</a>> wrote:<br>
>>><br>
>>> Hello Jon,<br>
>>><br>
>>> please always use the Reply-to-all function of your email client when<br>
>>> using public mailing lists.<br>
>>><br>
>>> 2012/10/22 Jon <<a href="mailto:three18ti@gmail.com">three18ti@gmail.com</a>>:<br>
>>> > Hello Giovanni,<br>
>>> ><br>
>>> > Thanks for your quick reply.<br>
>>> ><br>
>>> > Actually, the only error I see is,<br>
>>> ><br>
>>> >>> Sun Oct 21 22:13:04 2012 [AuM][E]: Auth Error: Could not find<br>
>>> >>> Authorization driver<br>
>>> ><br>
>>> > So I googled the error which brought me to:<br>
>>> ><br>
>>> > <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006282.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006282.html</a><br>
>>> ><br>
>>> > Where they ask if AUTH_MAD is uncommented, in my case it was, but the<br>
>>> > path<br>
>>> > was not specified:<br>
>>> ><br>
>>> >>  AUTH_MAD = [<br>
>>> >>      executable = "one_auth_mad",<br>
>>> >>      authn = "ssh,x509,ldap,server_cipher,server_x509"<br>
>>> >>  ]<br>
>>> ><br>
>>> > So I set it to the full path:<br>
>>> ><br>
>>> >>  AUTH_MAD = [<br>
>>> >>      executable = "/usr/lib/one/mads/one_auth_mad",<br>
>>> >>      authn = "ssh,x509,ldap,server_cipher,server_x509"<br>
>>> >>  ]<br>
>>> ><br>
>>> > Now authentication is successful, however, I get the following in my<br>
>>> > oned.log logs.<br>
>>> ><br>
>>> > Sun Oct 21 22:47:22 2012 [TM][D]: Message received: LOG I 2 mkimage:<br>
>>> > Making<br>
>>> > filesystem of 10240M and type ext4 at<br>
>>> > 10.42.0.68:/var/lib/one//datastores/0/2/disk.0<br>
>>> > Sun Oct 21 22:47:22 2012 [TM][D]: Message received: LOG I 2 ExitCode: 0<br>
>>> > Sun Oct 21 22:47:23 2012 [TM][D]: Message received: LOG I 2 mkimage:<br>
>>> > Making<br>
>>> > filesystem of 1024M and type swap at<br>
>>> > 10.42.0.68:/var/lib/one//datastores/0/2/disk.1<br>
>>> > Sun Oct 21 22:47:23 2012 [TM][D]: Message received: LOG I 2 ExitCode: 0<br>
>>> > Sun Oct 21 22:47:23 2012 [TM][D]: Message received: TRANSFER SUCCESS 2<br>
>>> > -<br>
>>> > Sun Oct 21 22:47:24 2012 [VMM][D]: Message received: LOG I 2 ExitCode:<br>
>>> > 0<br>
>>> > Sun Oct 21 22:47:24 2012 [VMM][D]: Message received: LOG I 2<br>
>>> > Successfully<br>
>>> > execute network driver operation: pre.<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 Command<br>
>>> > execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy<br>
>>> > /var/lib/one//datastores/0/2/deployment.0 10.42.0.68 2 10.42.0.68<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error:<br>
>>> > failed<br>
>>> > to get domain '/var/lib/one//datastores/0/2/deployment.0'<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error:<br>
>>> > Domain<br>
>>> > not found: no domain with matching name<br>
>>> > '/var/lib/one//datastores/0/2/deployment.0'<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error:<br>
>>> > Failed<br>
>>> > to create domain from /var/lib/one//datastores/0/2/deployment.0<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 error:<br>
>>> > internal<br>
>>> > error process exited while connecting to monitor: kvm: -drive<br>
>>> ><br>
>>> > file=/var/lib/one//datastores/0/2/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:<br>
>>> > could not open disk image /var/lib/one//datastores/0/2/disk.0:<br>
>>> > Permission<br>
>>> > denied<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG E 2 Could not<br>
>>> > create domain from /var/lib/one//datastores/0/2/deployment.0<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 ExitCode:<br>
>>> > 255<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: LOG I 2 Failed to<br>
>>> > execute virtualization driver operation: deploy.<br>
>>> > Sun Oct 21 22:47:26 2012 [VMM][D]: Message received: DEPLOY FAILURE 2<br>
>>> > Could<br>
>>> > not create domain from /var/lib/one//datastores/0/2/deployment.0<br>
>>> > Sun Oct 21 22:47:39 2012 [AuM][D]: Message received: LOG I 3 ExitCode:<br>
>>> > 0<br>
>>> ><br>
>>> > What it looks like is it's still failing to get a domain -named-<br>
>>> > "/var/lib/one//datastores/0/2/deployment.0".  This file does exist.<br>
>>> ><br>
>>> > The two disks however, belong to user and group root and root.<br>
>>> ><br>
>>> > I also see IM_MAD set without a path for the executable.<br>
>>> ><br>
>>> > IM_MAD = [<br>
>>> >       name       = "im_kvm",<br>
>>> >       executable = "one_im_ssh",<br>
>>> >       arguments  = "-r 0 -t 15 kvm" ]<br>
>>> ><br>
>>> > I set the full path here (is there a better way to resolve the lack of<br>
>>> ><br>
>>> > But I'm still getting the same error:<br>
>>> ><br>
>>> >>> Sun Oct 21 23:02:28 2012 [VMM][D]: Message received: LOG I 4 error:<br>
>>> >>> internal error process exited while connecting to monitor: kvm:<br>
>>> >>> -drive<br>
>>> >>><br>
>>> >>> file=/var/lib/one//datastores/0/4/disk.0,if=none,id=drive-ide0-0-0,format=qcow2:<br>
>>> >>> could not open disk image /var/lib/one//datastores/0/4/disk.0:<br>
>>> >>> Permission<br>
>>> >>> denied<br>
>>> ><br>
>>> > googling that error brought me back to here:<br>
>>> ><br>
>>> > <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002848.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002848.html</a><br>

>>> ><br>
>>> > Which indicates that I should set the user and group for libvirt to<br>
>>> > oneadmin:cloud.  Problem is, the disk images are owned by root:root.<br>
>>><br>
>>><br>
>>> There are some configuration requirements for KVM hosts, that you<br>
>>> should read on the documentation page and apply them:<br>
>>><br>
>>> <a href="http://opennebula.org/documentation:rel3.6:kvmg#kvm_configuration" target="_blank">http://opennebula.org/documentation:rel3.6:kvmg#kvm_configuration</a><br>
>>><br>
>>><br>
>>> > I created the template via Sunstone, so there really isn't a template<br>
>>> > per<br>
>>> > se...  I did a little digging, and it looks like sunstone does store<br>
>>> > the<br>
>>> > template in the sqlite database.  The following mess of XML looks to be<br>
>>> > the<br>
>>> > template, I don't see anything that sticks out as a Xen specific.  I<br>
>>> > did use<br>
>>> > the KVM template in Sunstone to generate this template.<br>
>>> ><br>
>>> > sqlite> select body from template_pool;<br>
>>> > <VMTEMPLATE><br>
>>> >     <ID>1</ID><br>
>>> >     <UID>0</UID><br>
>>> >     <GID>0</GID><br>
>>> >     <UNAME>oneadmin</UNAME><br>
>>> >     <GNAME>oneadmin</GNAME><br>
>>> >     <NAME>Ubuntu Test</NAME><br>
>>> >     <PERMISSIONS><br>
>>> >         <OWNER_U>1</OWNER_U><br>
>>> >         <OWNER_M>1</OWNER_M><br>
>>> >         <OWNER_A>0</OWNER_A><br>
>>> >         <GROUP_U>0</GROUP_U><br>
>>> >         <GROUP_M>0</GROUP_M><br>
>>> >         <GROUP_A>0</GROUP_A><br>
>>> >         <OTHER_U>0</OTHER_U><br>
>>> >         <OTHER_M>0</OTHER_M><br>
>>> >         <OTHER_A>0</OTHER_A><br>
>>> >     </PERMISSIONS><br>
>>> >     <REGTIME>1350791903</REGTIME><br>
>>> >     <TEMPLATE><br>
>>> >         <CPU><![CDATA[1]]></CPU><br>
>>> >         <DISK><br>
>>> >             <DRIVER><![CDATA[qcow2]]></DRIVER><br>
>>> >             <FORMAT><![CDATA[ext4]]></FORMAT><br>
>>> >             <SIZE><![CDATA[10240]]></SIZE><br>
>>> >             <TYPE><![CDATA[fs]]></TYPE><br>
>>> >         </DISK><br>
>>> >         <DISK><br>
>>> >             <DRIVER><![CDATA[raw]]><br>
>>> >             </DRIVER><br>
>>> >             <SIZE><![CDATA[1024]]></SIZE><br>
>>> >             <TYPE><![CDATA[swap]]></TYPE><br>
>>> >         </DISK><br>
>>> >         <GRAPHICS><br>
>>> >             <LISTEN><![CDATA[0.0.0.0]]></LISTEN><br>
>>> >             <TYPE><![CDATA[vnc]]></TYPE><br>
>>> >         </GRAPHICS><br>
>>> >         <MEMORY><![CDATA[512]]></MEMORY><br>
>>> >         <NAME><![CDATA[Ubuntu Test]]></NAME><br>
>>> >         <OS><br>
>>> >             <ARCH><![CDATA[x86_64]]></ARCH><br>
>>> >             <BOOT><![CDATA[hd]]></BOOT><br>
>>> >         </OS><br>
>>> >         <RAW><br>
>>> >             <TYPE><![CDATA[kvm]]></TYPE><br>
>>> >         </RAW><br>
>>> >         <TEMPLATE_ID><![CDATA[1]]></TEMPLATE_ID><br>
>>> >         <VCPU><![CDATA[4]]></VCPU><br>
>>> >     </TEMPLATE><br>
>>> > </VMTEMPLATE><br>
>>> ><br>
>>> ><br>
>>> > At this point I'm a little stumped so any help is greatly appreciated.<br>
>>> ><br>
>>> > Thanks Again,<br>
>>> > Jon A<br>
>>> ><br>
>>><br>
>>> --<br>
>>> Giovanni Toraldo<br>
>>> <a href="http://gionn.net" target="_blank">http://gionn.net</a><br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Best Regards,<br>
> Jonathan David<br>
><br>
> Please excuse any brevity or typos as this e-mail is most likely sent from a<br>
> mobile device.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a> | @OpenNebula<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<div>Jonathan David</div><div><br></div><div>Please excuse any brevity or typos as this e-mail is most likely sent from a mobile device.</div>
<br>
</div></div>