samdbmg / dhcp-netboot.xyz

Docker container that acts as a ProxyDHCP server for netbooting
GNU General Public License v3.0
69 stars 18 forks source link

failed to create the ipvlan port: device or resource busy #9

Open darkdidi opened 2 years ago

darkdidi commented 2 years ago

Hello, when i try to compose the docker i got this message failed to create the ipvlan port: device or resource busy

I am using Unraid latest I have edited the 'docker-compose.yml' and the 'Dockerfile' to match my network, no changes

'root@Unraid:/mnt/user0/appdata/dhcp-netboot.xyz# docker build .
Sending build context to Docker daemon  51.18MB
Step 1/4 : FROM linuxserver/netbootxyz:latest
 ---> 21c00b1cd4fe
Step 2/4 : RUN apk add --update dnsmasq
 ---> Using cache
 ---> 323b34b10990
Step 3/4 : COPY etc /etc/
 ---> 9bfbf4689db4
Step 4/4 : ENV DHCP_RANGE_START=192.168.1.1
 ---> Running in b2e8d4724c25
Removing intermediate container b2e8d4724c25
 ---> 6e68e4905ce2
Successfully built 6e68e4905ce2
root@Unraid:/mnt/user0/appdata/dhcp-netboot.xyz# docker-compose up
Attaching to netbootxyz
Error response from daemon: failed to create the ipvlan port: device or resource busy'

I was wondering if there is no problem with PUID or PGID (not declared)

Thanks in advance

samdbmg commented 2 years ago

I think that particular error means the network interface specified at https://github.com/samdbmg/dhcp-netboot.xyz/blob/main/docker-compose.yml#L21 doesn't exist - is it definitely the right one? The README documents a way to get that using ip route | awk '/default/ { print $5 }' but it might be worth trying that and seeing if it does what you expect: I don't have anything running Unraid to test with and that command might fail for more complex networking setups. You could try just setting export INTERFACE="whatever-your-interface-is-called" instead?

Roalkege commented 10 months ago

Hey, did you get it to work? Maybe with this docker-compose? https://github.com/samdbmg/dhcp-netboot.xyz/issues/13#issuecomment-1803245545