Hi Javier, thank you for your answer.<br><br>After having a look at permissions I added root to the "cloud" group wich solved the problem of writing in the folders belonging to oneadmin. Now the VM poweroffs correctly but when I try to stop it, it goes to "SAVE" state and then "UNKOWN" again, but now the log message has changed.<br>

Now this is what I get:<br><br><div style="margin-left:40px">Mon Apr 29 16:34:22 2013 [LCM][I]: New VM state is RUNNING<br>Mon Apr 29 16:39:31 2013 [LCM][I]: New VM state is SAVE_STOP<br>Mon Apr 29 16:39:31 2013 [VMM][I]: Command execution fail: /var/tmp/one/vmm/xen/save one-29 /var/lib/one//datastores/0/29/checkpoint oneHost 29 oneHost<br>

Mon Apr 29 16:39:31 2013 [VMM][E]: save: Command "sudo /usr/sbin/xm save one-29 /var/lib/one//datastores/0/29/checkpoint" failed: Error: Domain 'one-29' does not exist.<br>Mon Apr 29 16:39:31 2013 [VMM][E]: Could not save one-29 to /var/lib/one//datastores/0/29/checkpoint<br>

Mon Apr 29 16:39:31 2013 [VMM][I]: ExitCode: 3<br>Mon Apr 29 16:39:31 2013 [VMM][I]: Failed to execute virtualization driver operation: save.<br>Mon Apr 29 16:39:31 2013 [VMM][E]: Error saving VM state: Could not save one-29 to /var/lib/one//datastores/0/29/checkpoint<br>

Mon Apr 29 16:39:31 2013 [LCM][I]: Fail to save VM state. Assuming that the VM is still RUNNING (will poll VM).<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-1-768 but domain 1 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-2-768 but domain 2 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-3-768 but domain 3 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-4-768 but domain 4 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-5-768 but domain 5 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-6-768 but domain 6 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-7-768 but domain 7 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-8-768 but domain 8 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-9-768 but domain 9 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-10-768 but domain 10 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-11-768 but domain 11 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-12-768 but domain 12 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-1-768 but domain 1 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-2-768 but domain 2 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-3-768 but domain 3 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-4-768 but domain 4 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-5-768 but domain 5 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-6-768 but domain 6 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-7-768 but domain 7 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-8-768 but domain 8 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-9-768 but domain 9 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-10-768 but domain 10 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-11-768 but domain 11 does not exist.<br>

Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-12-768 but domain 12 does not exist.<br>Mon Apr 29 16:39:35 2013 [VMM][I]: ExitCode: 0<br>Mon Apr 29 16:39:35 2013 [VMM][I]: VM running but it was not found. Restart and delete actions available or try to recover it manually<br>

Mon Apr 29 16:39:35 2013 [LCM][I]: New VM state is UNKNOWN<br></div><br><br><div class="gmail_quote">2013/4/26 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It looks like a problem with root permissions. Add root to the group<br>
oneadmin and make sure that the datastore directory is writable by<br>
group oneadmin in the remote node. You may need to restart xen daemons<br>
in the physical node. A reboot will probably be the safest way.<br>
<div><div class="h5"><br>
On Wed, Apr 24, 2013 at 5:49 PM, Aridane Jesús Sarrionandia de León<br>
<<a href="mailto:ajsarri@gmail.com">ajsarri@gmail.com</a>> wrote:<br>
> Hi everyone,<br>
><br>
> I've got open nebula installed and a server with Xen running and I have the<br>
> following problem.<br>
><br>
> I can create a VM with no problem, and reaches the state runn without error<br>
> messages.<br>
> The thing is that if I try to stop (onevm stop X) or poweroff (onevm<br>
> poweroff X) it goes to "unk" state.<br>
><br>
> This is the VM template I used (a lot of things are in comments until I get<br>
> to solve the basic issues).<br>
><br>
> CPU    = 0.1<br>
> MEMORY = 64<br>
><br>
> DISK   = [<br>
>   #BUS="ide",<br>
>   IMAGE="ttylinux",<br>
>   #IMAGE_UNAME="oneadmin",<br>
>   READONLY="no"#,<br>
>   #TARGET="xvda"<br>
> ]<br>
><br>
> NIC    = [ NETWORK="Small network"]<br>
><br>
> OS=[ KERNEL="/vmlinuz",<br>
>      INITRD="/initrd.img" ]<br>
><br>
> #RAW=[  DATA="builder = 'hvm'<br>
>         #shadow_memory = 8<br>
> #       device_model = '/usr/lib/xen-default/bin/qemu-dm'<br>
> #       boot=\"c\"",<br>
> #       TYPE="xen" ]<br>
><br>
> TEMPLATE_ID="1"<br>
><br>
> #CONTEXT = [<br>
> #    hostname    = "$NAME",<br>
> #    ip_public   = "PUBLIC_IP",<br>
> #    files      = "/path/to/init.sh /path/to/id_dsa.pub",<br>
> #    target      = "hdc",<br>
> #    root_pubkey = "id_dsa.pub",<br>
> #    username    = "opennebula",<br>
> #    user_pubkey = "id_dsa.pub"<br>
> #]<br>
><br>
><br>
><br>
> And this is the VM Log after the following commands:<br>
><br>
>     onevm create ttylinux_template.one<br>
>     onevm stop 13<br>
>     onevm restart 13<br>
>     onevm poweroff 13<br>
><br>
> And this is the log:<br>
><br>
> Wed Apr 24 16:36:20 2013 [DiM][I]: New VM state is ACTIVE.<br>
> Wed Apr 24 16:36:20 2013 [LCM][I]: New VM state is PROLOG.<br>
> Wed Apr 24 16:36:20 2013 [VM][I]: Virtual Machine has no context<br>
> Wed Apr 24 16:36:21 2013 [TM][I]: clone: Cloning<br>
> /var/lib/one/datastores/1/364fed6a7cfeeabca962d3fa160a8f60 in<br>
> oneHost:/var/lib/one//datastores/0/13/disk.0<br>
> Wed Apr 24 16:36:21 2013 [TM][I]: ExitCode: 0<br>
> Wed Apr 24 16:36:21 2013 [LCM][I]: New VM state is BOOT<br>
> Wed Apr 24 16:36:21 2013 [VMM][I]: Generating deployment file:<br>
> /var/lib/one/vms/13/deployment.0<br>
> Wed Apr 24 16:36:21 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:36:21 2013 [VMM][I]: Successfully execute network driver<br>
> operation: pre.<br>
> Wed Apr 24 16:36:23 2013 [VMM][D]: deploy: Credits set to 26<br>
> Wed Apr 24 16:36:23 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:36:23 2013 [VMM][I]: Successfully execute virtualization<br>
> driver operation: deploy.<br>
> Wed Apr 24 16:36:23 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:36:23 2013 [VMM][I]: Successfully execute network driver<br>
> operation: post.<br>
> Wed Apr 24 16:36:23 2013 [LCM][I]: New VM state is RUNNING<br>
> Wed Apr 24 16:36:54 2013 [LCM][I]: New VM state is SAVE_STOP<br>
> Wed Apr 24 16:36:54 2013 [VMM][I]: Command execution fail:<br>
> /var/tmp/one/vmm/xen/save one-13 /var/lib/one//datastores/0/13/checkpoint<br>
> oneHost 13 oneHost<br>
> Wed Apr 24 16:36:54 2013 [VMM][E]: save: Command "sudo /usr/sbin/xm save<br>
> one-13 /var/lib/one//datastores/0/13/checkpoint" failed: Error: xm save:<br>
> Unable to create file /var/lib/one/datastores/0/13/checkpoi<br>
> nt<br>
> Wed Apr 24 16:36:54 2013 [VMM][E]: Could not save one-13 to<br>
> /var/lib/one//datastores/0/13/checkpoint<br>
> Wed Apr 24 16:36:54 2013 [VMM][I]: ExitCode: 1<br>
> Wed Apr 24 16:36:54 2013 [VMM][I]: Failed to execute virtualization driver<br>
> operation: save.<br>
> Wed Apr 24 16:36:54 2013 [VMM][E]: Error saving VM state: Could not save<br>
> one-13 to /var/lib/one//datastores/0/13/checkpoint<br>
> Wed Apr 24 16:36:54 2013 [LCM][I]: Fail to save VM state. Assuming that the<br>
> VM is still RUNNING (will poll VM).<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9<br>
> does not exist.<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:36:58 2013 [VMM][I]: VM running but it was not found. Restart<br>
> and delete actions available or try to recover it manually<br>
> Wed Apr 24 16:36:58 2013 [LCM][I]: New VM state is UNKNOWN<br>
> Wed Apr 24 16:37:44 2013 [LCM][I]: New VM state is BOOT_UNKNOWN<br>
> Wed Apr 24 16:37:44 2013 [VMM][I]: Generating deployment file:<br>
> /var/lib/one/vms/13/deployment.0<br>
> Wed Apr 24 16:37:44 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:37:44 2013 [VMM][I]: Successfully execute network driver<br>
> operation: pre.<br>
> Wed Apr 24 16:37:46 2013 [VMM][D]: deploy: Credits set to 26<br>
> Wed Apr 24 16:37:46 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:37:46 2013 [VMM][I]: Successfully execute virtualization<br>
> driver operation: deploy.<br>
> Wed Apr 24 16:37:46 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:37:46 2013 [VMM][I]: Successfully execute network driver<br>
> operation: post.<br>
> Wed Apr 24 16:37:46 2013 [LCM][I]: New VM state is RUNNING<br>
> Wed Apr 24 16:37:54 2013 [LCM][I]: New VM state is SHUTDOWN_POWEROFF<br>
> Wed Apr 24 16:37:55 2013 [VMM][I]: Command execution fail:<br>
> /var/tmp/one/vmm/xen/shutdown one-13 oneHost 13 oneHost<br>
> Wed Apr 24 16:37:55 2013 [VMM][E]: shutdown: Command "sudo /usr/sbin/xm<br>
> shutdown one-13" failed: Error: Domain 'one-13' does not exist.<br>
> Wed Apr 24 16:37:55 2013 [VMM][E]: Could not shutdown one-13<br>
> Wed Apr 24 16:37:55 2013 [VMM][I]: ExitCode: 3<br>
> Wed Apr 24 16:37:55 2013 [VMM][I]: Failed to execute virtualization driver<br>
> operation: shutdown.<br>
> Wed Apr 24 16:37:55 2013 [VMM][E]: Error shuting down VM: Could not shutdown<br>
> one-13<br>
> Wed Apr 24 16:37:55 2013 [LCM][I]: Fail to shutdown VM. Assuming that the VM<br>
> is still RUNNING (will poll VM).<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-10-768 but domain 10<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-10-768 but domain 10<br>
> does not exist.<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: ExitCode: 0<br>
> Wed Apr 24 16:37:58 2013 [VMM][I]: VM running but it was not found. Restart<br>
> and delete actions available or try to recover it manually<br>
> Wed Apr 24 16:37:58 2013 [LCM][I]: New VM state is UNKNOWN<br>
><br>
> Best regards,<br>
> Aridane<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><b><br></b>