Ask Your Question

How do I enable Multi-Queue virtio in nova.conf?

asked 2014-12-17 16:53:30 -0600

hungvelo gravatar image

I am using OpenStack Icehouse with Open vSwitch and neutron flat network. How do I enable multi-queue virtio-net so that when Nova creates and launches a VM instance, the guest XML configuration file is generated with a number of queues set. For example, to have 8 queues for an instance with 8 vcpus: <interface type="bridge"> <mac address="xx:16:3e:96:67:e2"/> <model type="virtio"/> <driver name="vhost" queues="8"/> <source bridge="xxr007eb1b7-89"/> <target dev="tapxx7eb1b7-89"/> </interface>

Can this be set in nova.conf file? If not, please let me know where to modify in openstack (icehouse) to achieve this. Once a VM instance is up, I just need to enable multiqueue support in the guest by running "ethtool -L eth0 combined 8".

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-22 09:24:28 -0600

bits3rpent gravatar image

OpenStack does not yet support multi queue, but you can modify the instances libvirt.xml file by adding the <driver name="vhost" queues="number_of_queues"/> in the <interface> block and restart the instance.

edit flag offensive delete link more


Yes, I updated /etc/libvirt/qemu/instance-xxx.xml file (using virsh edit). Also, enable VHOST_NET_ENABLED=1 in the host and multiqueue support in the guest OS (ethtool -L eth0 comnbined 8). I could see multiple queues created for rx and tx, but ps aux for kvm does not show queues=N as one of flags.

hungvelo gravatar imagehungvelo ( 2014-12-23 11:47:04 -0600 )edit

Hi Guys, Did you get this working. If I edit the xml with virsh edit, and then restart the VM the changes are lost.

DaveJ gravatar imageDaveJ ( 2015-05-14 08:48:12 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-12-17 16:53:30 -0600

Seen: 3,591 times

Last updated: Dec 17 '14