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