Asadullah Hussain
2014-Mar-04 12:12 UTC
[libvirt-users] Connecting libvirt to manually compiled QEMU
Hello I have manually compiled a customized qemu (1.4.0) which runs fine on its own (create VM etc) but I want to access this qemu through libvirt (virt-manager, virsh etc). But the libvirt driver only looks into "/usr/bin" for qemu binaries, how can I tell libvirt to connect to my qemu which is placed at "/home/user/qemu" directory. -- Asadullah Hussain
Eric Blake
2014-Mar-04 21:09 UTC
Re: [libvirt-users] Connecting libvirt to manually compiled QEMU
On 03/04/2014 05:12 AM, Asadullah Hussain wrote:> Hello I have manually compiled a customized qemu (1.4.0) which runs fine on > its own (create VM etc) but I want to access this qemu through libvirt > (virt-manager, virsh etc). > > But the libvirt driver only looks into "/usr/bin" for qemu binaries, how > can I tell libvirt to connect to my qemu which is placed at > "/home/user/qemu" directory.Libvirt only looks into precompiled locations (default to /usr/bin) if you fail to specify an explicit location; but you can force libvirt to use your version of qemu by specifying the <emulator> element under <devices> in your domain XML. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Daniel P. Berrange
2014-Mar-05 10:51 UTC
Re: [libvirt-users] Connecting libvirt to manually compiled QEMU
On Tue, Mar 04, 2014 at 02:09:19PM -0700, Eric Blake wrote:> On 03/04/2014 05:12 AM, Asadullah Hussain wrote: > > Hello I have manually compiled a customized qemu (1.4.0) which runs fine on > > its own (create VM etc) but I want to access this qemu through libvirt > > (virt-manager, virsh etc). > > > > But the libvirt driver only looks into "/usr/bin" for qemu binaries, how > > can I tell libvirt to connect to my qemu which is placed at > > "/home/user/qemu" directory. > > Libvirt only looks into precompiled locations (default to /usr/bin) if > you fail to specify an explicit location; but you can force libvirt to > use your version of qemu by specifying the <emulator> element under > <devices> in your domain XML.Actually we will search through $PATH for QEMU binaries, so if you install somewhere unusual, just make sure libvirtd sees an updated $PATH env variable including the new location. Regards, 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 :|
Apparently Analagous Threads
- Re: Connecting libvirt to manually compiled QEMU
- Connecting libvirt to manually compiled QEMU
- Passing non-standard Options through Libvirt to QEMU
- Re: Passing non-standard Options through Libvirt to QEMU
- Re: vhost-net requested but could not be initialized