[libvirt-users] How much ways can libvirt connect to a qemu instance?

Eric Blake eblake at redhat.com
Mon Aug 13 15:57:25 UTC 2012


[can you please convince your mail client to wrap long lines?]

On 08/13/2012 02:40 AM, 何鑫 wrote:
> Hi,    Could you give me some other advices about how to connect libvirt to a qemu instance?    I know three ways as below:    1. Using virt-install to create a qemu

virt-install uses libvirt API under the hood - fix one place, you fix
them all.

>    2. Using libvirt API converting Domain xml to qemu

Yes, this is correct.  What exactly are you trying, and what is the
exact error message you are getting?

>    3. Using "virsh domxml-to-native" to convert qemu args to libvirt Domain XML  

domxml-to-native is more of an upgrade help, and rather poorly
maintained.  It is there to help conversion of people starting qemu
command lines by hand into a rough draft of what it would take to get
libvirt to start a domain with the same features.

>     Actually I want to connect libvirt to an Android Emulator based qemu, but I can't register qemu to libvirt for managing it. Because emulator's args are different from original qemu args in some points. Could you give me some ideas?

What version of qemu are you targetting?  Is it really a different fork
from upstream qemu, with different command line parameters?  If so, then
patches to src/qemu/qemu_command.c to issue the appropriate command line
when talking to the alternate qemu binary would be in order.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120813/da8d8dea/attachment.sig>


More information about the libvirt-users mailing list