<br>Hj.<br><br>According your help, I try to do but something is wrong. When i type "onevm stop id". VM alway is save state.<br>It don't change from saving to stopping.<br><br>Thu Apr 14 14:51:11 2011 [DiM][I]: New VM state is ACTIVE.<br>
Thu Apr 14 14:51:11 2011 [LCM][I]: New VM state is PROLOG.<br>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<br>Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: DST: /srv/cloud/one/var//98/images/disk.0<br>
Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//98/images<br>Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//98/images".<br>Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//98/images".<br>
Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/images/ttylinux/ttylinux.img<br>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".<br>
Thu Apr 14 14:51:12 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//98/images/disk.0".<br>Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "mkdir -p /srv/cloud/one/var//98/images/isofiles".<br>
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".<br>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".<br>
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".<br>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".<br>
Thu Apr 14 14:51:12 2011 [TM][I]: tm_context.sh: Executed "rm -rf /srv/cloud/one/var//98/images/isofiles".<br>Thu Apr 14 14:51:12 2011 [LCM][I]: New VM state is BOOT<br>Thu Apr 14 14:51:12 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/98/deployment.0<br>
Thu Apr 14 14:51:13 2011 [LCM][I]: New VM state is RUNNING<br>Thu Apr 14 14:51:22 2011 [LCM][I]: New VM state is SAVE_STOP<br><br>Then , i type "onevm resume id"<br><br>Thu Apr 14 15:03:16 2011 [ReM][D]: VirtualMachinePoolInfo method invoked<br>
Thu Apr 14 15:03:21 2011 [ReM][D]: VirtualMachineAction invoked<br>Thu Apr 14 15:03:21 2011 [DiM][D]: Resuming VM 98<br>Thu Apr 14 15:03:21 2011 [DiM][E]: Could not resume VM 98, wrong state.<br>Thu Apr 14 15:03:21 2011 [ReM][E]: Wrong state to perform action<br>
<br>What 's your idea? <br><br><div class="gmail_quote">2011/4/9 Prakhar Srivastava <span dir="ltr"><<a href="mailto:prakhar.apj@gmail.com">prakhar.apj@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<div>If by saving you intend to 'resume' that VM at a later point in time,your steps are correct. </div><div><div></div><div class="h5"><div><br></div><div>Regards,</div><div>Prakhar <br><br><div class="gmail_quote">
2011/4/8 Khoa Nguyen <span dir="ltr"><<a href="mailto:vankhoa011@gmail.com" target="_blank">vankhoa011@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>Hi Prakhar Srivastava<br>Thank you for your reply. If i want to save a VM .<br>1. onevm stop id<br>
2. Wait until changing from saving to stopping state.<br>
3. onevm resume id.<br><br>Is that right?<div><div></div><div><br><br><br><div class="gmail_quote">
2011/4/8 Prakhar Srivastava <span dir="ltr"><<a href="mailto:prakhar.apj@gmail.com" target="_blank">prakhar.apj@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Khoa<div>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 !!!</div>
<div><br></div><div>Regards,</div><div>Prakhar<div><div></div><div><br><br><div class="gmail_quote">2011/4/8 Khoa Nguyen <span dir="ltr"><<a href="mailto:vankhoa011@gmail.com" target="_blank">vankhoa011@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Carlos Martín Sánchez<br><br>When the VM is in save status, How to change from saving to running status?<br>I try to enable VM , but it display Erros: wrong state. <br>I can't solve problem.<div><div></div><div>
<br><br><br><br><div class="gmail_quote">
2011/4/5 Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi there,<br><br>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).<br>
<br>About #2, it may be a monitorization problem. Can you check using virsh or xentop the actual memory consumption?<br><br>Best regards,<br>Carlos.<br><br>[1] <a href="http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle" target="_blank">http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle</a><br>
<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 Major Contributor<br><span style="background-color: rgb(255, 255, 204); color: rgb(34, 34, 34);">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color: rgb(42, 93, 176);" target="_blank">www.<span style="background-color: rgb(255, 255, 204); color: rgb(34, 34, 34);">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color: rgb(42, 93, 176);" target="_blank">cmartin@<span style="background-color: rgb(255, 255, 204); color: rgb(34, 34, 34);">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote"><div><div></div><div>On 17 March 2011 05:01, Khoa Nguyen <span dir="ltr"><<a href="mailto:vankhoa011@gmail.com" target="_blank">vankhoa011@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
I have two question but I can't explain .<br>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??<br>
<br>2. Status's VM is ruunig but MEMORY = 0. <br><br>Anyone know? Please help me.<br><br> <br>oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br>
39 oneadmin ttylinux runn 0 <b> 0K</b> 172.29.70.137 00 00:05:05<br>oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm suspend 39<br>oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br>
39 oneadmin ttylinux save 0 <b> 0K</b> 172.29.70.137 00 00:05:21<br>oneadmin1@oneadmin-desktop:/home/oneadmin$ <b>onevm resume 39<br>Error: Wrong state to perform action</b><br>oneadmin1@oneadmin-desktop:/home/oneadmin$ <b>onevm restart 39<br>
Error: Wrong state to perform action</b><br><br>Thank you for advance.<br clear="all"><br>,-- <br>Nguyễn Vũ Văn Khoa<br>Đại học Khoa Học Tự Nhiên TP HCM<br><br><br>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>Nguyễn Vũ Văn Khoa<br>Đại học Khoa Học Tự Nhiên TP HCM<br><br><br>
</div></div><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>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Nguyễn Vũ Văn Khoa<br>Đại học Khoa Học Tự Nhiên TP HCM<br><br><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nguyễn Vũ Văn Khoa<br>Đại học Khoa Học Tự Nhiên TP HCM<br><br><br>