Re: [Qemu-devel] How to management KVM virtual machines via libvirt?

2012-06-18 Thread Daniel P. Berrange
On Sat, Jun 16, 2012 at 08:00:00PM +0800, 陳韋任 (Wei-Ren Chen) wrote:
>   CC'ed to libvirt-users.
> 
> On Sat, Jun 16, 2012 at 07:00:59PM +0800, GaoYi wrote:
> > Hi all,
> >  
> >    I am trying to management the VMs created by KVM commandline. However, I
> > found the libvirt cannot connect to the VMs or manage it from virsh. Can
> > anybody provide any help?
> >    Best,
> 
>   Shouldn't this go to libvirt mailing list?
>   
>   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
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|



Re: [Qemu-devel] How to management KVM virtual machines via libvirt?

2012-06-16 Thread Wei-Ren Chen
  CC'ed to libvirt-users.

On Sat, Jun 16, 2012 at 07:00:59PM +0800, GaoYi wrote:
> Hi all,
>  
>    I am trying to management the VMs created by KVM commandline. However, I
> found the libvirt cannot connect to the VMs or manage it from virsh. Can
> anybody provide any help?
>    Best,

  Shouldn't this go to libvirt mailing list?
  
  http://libvirt.org/contact.html

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj



[Qemu-devel] How to management KVM virtual machines via libvirt?

2012-06-16 Thread GaoYi
Hi all,

   I am trying to management the VMs created by KVM commandline. However, I
found the libvirt cannot connect to the VMs or manage it from virsh. Can
anybody provide any help?
   Best,

Yi