Hj. According your help, I try to do but something is wrong. When i type "onevm stop id". VM alway is save state. It don't change from saving to stopping.
Thu Apr 14 14:51:11 2011 [DiM][I]: New VM state is ACTIVE. Thu Apr 14 14:51:11 2011 [LCM][I]: New VM state is PROLOG. Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: oneadmin-desktop:/srv/cloud/images/ttylinux/ttylinux.img 172.29.70.137: /srv/cloud/one/var//98/images/disk.0 Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: DST: /srv/cloud/one/var//98/images/disk.0 Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//98/images Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//98/images". Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//98/images". Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/images/ttylinux/ttylinux.img Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/images/ttylinux/ttylinux.img /srv/cloud/one/var//98/images/disk.0". Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//98/images/disk.0". Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "mkdir -p /srv/cloud/one/var//98/images/isofiles". Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/var/98/context.sh /srv/cloud/one/var//98/images/isofiles". Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/images/ttylinux/init.sh /srv/cloud/one/var//98/images/isofiles". Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/.ssh/id_rsa.pub /srv/cloud/one/var//98/images/isofiles". Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "/usr/bin/mkisofs -o /srv/cloud/one/var//98/images/disk.1 -J -R /srv/cloud/one/var//98/images/isofiles". Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "rm -rf /srv/cloud/one/var//98/images/isofiles". Thu Apr 14 14:51:12 2011 [LCM][I]: New VM state is BOOT Thu Apr 14 14:51:12 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/98/deployment.0 Thu Apr 14 14:51:13 2011 [LCM][I]: New VM state is RUNNING Thu Apr 14 14:51:22 2011 [LCM][I]: New VM state is SAVE_STOP Then , i type "onevm resume id" Thu Apr 14 15:03:16 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Thu Apr 14 15:03:21 2011 [ReM][D]: VirtualMachineAction invoked Thu Apr 14 15:03:21 2011 [DiM][D]: Resuming VM 98 Thu Apr 14 15:03:21 2011 [DiM][E]: Could not resume VM 98, wrong state. Thu Apr 14 15:03:21 2011 [ReM][E]: Wrong state to perform action What 's your idea? 2011/4/9 Prakhar Srivastava <[email protected]> > Hi, > If by saving you intend to 'resume' that VM at a later point in time,your > steps are correct. > > Regards, > Prakhar > > 2011/4/8 Khoa Nguyen <[email protected]> > >> >> Hi Prakhar Srivastava >> Thank you for your reply. If i want to save a VM . >> 1. onevm stop id >> 2. Wait until changing from saving to stopping state. >> 3. onevm resume id. >> >> Is that right? >> >> >> >> 2011/4/8 Prakhar Srivastava <[email protected]> >> >>> Hi Khoa >>> As already stated by Carlos, the save state is an intermediate state in >>> which the running VM image is saved to the disk. This might take a little >>> time and in the the mean time, the VM state is save (means it is saving the >>> image so that it can be resumed from the state at which it was stopped). You >>> cannot perform resume at save (saving...) state. It will always give an >>> error. Once the VMs image is saved completely, the state changes to stop >>> (means the VM is stopped). You can only resume a VM from a stopped or >>> suspended state. So if you are not getting to 'stop' state, please check >>> your vm.log file for any error. You can find the log file in >>> /var/log/<VMID>/vm.log. Do post back the logs in case you find it cryptic >>> !!! >>> >>> Regards, >>> Prakhar >>> >>> >>> 2011/4/8 Khoa Nguyen <[email protected]> >>> >>>> Hi Carlos Martín Sánchez >>>> >>>> When the VM is in save status, How to change from saving to running >>>> status? >>>> I try to enable VM , but it display Erros: wrong state. >>>> I can't solve problem. >>>> >>>> >>>> >>>> >>>> 2011/4/5 Carlos Martín Sánchez <[email protected]> >>>> >>>>> Hi there, >>>>> >>>>> If you take a look at the Virtual Machine Life-cycle diagram [1], the >>>>> 'save' state is a intermediate state, and the VM should end in either the >>>>> 'suspended' or 'stopped' state. If the VM is stuck in 'save', you may find >>>>> some error messages in oned.log or the VM's log (in <vm-id>/vm.log). >>>>> >>>>> About #2, it may be a monitorization problem. Can you check using virsh >>>>> or xentop the actual memory consumption? >>>>> >>>>> Best regards, >>>>> Carlos. >>>>> >>>>> [1] >>>>> http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle >>>>> >>>>> -- >>>>> Carlos Martín, MSc >>>>> Project Major Contributor >>>>> OpenNebula - The Open Source Toolkit for Cloud Computing >>>>> www.OpenNebula.org <http://www.opennebula.org/> | cmartin@opennebula >>>>> .org >>>>> >>>>> >>>>> On 17 March 2011 05:01, Khoa Nguyen <[email protected]> wrote: >>>>> >>>>>> I have two question but I can't explain . >>>>>> 1.When i suspend or stop a VM, It changes to save status. >>>>>> Unfortunaly,I want to resume or restart VM to changing running status , >>>>>> It >>>>>> display "Error: Wrong state to perform action". I don't know why. Is >>>>>> OpenNebula wrong?? >>>>>> >>>>>> 2. Status's VM is ruunig but MEMORY = 0. >>>>>> >>>>>> Anyone know? Please help me. >>>>>> >>>>>> >>>>>> oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list >>>>>> ID USER NAME STAT CPU MEM HOSTNAME TIME >>>>>> 39 oneadmin ttylinux runn 0 * 0K* 172.29.70.137 00 >>>>>> 00:05:05 >>>>>> oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm suspend 39 >>>>>> oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list >>>>>> ID USER NAME STAT CPU MEM HOSTNAME TIME >>>>>> 39 oneadmin ttylinux save 0 * 0K* 172.29.70.137 00 >>>>>> 00:05:21 >>>>>> oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm resume 39 >>>>>> Error: Wrong state to perform action* >>>>>> oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm restart 39 >>>>>> Error: Wrong state to perform action* >>>>>> >>>>>> Thank you for advance. >>>>>> >>>>>> ,-- >>>>>> Nguyễn Vũ Văn Khoa >>>>>> Đại học Khoa Học Tự Nhiên TP HCM >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> [email protected] >>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Nguyễn Vũ Văn Khoa >>>> Đại học Khoa Học Tự Nhiên TP HCM >>>> >>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> [email protected] >>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>> >>>> >>> >> >> >> -- >> Nguyễn Vũ Văn Khoa >> Đại học Khoa Học Tự Nhiên TP HCM >> >> >> > -- Nguyễn Vũ Văn Khoa Đại học Khoa Học Tự Nhiên TP HCM
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
