Hi,

I forgot to mention that boot/dhcp doesn't only on trunk ports.

even with:
 ovs-vsctl set port vnet4 vlan_mode=native-untagged
 ovs-vsctl set port vnet5 vlan_mode=native-untagged

VM still can't get any dhcp request on those interfaces.

On 03/09/2022 22:42, Maverick wrote:
Hi,

I have a host running some kvm VMs under qemu/libvirt, and i moved recently from standard linux bridges to openvswitch (setup was done with nmcli), and i noticed that my VMs now can't pxe boot.

If i run a tcpdump on the host ovs brigde interface (br0) i see the dhcp/bootp requests being sent and i see the replies from dhcp server arriving.

If i run a tcpdump on the host but on the vnet interface of the VM i see the dhcp/bootp requests being sent but the replies never arrive.

HOST - OS: Fedora 36 (x86_64)

--------------------------------

nmcli c add type ovs-bridge conn.interface br0 con-name ovs-br0
nmcli c add type ovs-port conn.interface br0 master ovs-br0 con-name ovs-port-br0 nmcli c add type ovs-interface slave-type ovs-port conn.interface br0 master ovs-port-br0 con-name br0 ipv4.method manual ipv4.address 192.168.1.16/24 ipv4.gateway 192.168.1.254 ipv4.dns "192.168.1.254" ipv4.dns-search "home.local"

nmcli c add type ovs-port conn.interface bond0 master ovs-br0 con-name ovs-port-bond0 ovs-port.bond-mode active-backup nmcli c add type ethernet conn.interface eno1 master ovs-port-bond0 con-name eno1 nmcli c add type ethernet conn.interface eno2 master ovs-port-bond0 con-name eno2

nmcli c add type ovs-port conn.interface vlan2 master ovs-br0 ovs-port.tag 2 con-name ovs-port-vlan2 nmcli c add type ovs-interface slave-type ovs-port conn.interface vlan2 master ovs-port-vlan2 con-name vlan2 ipv4.method manual ipv4.address 192.168.2.16/24 nmcli c add type ovs-port conn.interface vlan3 master ovs-br0 ovs-port.tag 3 con-name ovs-port-vlan3 nmcli c add type ovs-interface slave-type ovs-port conn.interface vlan3 master ovs-port-vlan3 con-name vlan3 ipv4.method manual ipv4.address 192.168.3.16/24 nmcli c add type ovs-port conn.interface vlan4 master ovs-br0 ovs-port.tag 4 con-name ovs-port-vlan4 nmcli c add type ovs-interface slave-type ovs-port conn.interface vlan4 master ovs-port-vlan4 con-name vlan4 ipv4.method manual ipv4.address 192.168.4.16/24

----------------------------
ovs-vsctl show
5d07c0d4-e067-4155-beb9-7e4cad501bbe
    Bridge br0
        Port bond0
            Interface eno2
                type: system
            Interface eno1
                type: system
        Port vnet4
            trunks: [2, 3, 4]
            Interface vnet4
        Port vnet8
            Interface vnet8
        Port vlan3
            tag: 3
            Interface vlan3
                type: internal
        Port vnet7
            tag: 3
            Interface vnet7
        Port vlan2
            tag: 2
            Interface vlan2
                type: internal
        Port vnet5
            trunks: [2, 3, 4]
            Interface vnet5
        Port br0
            Interface br0
                type: internal
        Port vnet0
            Interface vnet0
        Port vlan4
            tag: 4
            Interface vlan4
                type: internal
        Port vnet6
            Interface vnet6
    ovs_version: "2.17.0"

----------------

Anyone has any idea what is needed to to make dhcp / pxe boot work?


_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to