Hi everyone,<br><br>I've got open nebula installed and a server with Xen running and I have the following problem.<br><br>I can create a VM with no problem, and reaches the state runn without error messages.<br>The thing is that if I try to <b>stop </b>(onevm stop X) or <b>poweroff</b> (onevm poweroff X) it goes to "<b>unk</b>" state.<br>

<br>This is the VM template I used (a lot of things are in comments until I get to solve the basic issues).<br><br><div style="margin-left:80px">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></div><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<b><br><br></b>And this is the log<b>:<br><br></b><div style="margin-left:80px">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 /var/lib/one/datastores/1/364fed6a7cfeeabca962d3fa160a8f60 in 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: /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 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 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 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: /var/tmp/one/vmm/xen/save one-13 /var/lib/one//datastores/0/13/checkpoint oneHost 13 oneHost<br>Wed Apr 24 16:36:54 2013 [VMM][E]: save: Command "sudo /usr/sbin/xm save one-13 /var/lib/one//datastores/0/13/checkpoint" failed: Error: xm save: 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 /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 operation: save.<br>

Wed Apr 24 16:36:54 2013 [VMM][E]: Error saving VM state: Could not save 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 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 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4 does not exist.<br>

Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7 does not exist.<br>

Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2 does not exist.<br>

Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5 does not exist.<br>

Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7 does not exist.<br>Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8 does not exist.<br>

Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9 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 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: /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 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 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 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: /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 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 operation: shutdown.<br>Wed Apr 24 16:37:55 2013 [VMM][E]: Error shuting down VM: Could not shutdown one-13<br>

Wed Apr 24 16:37:55 2013 [LCM][I]: Fail to shutdown VM. Assuming that the VM is still RUNNING (will poll VM).<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3 does not exist.<br>

Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6 does not exist.<br>

Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9 does not exist.<br>

Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-10-768 but domain 10 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-2-51712 but domain 2 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-3-51712 but domain 3 does not exist.<br>

Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-4-51712 but domain 4 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-5-51712 but domain 5 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-6-51712 but domain 6 does not exist.<br>

Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-7-768 but domain 7 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-8-768 but domain 8 does not exist.<br>Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-9-768 but domain 9 does not exist.<br>

Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-10-768 but domain 10 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 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></div>Best regards,<br>Aridane<br>