<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20131112173138689351 {
COLOR: #000000
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.7600.16385"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Thanks for your help.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; 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-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:sharuzzaman@gmail.com">Sharuzzaman Ahmat
Raslan</A></DIV>
<DIV><B>Date:</B> 2013-11-12 14:48</DIV>
<DIV><B>To:</B> <A href="mailto:caohf@wedogame.com">caohf</A></DIV>
<DIV><B>CC:</B> <A
href="mailto:Users@lists.opennebula.org">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=FoxDiv20131112173138689351>
<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
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> </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="MIN-HEIGHT: 1px; WIDTH: 210px" 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-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: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></DIV></DIV></BODY></HTML>