Hi Pieter,<br><br>Thanks for sharing your solution. We've added a warning about changing the VM_DIR in the Ubuntu Platform Notes [1].<br><br>Regards,<br>Carlos.<br><br>[1] <a href="http://opennebula.org/documentation:rel2.2:notes">http://opennebula.org/documentation:rel2.2:notes</a><br>
<br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On 8 April 2011 11:39, Pieter Simoens <span dir="ltr"><<a href="mailto:pieter.simoens@intec.ugent.be">pieter.simoens@intec.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Dear all<br>
<br>
sorry for spamming the list, but I want to report the solution for
my issues as well, just to close this thread....<br>
<br>
Apparently, I had misconfigured the
/etc/apparmor.d/abstractions/libvirt-qemu...<br>
First, there was a typo in the line I had added.<br>
<br>
Second, I had configured a specific VM_DIR, and you have to add an
additional exception to the apparmor.d file!<br>
In my case, this was VM_DIR=/work/onimages, and I had to add an
additional line:<br>
---> owner /srv/cloud/one/var/** rw,<br>
--> owner /work/onimages/** rw,<br>
<br>
Of course, restart the apparmor daemon again.<br>
<br>
I do not know whether this is a generic "issue", maybe it should be
added to the documentation on the OpenNebula website? Now, there is
only a warning for the /srv/cloud/one/var directory...<br>
<br>
Best regards,<br>
Pieter<br>
<br>
<br>
<br>
Op 8/04/2011 10:52, Pieter Simoens schreef:
<div><div></div><div class="h5"><blockquote type="cite">
Dear all,<br>
<br>
following up on my e-mail below: according to <a href="http://dev.opennebula.org/issues/131" target="_blank">http://dev.opennebula.org/issues/131</a>,
this should be solved in my version (I am running 2.0). <br>
<br>
It seems it has to do with the way you connect to the virsh socket
(qemu:///system ?)<br>
<br>
So, I think the question is: where is the variable $LIBVIRT_URI
specified? At least, that is the variable that is used in the
/var/remotes/vmm/kvm/save script?<br>
<br>
Best regards,<br>
Pieter<br>
<br>
Op 8/04/2011 10:18, Pieter Simoens schreef:
<blockquote type="cite">
Dear all,<br>
<br>
when I issue a command "onevm stop VM_ID'', the Virtual Machine
stays in the save state. On my front-end node, the log-files
(both oned.log and vm.log) show no specific error.<br>
<br>
However, when I have a look at the virsh log-file on my cluster
node (/var/log/libvirt/qemu/one-22.log), I see the error: "sh:
cannot create /work/onimages/VM_ID/images/checkpoint: Permission
denied". <br>
<br>
Strangely enough, the permissions of /work/onimages/VM_ID/images
directory are set correctly (or so I think...): oneadmin is the
owner, and cloud is the group. Also the uid and gid are
identical to the oneadmin user on my frontend. But the
images/checkpoint directory seems to be owned by the root user,
belonging to the root group.<br>
<br>
Does anybody have an idea how this can be possible? Did I
configure my cluster node in the wrong way?<br>
<br>
Thank you,<br>
Pieter<br>
<br>
Op 5/04/2011 14:49, Carlos Martín Sánchez schreef:
<blockquote type="cite">Hi Pieter, please find my comments inline:<br clear="all">
<span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial,sans-serif;font-size:13px"></span><br>
<br>
<div class="gmail_quote">On 5 April 2011 13:42, Pieter Simoens
<span dir="ltr"><<a href="mailto:pieter.simoens@intec.ugent.be" target="_blank">pieter.simoens@intec.ugent.be</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"> <font face="Calibri">Dear all,<br>
<br>
I am running OpenNebula 2.0. I am able to successfully
deploy a VM on a cluster node. The image is
(currently) transferred over SSH. The VM boots
successfully, and I am able to log-in.<br>
<br>
When I do "onevm shutdown VM_ID", the VM is correctly
shut down. But it does no longer appear in the output
of "onevm list all".<br>
<br>
</font></div>
</blockquote>
<div><br>
That's the normal behaviour, VMs in DONE state are not
listed. However, you can still see the extended
information using 'onevm show <id>', because they
are stored in the DB for accounting purposes.<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"><font face="Calibri">
However, as far as I can recall from my previous
experiments, I thought that the VM image would we
transferred back, somewhere to VM_DIR/VM_ID directory.
<br>
<br>
Unfortunately, this is not happening. Does anybody has
any idea what can be the cause? Do I need to specify
any additional parameters? The log-files show me no
specific problem (I checked the oned.log and the
/var/VM_ID/vm.log).<br>
</font></div>
</blockquote>
<div><br>
Are you using the Image Repository [1]? If so, is the
Image persistent?<br>
If you are defining the DISKs in the VM templates as in
previous versions, make sure the attribute SAVE=YES is
present.<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"><font face="Calibri"><br>
Thank you,<br>
</font></div>
</blockquote>
<div><br>
Regards,<br>
Carlos.<br>
<br>
[1] <a href="http://opennebula.org/documentation:rel2.2:img_guide" target="_blank">http://opennebula.org/documentation:rel2.2:img_guide</a>
<br>
<br>
<span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial,sans-serif;font-size:13px">--<br>
Carlos Martín, MSc<br>
Project Major Contributor<br>
<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34)">OpenNebula</span> - The Open
Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34)">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34)">opennebula</span>.org</a></span><br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"><font face="Calibri">
</font>
<pre cols="72">--
Pieter Simoens, Ph.D.
Department of Information Technology
Internet Based Communication Networks and Services (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14878 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
W : <a href="http://www.ibcn.intec.UGent.be" target="_blank">www.ibcn.intec.UGent.be</a>
</pre>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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>
</blockquote>
</div>
<br>
</blockquote>
<br>
<pre cols="72">--
Pieter Simoens, Ph.D.
Department of Information Technology
Internet Based Communication Networks and Services (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14878 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
W : <a href="http://www.ibcn.intec.UGent.be" target="_blank">www.ibcn.intec.UGent.be</a>
</pre>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Pieter Simoens, Ph.D.
Department of Information Technology
Internet Based Communication Networks and Services (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14878 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
W : <a href="http://www.ibcn.intec.UGent.be" target="_blank">www.ibcn.intec.UGent.be</a>
</pre>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Pieter Simoens, Ph.D.
Department of Information Technology
Internet Based Communication Networks and Services (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14878 ; T Secr: +32 9 33 14900
F: +32 9 33 14899
W : <a href="http://www.ibcn.intec.UGent.be" target="_blank">www.ibcn.intec.UGent.be</a>
</pre>
</div></div></div>
<br>_______________________________________________<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></blockquote></div><br>