Hi,<div><br></div><div>The no_root_squash configuration is actually required, see the Shared File System guide [1]. Even if qemu is executed as oneadmin, I think libvirt still needs this parameter.</div><div><br></div><div>

After a 'onevm shutdown' command OpenNebula sends the ACPI signal to the guest VM, and if it does not disappear after a fixed timeout, it is assumed that the signal was ignored and the VM is still running. You might want to check if the acpi daemon is properly configured.</div>

<div>Or you can use the 'onevm cancel' command to perform a hard shutdown, in this case a 'libvirt destroy'.</div><div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.2:sfs#file_system_permissions">http://opennebula.org/documentation:rel3.2:sfs#file_system_permissions</a><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 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:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span><br>


<br><br><div class="gmail_quote">2012/1/26 deeepdish <span dir="ltr"><<a href="mailto:deeepdish@gmail.com">deeepdish@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>Hello.</div><div><br></div><div>Thanks for the response.   I followed the published instructions for KVM when I installed ONE.   dymanic_ownership = 0 is definitely in /etc/libvirt/qemu.conf on both of my compute nodes.   I'm still getting the CHOWN (0,0) error.   I have a work around in place at the moment, where by my NFS storage is exported with no_root_squash (not desired, and should not be necessary given that QEMU is running as oneadmin).</div>

<div><br></div><div>As a concequence (I think) of the above, I'm unable to successfully shutdown a VM.   Once it starts, selecting it and clicking Shutdown simply returns the machine back to running state on the next poll interval.   I've also disabled apparmor for libvirt by touching /etc/apparmor.d/disable/usr.sbin.libvirtd.   </div>

<div><br></div><div><br></div><div>The information about contextualization did the trick.   That seems to be working fine.</div><div><br></div><div>Thank you.</div><div><div class="h5"><div><br></div><br><div><div>On Jan 26, 2012, at 09:33 , Carlos Martín Sánchez wrote:</div>

<br><blockquote type="cite">Hi,<div><br></div>Your 1st problem might be related to the qemu dynamic_ownership configuration, check the kvm configuration guide [1] for more details.<div><br><div>About the automatic IP assignment, you need to contextualize your VMs so they can configure the IP leased by OpenNebula, see [2] for more information.</div>



<div><br></div><div>Regards.</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.2:kvmg#kvm_configuration" target="_blank">http://opennebula.org/documentation:rel3.2:kvmg#kvm_configuration</a></div>

<div>[2] <a href="http://opennebula.org/documentation:rel3.2:cong" target="_blank">http://opennebula.org/documentation:rel3.2:cong</a></div>

<div><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 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:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span><br>




<br><br><div class="gmail_quote">On Thu, Jan 19, 2012 at 7:55 PM, Deep Dish <span dir="ltr"><<a href="mailto:deeepdish@gmail.com" target="_blank">deeepdish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Good day,<br>
<br>
<br>
I’m performing an initial deployment of OpenNebula 3.2 (same issues<br>
persist on 2.2, 3.0 as well) and having several challenges:<br>
<br>
The environment:<br>
<br>
<br>
Ubuntu 11.10 server (front-end + compute nodes)<br>
<br>
ONE 3.2 built from source<br>
<br>
Installed as per instructions on <a href="http://OpenNebula.org" target="_blank">OpenNebula.org</a> for v3.2.<br>
<br>
QEMU is running as user oneadmin and group cloud.<br>
<br>
1.      A VM can be deployed using a template I create and .raw disk<br>
image uploaded as an image.   The VM enters the RUNNING state, however<br>
issues exist when attempting to stop the image.   It seems that<br>
there’s permissions missing somewhere.<br>
<br>
2.      Automatic assignment of hostname + network address does not<br>
work.   Although, when the VM is in RUNNING state an IP address is<br>
properly leased out to the instance from the available pool, it is not<br>
configured on the instance.   VM NIC is configured for DHCP<br>
assignment.<br>
<br>
<br>
/var/log/libvirt/libvirt.log:<br>
<br>
13:30:44.127: 1478: error : virFileOpenAsNoFork:669 : cannot chown<br>
'/var/lib/one//3/images/checkpoint' to (0, 0): Invalid argument<br>
<br>
13:30:44.128: 1478: error : qemudDomainSaveFlag:2084 : Failed to<br>
create domain save file '/var/lib/one//3/images/checkpoint': Invalid<br>
argument<br>
<br>
<br>
<br>
3.log:<br>
<br>
Thu Jan 19 13:28:17 2012 [DiM][I]: New VM state is ACTIVE.<br>
<br>
Thu Jan 19 13:28:17 2012 [LCM][I]: New VM state is PROLOG.<br>
<br>
Thu Jan 19 13:28:17 2012 [VM][I]: Virtual Machine has no context<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][D]: tm_clone.sh:<br>
hst04:/var/lib/one/images/0deab2bb9b8d75c9f1e9c195a2aa4eed<br>
hst05:/var/lib/one//3/images/disk.0<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][D]: tm_clone.sh: DST:<br>
/var/lib/one//3/images/disk.0<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Creating directory<br>
/var/lib/one//3/images<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p<br>
/var/lib/one//3/images".<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w<br>
/var/lib/one//3/images".<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Cloning<br>
/var/lib/one/images/0deab2bb9b8d75c9f1e9c195a2aa4eed<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "cp -r<br>
/var/lib/one/images/0deab2bb9b8d75c9f1e9c195a2aa4eed<br>
/var/lib/one//3/images/disk.0".<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw<br>
/var/lib/one//3/images/disk.0".<br>
<br>
Thu Jan 19 13:28:33 2012 [TM][I]: ExitCode: 0<br>
<br>
Thu Jan 19 13:29:27 2012 [LCM][I]: New VM state is BOOT<br>
<br>
Thu Jan 19 13:29:27 2012 [VMM][I]: Generating deployment file:<br>
/var/lib/one/3/deployment.0<br>
<br>
Thu Jan 19 13:29:27 2012 [VMM][I]: ExitCode: 0<br>
<br>
Thu Jan 19 13:29:27 2012 [VMM][I]: Successfully execute network driver<br>
operation: pre.<br>
<br>
Thu Jan 19 13:29:29 2012 [VMM][I]: ExitCode: 0<br>
<br>
Thu Jan 19 13:29:29 2012 [VMM][I]: Successfully execute virtualization<br>
driver operation: deploy.<br>
<br>
Thu Jan 19 13:29:29 2012 [VMM][I]: ExitCode: 0<br>
<br>
Thu Jan 19 13:29:29 2012 [VMM][I]: Successfully execute network driver<br>
operation: post.<br>
<br>
Thu Jan 19 13:29:34 2012 [LCM][I]: New VM state is RUNNING<br>
<br>
Thu Jan 19 13:30:43 2012 [LCM][I]: New VM state is SAVE_STOP<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][I]: Command execution fail:<br>
/var/tmp/one/vmm/kvm/save one-3 /var/lib/one//3/images/checkpoint<br>
hst05 3 hst05<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][E]: save: Command "virsh --connect<br>
<a>qemu:///system</a> save one-3 /var/lib/one//3/images/checkpoint" failed.<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][E]: save: error: Failed to save domain<br>
one-3 to /var/lib/one//3/images/checkpoint<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][I]: error: Failed to create domain save<br>
file '/var/lib/one//3/images/checkpoint': Invalid argument<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][E]: Could not save one-3 to<br>
/var/lib/one//3/images/checkpoint<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][I]: ExitCode: 1<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][I]: Failed to execute virtualization<br>
driver operation: save.<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][E]: Error saving VM state: Could not<br>
save one-3 to /var/lib/one//3/images/checkpoint<br>
<br>
Thu Jan 19 13:30:44 2012 [LCM][I]: Fail to save VM state. Assuming<br>
that the VM is still RUNNING (will poll VM).<br>
<br>
Thu Jan 19 13:30:44 2012 [VMM][I]: ExitCode: 0<br>
<br>
Thu Jan 19 13:30:45 2012 [VMM][D]: Monitor Information:<br>
<br>
        CPU   : 25<br>
<br>
        Memory: 1048576<br>
<br>
        Net_TX: 0<br>
<br>
        Net_RX: 3046<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>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></blockquote></div><br></div>