From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgXWM-0002aN-DV for qemu-devel@nongnu.org; Mon, 18 Jun 2012 04:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgXWK-0005Qr-Fy for qemu-devel@nongnu.org; Mon, 18 Jun 2012 04:41:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgXWK-0005Qg-7d for qemu-devel@nongnu.org; Mon, 18 Jun 2012 04:41:12 -0400 Date: Mon, 18 Jun 2012 09:40:59 +0100 From: "Daniel P. Berrange" Message-ID: <20120618084058.GF28026@redhat.com> References: <20120616120000.GA1566@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120616120000.GA1566@cs.nctu.edu.tw> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] How to management KVM virtual machines via libvirt? Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Cc: libvirt-users@redhat.com, GaoYi , qemu-devel@nongnu.org On Sat, Jun 16, 2012 at 08:00:00PM +0800, =E9=99=B3=E9=9F=8B=E4=BB=BB (We= i-Ren Chen) wrote: > CC'ed to libvirt-users. >=20 > On Sat, Jun 16, 2012 at 07:00:59PM +0800, GaoYi wrote: > > Hi all, > > =C2=A0 > > =C2=A0=C2=A0 I am trying to management the VMs created by KVM command= line. However, I > > found the libvirt cannot connect to the VMs or manage it from virsh. = Can > > anybody provide any help? > > =C2=A0=C2=A0 Best, >=20 > Shouldn't this go to libvirt mailing list? > =20 > http://libvirt.org/contact.html There is a way to tell libvirt to attach to an externally launched KVM process, provided you have configured it with a monitor socket using the UNIX protocol. This is not always entirely successful though, due to the sheer number of different ways QEMU can be launched, which libvirt does not always understand: http://berrange.com/posts/2011/07/13/attaching-libvirt-to-an-externally= -launched-kvm-instance/ In the long run, I'd really recommend just launch the guests via libvirt in the first place Daniel --=20 |: http://berrange.com -o- http://www.flickr.com/photos/dberrange= / :| |: http://libvirt.org -o- http://virt-manager.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vn= c :|