cancel
Showing results for 
Search instead for 
Did you mean: 
sai19
Mission Specialist
Mission Specialist
  • 420 Views

VM lost network connectivity using in rhel9.2 using openVswitch with DPDK

Hi, I am trying to setup openVswitch with DPDK - VM was working fine with bridges, but when I edited the xml config for VM to use Vhost ports - it is not reachable, it lost network connectivity

My xml config is as below,

 xml_config.PNG

Interfaces are as below,

[root@localhost ~]# ovs-vsctl show
71e0e8b6-870e-41ae-a574-4ceede04e380
Bridge ovs-br3
datapath_type: netdev
Port dpdk-p3
Interface dpdk-p3
type: dpdk
options: {dpdk-devargs="0000:02:05.0", n_rxq="3", n_rxq_desc="2048", n_txq_desc="2048"}
Port ovs-br3
Interface ovs-br3
type: internal
Port vhost-user3
Interface vhost-user3
type: dpdkvhostuser
options: {n_rxq_desc="2048", n_txq_desc="2048"}
Bridge ovs-br2
datapath_type: netdev
Port vhost-user2
Interface vhost-user2
type: dpdkvhostuser
options: {n_rxq_desc="2048", n_txq_desc="2048"}
Port ovs-br2
Interface ovs-br2
type: internal
Port dpdk-p2
Interface dpdk-p2
type: dpdk
options: {dpdk-devargs="0000:02:04.0", n_rxq="3", n_rxq_desc="2048", n_txq_desc="2048"}
Bridge ovs-br1
datapath_type: netdev
Port dpdk-p1
Interface dpdk-p1
type: dpdk
options: {dpdk-devargs="0000:02:03.0", n_rxq="3", n_rxq_desc="2048", n_txq_desc="2048"}
Port ovs-br1
Interface ovs-br1
type: internal
Port vhost-user1
Interface vhost-user1
type: dpdkvhostuser
options: {n_rxq_desc="2048", n_txq_desc="2048"}
ovs_version: "3.1.2"

The only errors that I can see in log is as below - but I am not sure if this is causing it to lose network connectivity. Note: With KVM bridges, VM was working fine

-03-16T16:34:42.701057Z qemu-kvm: unable to start vhost net: 22: falling back on userspace virtio
2024-03-16T16:34:42.703469Z qemu-kvm: Failed initializing vhost-user memory map, consider using -object memory-backend-file share=on
2024-03-16T16:34:42.703486Z qemu-kvm: vhost_set_mem_table failed: Invalid argument (22)
2024-03-16T16:34:42.704653Z qemu-kvm: unable to start vhost net: 22: falling back on userspace virtio
2024-03-16T16:34:42.707026Z qemu-kvm: Failed initializing vhost-user memory map, consider using -object memory-backend-file share=on
2024-03-16T16:34:42.707042Z qemu-kvm: vhost_set_mem_table failed: Invalid argument (22)
2024-03-16T16:34:42.708129Z qemu-kvm: unable to start vhost net: 22: falling back on userspace virtio
2024-03-16T16:34:42.710459Z qemu-kvm: Failed initializing vhost-user memory map, consider using -object memory-backend-file share=on
2024-03-16T16:34:42.710475Z qemu-kvm: vhost_set_mem_table failed: Invalid argument (22)
2024-03-16T16:34:42.711596Z qemu-kvm: unable to start vhost net: 22: falling back on userspace virtio

Labels (2)
0 Replies
Join the discussion
You must log in to join this conversation.