The recommended way to get to a KVM guest is using vhost_user_client. This will cause OVS-DPDK to
create connect to a socket that qemu created. That way old issues like guest failures on OVS restart are
avoided. Here an example how to add such a port to the bridge you created above.
ovs−v s c t l add−p o r t ovsdpdkbr0 vhost−u s e r −1 −− s e t I n t e r f a c e vhost−u s e r −1 type=
d p d k v h o s t u s e r c l i e n t ” o p t i o n s : vhost−s e r v e r −path=/var / run / v h o s t u s e r c l i e n t /
vhost−u s e r −c l i e n t −1”
This will connect to the specified path that has to be created by a guest listening on it.
To let libvirt/kvm consume this socket and create a guest virtio network device for it add a snippet like this
to your guest definition as the network definition.
< i n t e r f a c e type =’ v h o s t u s e r ’>
path =’/ var / run / o p e n v s w i t c h / vhost−u s e r −c l i e n t −1’
mode=’ s e r v e r ’/>
i n t e r f a c e >
Do'stlaringiz bilan baham: