You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when starting a container on a macvlan network with the dhcp ipam driver: netavark: unable to obtain lease: dhcp proxy error: status: Aborted, message: "Timeout: Timeout"
The server is running on the host and is reachable from a container using a macvlan network with the host-local driver.
Steps to reproduce
$ ip a
...
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:0e:2e:2c:c6:77 brd ff:ff:ff:ff:ff:ff
...
7: mvlan@enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 56:a1:e4:16:c2:b9 brd ff:ff:ff:ff:ff:ff
inet 192.168.4.1/24 brd 192.168.4.255 scope global mvlan
valid_lft forever preferred_lft forever
$ podman network create dhcp -d macvlan -o parent=enp4s0 --ipam-driver=dhcp
dhcp
$ podman network create host-local -d macvlan -o parent=enp4s0 --ipam-driver=host-local --ip-range 192.168.4.10-192.168.4.20 --subnet 192.168.4.0/24
host-local
$ podman run --network dhcp --privileged alpine:latest udhcpc
Error: netavark: unable to obtain lease: dhcp proxy error: status: Aborted, message: "Timeout: Timeout", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Tue, 18 Jun 2024 11:43:09 GMT", "content-length": "0"} }
$ podman run --network host-local --privileged alpine:latest udhcpc
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.4.109, server 192.168.4.1
udhcpc: lease of 192.168.4.109 obtained from 192.168.4.1, lease time 3600
Here are package dumps of the above run for both the macvlan and the underlying device.
The request of the dhcp proxy only shows up on the underlying device.
Ok I think I understand setup now. I am not sure if this can work correctly though, I guess in such case we want the enp4s0 as parent device for macvlan the the dhcp proxy should use the mvlan device on the host.
But I have no time to test if this would work like that.
I get the following error when starting a container on a macvlan network with the dhcp ipam driver:
netavark: unable to obtain lease: dhcp proxy error: status: Aborted, message: "Timeout: Timeout"
The server is running on the host and is reachable from a container using a macvlan network with the host-local driver.
Steps to reproduce
Here are package dumps of the above run for both the macvlan and the underlying device.
The request of the dhcp proxy only shows up on the underlying device.
enp4s0.pcap
mvlan.pcap
Configuration
systemd-networkd configuration:
mvlan.netdev
mvlan.network
enp4s0.network
The text was updated successfully, but these errors were encountered: