what i meant as "catch" was just running a "ps -aux" on the host running your vm to see what the command is doing<br><br>the qcow2 driver uses "qemu-img convert" to save the snapshot of your running VM back to the datastore<br>
<br>How are you sharing the datastore? <br><br><br><br><div class="gmail_quote">On Thu, May 17, 2012 at 8:52 PM, Sean Abbott <span dir="ltr"><<a href="mailto:seabbott@akamai.com" target="_blank">seabbott@akamai.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's running on a qcow2 datastore. How might I go about catching the<br>
process?<br>
<div class="im"><br>
On 05/17/2012 03:50 PM, fc lists wrote:<br>
> Hi,<br>
><br>
> What kind of Datastore is the image running from ?<br>
><br>
> depending on the TM driver you could try to "catch" the process on the vmhost<br>
> and see if it is getting stuck somehow or doing something weird, if the oned is<br>
> taking time to timeout you could maybe manage to see what is happenning.<br>
><br>
> -FC<br>
><br>
> On Thu, May 17, 2012 at 8:46 PM, Sean Abbott <<a href="mailto:seabbott@akamai.com">seabbott@akamai.com</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:seabbott@akamai.com">seabbott@akamai.com</a>>> wrote:<br>
><br>
> ACPI: Enabled by default in the KVM driver. I didn't explicitly enable it<br>
> in the template, but it is working because the VM does actually shut down.<br>
><br>
> No errors that I've found anywhere other than the ones in the VM log.<br>
><br>
> I did keep a VNC connection open and everything appeared to shut off<br>
> cleanly. I also identified the machine doman in virsh and ran manual "virsh<br>
> --connect qemu:///system --readonly dominfo 4" commands to watch it come<br>
> down, and nearly instantly the command (which is what is used by the<br>
> shutdown while loop) comes back with an exit code of 1 and a 'failed to get<br>
> domain" because the domain doesn't exist any more.<br>
><br>
> No, I restart the VM several times and each time it boots from the hard<br>
> disk. Plus, I have been monitoring the VNC and it doesn't give me the<br>
> "please remove the disc" like it does after the first reboot.<br>
><br>
> Now, I also installed some xubuntu clients, because there are possibly some<br>
> issues with ubuntu itself powering off versus halting. What was weird was<br>
> that when I issued a shutdown WITHOUT the saveas, it worked fine (VM exited,<br>
> disappeared from the VM list) However, when the saveas was involved, I had<br>
> the same error.<br>
><br>
> On 05/17/2012 02:44 PM, fc lists wrote:<br>
> > Hi I was going to suggest to double check that ACPID is running in the VM<br>
> > , but then reading again i see it propted you with a popup so it should be<br>
> > running. Did you enabled ACPI in your VM TEMPLATE? Other then that, it<br>
> > seems to me that the issue is on the VM because any other problem related<br>
> > to your ONE master server would show up in the log ... as permission<br>
> > denied or whatever. Did you try to keep a VNC connection to the VM from<br>
> > outside OPENNEBULA when you shutdown to see what happens? It really does<br>
> > seem that the VM shutdown is not completing properly .. and from what you<br>
> > write """ I created a template that used a raw hard disk and an ubuntu<br>
> > boot cd to create a working ubuntu 12.04 VM. Done, worked. I used onevm<br>
> > saveas <vm-name> <disk-id> "ubuntu-base-image" to set up a save. I used<br>
> > onevm shutdown <vm-id> to shut it down. """ IT seems to me that you are<br>
> > just booting the UBUNTU live cd, perform the installation and the issue a<br>
> > saveas without restarting your VM first ... If that is the case then<br>
> > UBUNTU might simply be waiting for you to remove the CD from the drive ...<br>
> > until onenebula timeout and your VM fails. Opening a VNC >From outside<br>
> > opennebyla will probably give you the answer you are looking for -FC On<br>
> > Thu, May 17, 2012 at 5:43 PM, Sean Abbott <<a href="mailto:seabbott@akamai.com">seabbott@akamai.com</a><br>
> > <mailto:<a href="mailto:seabbott@akamai.com">seabbott@akamai.com</a>><br>
> > <mailto:<a href="mailto:seabbott@akamai.com">seabbott@akamai.com</a>>> wrote: So, I'm attempting to create a master<br>
> > linux client image from which I can deploy new clients easily. I know that<br>
> > I'll eventually need to get master contextualization. However, before I<br>
> > get there, I'm having problems. I created a template that used a raw hard<br>
> > disk and an ubuntu boot cd to create a working ubuntu 12.04 VM. Done,<br>
> > worked. I used onevm saveas <vm-name> <disk-id> "ubuntu-base-image" to set<br>
> > up a save. I used onevm shutdown <vm-id> to shut it down. At first, it<br>
> > appeared to work. I was watching the vm from VNC and it popped up a window<br>
> > asking if I wanted to shut it down (I need to research how to make that<br>
> > window not happen in ubuntu). However. The VM transitioned to "unknown"<br>
> > state about 5 minutes later (initially it was "shutdown"), and the log<br>
> > says that it didn't properly finish shutdown: Thu May 17 16:19:33 2012<br>
> > [LCM][I]: New VM state is SHUTDOWN Thu May 17 16:24:38 2012 [VMM][I]:<br>
> > Command execution fail: /var/tmp/one/vmm/kvm/shutdown one-7 172.26.210.149<br>
> > 7 172.26.210.149 Thu May 17 16:24:38 2012 [VMM][E]: Timeout reached and VM<br>
> > one-7 is still alive Thu May 17 16:24:38 2012 [VMM][I]: Timeout reached<br>
> > Thu May 17 16:24:38 2012 [VMM][I]: ExitCode: 1 Thu May 17 16:24:38 2012<br>
> > [VMM][I]: Failed to execute virtualization driver operation: shutdown. Thu<br>
> > May 17 16:24:38 2012 [VMM][E]: Error shuting down VM: Timeout reached and<br>
> > VM one-7 is still alive Thu May 17 16:24:38 2012 [LCM][I]: Fail to<br>
> > shutdown VM. Assuming that the VM is still RUNNING (will poll VM). Thu May<br>
> > 17 16:24:38 2012 [VMM][I]: ExitCode: 0 Thu May 17 16:24:38 2012 [VMM][I]:<br>
> > VM not found, setting to UNKNOWN And, presumably because of this, my image<br>
> > status "locked" and there is no data that has made it into the image. Is<br>
> > the answer that I need to figure out how to make ubuntu do a clean/fast<br>
> > ACPI shutdown before I can make this work, or is something else afoot.<br>
> > Corollary question: has anyone managed to make ubuntu do a clean ACPI<br>
> > shutdown with no intervention? Thanks! sean ______________________________<br>
> > _________________<br>
> > Users mailing list<br>
</div></div>> > <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a> <mailto:<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>> <mailto:<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>
> ><br>
><br>
</blockquote></div><br>