Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change default emulator for qemu-kvm hypervisor

Hello,

I downloaded the new version of qemu-kvm and I made some changes in the code. I compiled the new version and installed it. The path to the emulators are under /usr/local/bin.

With libvirt, nova uses the path /usr/libexec to find the emulators to be used. I want that nova uses the emulators under /usr/local/bin/

I am trying three different things without any success:

  • Changing the default emulator path in the libvirt

I actually don't find where I can change the default path. My $PATH has /usr/local/bin as first entry but it seems that libvirt doesn't look at the ENV variable $PATH.

  • Addind a 'emulator' parameter in the XML config file that will be use to spawn the new instance.

I have found that someone already did a small patch but not too much explanation are given. I don't understand where in 'config.py' I can add this option http://lists.openstack.org/pipermail/openstack/2014-August/008653.html I am still looking at the code under nova/virt/libvirt

  • Adding the option emulator=/usr/local/bin under [libvirt] in nova.conf

But this change seems not to be taken into account

Can someone gives me some hints? Thanks a lot :)

Change default emulator for qemu-kvm hypervisor

Hello,

I downloaded the new version of qemu-kvm and I made some changes in the code. I compiled the new version and installed it. The path to the emulators are under /usr/local/bin.

With libvirt, nova uses the path /usr/libexec to find the emulators to be used. I want that nova uses the emulators under /usr/local/bin/

I am trying three different things without any success:

  • Changing the default emulator path in the libvirt

I actually don't find where I can change the default path. My $PATH has /usr/local/bin as first entry but it seems that libvirt doesn't look at the ENV variable $PATH.

  • Addind a 'emulator' parameter in the XML config file that will be use to spawn the new instance.

I have found that someone already did a small patch but not too much explanation are given. I don't understand where in 'config.py' I can add this option http://lists.openstack.org/pipermail/openstack/2014-August/008653.html I am still looking at the code under nova/virt/libvirtnova/virt/libvirt. Also it seems that is no emulator is specified in the XML, the default path will be /usr/libexec/qemu-kvm http://www.redhat.com/archives/libvir-list/2011-December/msg01100.html

  • Adding the option emulator=/usr/local/bin under [libvirt] in nova.conf

But this change seems not to be taken into account

Can someone gives me some hints? Thanks a lot :)

Change default (path) emulator for qemu-kvm hypervisorlibvirt

Hello,

I downloaded the new version of qemu-kvm and I made some changes in the code. I compiled the new version and installed it. The path to the emulators are under /usr/local/bin.

With libvirt, nova uses the path /usr/libexec to find the emulators to be used. I want that nova uses the emulators under /usr/local/bin/

I am trying three different things without any success:

  • Changing the default emulator path in the libvirt

I actually don't find where I can change the default path. My $PATH has /usr/local/bin as first entry but it seems that libvirt doesn't look at the ENV variable $PATH.

  • Addind a 'emulator' parameter in the XML config file that will be use to spawn the new instance.

I have found that someone already did a small patch but not too much explanation are given. I don't understand where in 'config.py' I can add this option http://lists.openstack.org/pipermail/openstack/2014-August/008653.html I am still looking at the code under nova/virt/libvirt. Also it seems that is no emulator is specified in the XML, the default path will be /usr/libexec/qemu-kvm http://www.redhat.com/archives/libvir-list/2011-December/msg01100.html

  • Adding the option emulator=/usr/local/bin under [libvirt] in nova.conf

But this change seems not to be taken into account

Can someone gives me some hints? Thanks a lot :)

Change default (path) emulator for libvirt

Hello,

I downloaded the new version of qemu-kvm and I made some changes in the code. I compiled the new version and installed it. The path to the emulators are under /usr/local/bin.

With libvirt, nova uses the path /usr/libexec to find the emulators to be used. I want that nova uses the emulators under /usr/local/bin/

I am trying three different things without any success:

  • Changing the default emulator path in the libvirt

I actually don't find where I can change the default path. My $PATH has /usr/local/bin as first entry but it seems that libvirt doesn't look at the ENV variable $PATH.

  • Addind a 'emulator' parameter in the XML config file that will be use to spawn the new instance.

I have found that someone already did a small patch but not too much explanation are given. I don't understand where in 'config.py' I can add this option http://lists.openstack.org/pipermail/openstack/2014-August/008653.html I am still looking at the code under nova/virt/libvirt. Also it seems that is no emulator is specified in the XML, the default path will be /usr/libexec/qemu-kvm http://www.redhat.com/archives/libvir-list/2011-December/msg01100.html

  • Adding the option emulator=/usr/local/bin under [libvirt] in nova.conf

But this change seems not to be taken into account


EDIT 1 From those 3 directions, I think trying to add the <emulator> parameter in the XML file seems to be the more reasonable but I have some dfficulties to find where to add that in the code under nova/virt/libvirt.

Can someone gives me some hints? Thanks a lot :)