windows icon indicating copy to clipboard operation
windows copied to clipboard

Trying to give windows it's own IP

Open StudioNirin opened this issue 1 year ago • 4 comments

Operating system

Unraid 6.12.8

Description

Does anyone know how to set up an actual IP for the windows container?

I have turned on the DHCP (Y) and set a custom network (both "custom br0" and a new custom, I tried both ways), but the custom br0 doesn't boot at all, and using my own custom network does boot into windows but there's no internet connection.

Unless this just doesn't work with it's own IP?

br0 network throws this error = "RTNETLINK answers: Invalid argument ❯ ERROR: Cannot create macvtap interface. Please make sure that the network type is 'macvlan' and not 'ipvlan', ❯ ERROR: that your kernel is recent (>4) and supports it, and that the container has the NET_ADMIN capability set."

Edited 10 hours ago by Nirin

Docker compose

The default docker file for the unraid CA version. I don't know how the compose is set up for it, but I believe it was made by yourself so hopefully you do! All I changed was DHCP to "Y" and selecting different network types. Other than that I only set the correct username and password.

Docker log

root@Hex:~# docker logs WindowsinDocker ❯ Starting Windows for Docker v3.12... ❯ For support visit https://github.com/dockur/windows ❯ CPU: 13th Gen Intel Core TM i5 13600K | RAM: 20/32 GB | DISK: 1747 GB (fuseblk) | HOST: 6.1.74-Unraid...

❯ Warning: the filesystem of /storage is FUSE, this extra layer will negatively affect performance! RTNETLINK answers: Invalid argument ❯ ERROR: Cannot create macvtap interface. Please make sure that the network type is 'macvlan' and not 'ipvlan', ❯ ERROR: that your kernel is recent (>4) and supports it, and that the container has the NET_ADMIN capability set.

Screenshots (optional)

No response

StudioNirin avatar Jul 06 '24 16:07 StudioNirin

Hmm not sure if this fell through the cracks, or if it's just that nobody knows how to fix it lol.

StudioNirin avatar Jul 20 '24 17:07 StudioNirin

Würde mich auch interessieren. :) I would also be interested. :)

DasAoD avatar Jul 27 '24 17:07 DasAoD

Hmm adding another comment here @kroese as I'm not sure anyone has seen this...

StudioNirin avatar Aug 13 '24 22:08 StudioNirin

may be help I had the same problem under Unraid. Solution: Look under Docker Settings, Enable Advance View. Under “Docker custom network type:” set to macvlan (instead of ipvlan)

kracer86 avatar Aug 14 '24 17:08 kracer86

Yeah, i'm not too keen on changing my whole unraid docker networking layer from IPVLAN to MACVLAN to support a single container. Anyone using a nicer workaround?

thestraycat avatar Aug 11 '25 15:08 thestraycat