<div dir="ltr"><div><div><div><div><div>Hi Dennis,<br><br></div>When Opennebula shutdown a VM, it will destroy the XML file on the host, and unregister the VM from KVM.<br><br></div>If you just want it to stop, so that you can do something to the image, eg. making a backup, you can use the command<br>
<br></div>onevm suspend <vmid><br><br></div>then the VM will still be available in the host, and can be queried by virsh list command.<br><br></div>Read more at:<br><br><a href="http://opennebula.org/documentation:rel4.2:vm_guide_2">http://opennebula.org/documentation:rel4.2:vm_guide_2</a><br>
<a href="http://opennebula.org/doc/4.2/cli/onevm.1.html">http://opennebula.org/doc/4.2/cli/onevm.1.html</a><br><div><div><div><br><br><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Nov 12, 2013 at 12:33 PM, caohf <span dir="ltr"><<a href="mailto:caohf@wedogame.com" target="_blank">caohf@wedogame.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div style="MARGIN:10px">
<div> </div>
<div>Thanks </div>
<div> </div>
<div>But when i use virsh list --all command</div>
<div> </div>
<div> </div>
<div>-----------------------------------------------------------------</div>
<div>
<div>[root@opennebula-node1 ~]# virsh list --all</div>
<div> Id Name State</div>
<div>----------------------------------------------------</div>
<div> 43 one-111 running</div>
<div> 44 one-104 running</div>
<div> 48 one-123 running</div>
<div> - centos5.6.kvm shut off</div></div>
<div>----------------------------------------------------------------</div>
<div> </div>
<div> </div>
<div>if the vm managed by one is runnning ,it can be list by virsh
list --all command</div>
<div> </div>
<div>when I destory a vm.</div>
<div> </div>
<div> </div>
<div>-------------------------------------------------------------------------
<div>[root@opennebula-node1 ~]# virsh destroy 44</div>
<div>Domain 44 destroyed</div>
<div>------------------------------------------------------------------------</div>
<div> </div>
<div> </div>
<div>It can't be display by virsh command</div>
<div> </div>
<div> </div>
<div>--------------------------------------------------------</div>
<div>[root@opennebula-node1 ~]# virsh list --all</div>
<div> Id Name State</div>
<div>----------------------------------------------------</div>
<div> 43 one-111 running</div>
<div> 48 one-123 running</div>
<div> - centos5.6.kvm shut off</div></div>
<div>-----------------------------------------------------------</div>
<div> </div>
<div>How to fix this </div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1">
<div><span>Best Wishes!</span></div>
<div><span>Dennis</span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="padding-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
<div><b>From:</b> <a href="mailto:sharuzzaman@gmail.com" target="_blank">Sharuzzaman Ahmat
Raslan</a></div>
<div><b>Date:</b> 2013-11-12 11:48</div>
<div><b>To:</b> <a href="mailto:caohf@wedogame.com" target="_blank">caohf</a></div>
<div><b>CC:</b> <a href="mailto:Users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a></div>
<div><b>Subject:</b> Re: Re: [one-users] How to manage vm created by
opennebula by virsh tools?</div></div></div><div><div class="h5">
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Dennis,<br><br></div>Opennebula is still using libvirt for KVM-based
nodes.<br><br></div>You can still stop/start the VM using normal virsh command,
such as virsh stop, virsh start, virsh attach-device etc.<br><br></div>But doing
so directly to the VM, will cause your VM to not shutting down properly if you
onevm shutdown from Opennebula later. That's what I have experience
before.<br><br></div>Thanks.<br>
<div>
<div>
<div><br><br></div></div></div></div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Nov 12, 2013 at 11:34 AM, caohf <span dir="ltr"><<a href="mailto:caohf@wedogame.com" target="_blank">caohf@wedogame.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
<div style="MARGIN:10px">
<div>Hi :</div>
<div style="TEXT-INDENT:2em"> I have another system use
virsh(libvirt) manage the kvm vms,when i use opennebula ,I also want to use my
old system.</div>
<div style="TEXT-INDENT:2em"> Opennebula provide the libvirt drivers in
the old version.</div>
<hr style="MIN-HEIGHT:1px;WIDTH:210px" align="left" color="#b5c4df" size="1">
<div><span><span>
<div><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">Best
Wishes!</span></div>
<div><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">Dennis</span></div></span></span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="PADDING-BOTTOM:8px;PADDING-LEFT:8px;PADDING-RIGHT:8px;BACKGROUND:#efefef;FONT-SIZE:12px;PADDING-TOP:8px">
<div><b>From:</b> <a href="mailto:sharuzzaman@gmail.com" target="_blank">Sharuzzaman Ahmat Raslan</a></div>
<div><b>Date:</b> 2013-11-12 11:13</div>
<div><b>To:</b> <a href="mailto:caohf@wedogame.com" target="_blank">caohf</a></div>
<div><b>CC:</b> <a href="mailto:Users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a></div>
<div><b>Subject:</b> Re: [one-users] How to manage vm created by
opennebula by virsh tools?</div></div></div>
<div>
<div>
<div>
<div>
<div dir="ltr">
<div>
<div>Hi Dennis,<br><br></div>What actually that you want to
achieve?<br><br></div>Thanks.<br><br><br></div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Nov 12, 2013 at 9:58 AM, caohf <span dir="ltr"><<a href="mailto:caohf@wedogame.com" target="_blank">caohf@wedogame.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
<div style="MARGIN:10px">
<div>Dear All:</div>
<div style="TEXT-INDENT:2em">How to manage vm created by opennebula by virsh tool?
</div>
<div> </div>
<hr style="MIN-HEIGHT:1px;WIDTH:210px" align="left" color="#b5c4df" size="1">
<div><span>
<div><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">Best
Wishes!</span></div>
<div><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">Dennis</span></div>
<div> </div></span></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><br clear="all"><br>-- <br>Sharuzzaman Ahmat Raslan
</div></div></div></div></div></div></blockquote></div><br><br clear="all"><br>--
<br>Sharuzzaman Ahmat Raslan </div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Sharuzzaman Ahmat Raslan
</div>