how does nova decide the VM nic type?

asked 2016-03-03 09:29:52 -0600

yby-developer gravatar image

I have a running compute with ovs-dpdk. There is no ovs neutron agent, and the ovs is managed by odl on a controller node. The bridges ar br-int and br-ex, datapath type is netdev.

My question is, how does nova decide on nic type (i.e. virtio or vhostuser) when a VM is created (the call to qemu-system-x86_64)?

Specifically, can I instruct nova to choose vhostuser, or is it done automatically when the ovs bridge datapath type is netdev?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-19 06:42:17 -0600

vikrant gravatar image

Please check the ports under br-int bridge using the command "ovs-vsctl show". It should be vhostuser ports, you can check the type it should be "vhuXXXXX".

For ovs-dpdk plugin the ports are of type vhostuser on the host. Inside the VM they appear as virtio-net ports. vhostuser driver is not a self-contained virtio device implementation. It uses virtio driver to communicate with guest.

edit flag offensive delete link more


Thanks, this makes sense.

yby-developer gravatar imageyby-developer ( 2016-05-09 22:07:55 -0600 )edit

Hi, did you try launching instance using ovs-dpdk? My instances are not getting ip and neutron=dhcp service is failing.

prateeka gravatar imageprateeka ( 2016-09-20 04:57:59 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-03-03 09:29:52 -0600

Seen: 526 times

Last updated: Apr 19 '16