Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: host.lan没有,并且\\20.20.20.1连接失败 #943

Closed
liuyang77886 opened this issue Dec 3, 2024 · 7 comments
Closed

[Bug]: host.lan没有,并且\\20.20.20.1连接失败 #943

liuyang77886 opened this issue Dec 3, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@liuyang77886
Copy link

Operating system

centos8.5

Description

使用官方镜像en_windows_7_enterprise_with_sp1_x64_dvd_u_677651.iso和cn_windows_7_ultimate_sp1_x64_dvd_677408.iso安装的vin7都没有文件共享

1733194663367

Docker compose

version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
privileged: true
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 28006:8006
- 23389:3389/tcp
- 23389:3389/udp
stop_grace_period: 2m
restart: on-failure
environment:
VERSION: "7e"
MANUAL: "Y"
LANGUAGE: "Chinese"
RAM_SIZE: "16G"
CPU_CORES: "16"
DISK_SIZE: "1024G"
USERNAME: "root"
PASSWORD: "123456"
volumes:
- /data/windata:/storage
- /home/data:/data
- /home/soft/cn_windows_7_ultimate_sp1_x64_dvd_677408.iso:/custom.iso
networks:
winlynet:
ipv4_address: 172.16.111.196
networks:
winlynet:
external: true

Docker log

windows | iptables v1.8.10 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
windows | Perhaps iptables or your kernel needs to be upgraded.
windows | ❯ ERROR: The 'ip_tables' kernel module is not loaded. Try this command: sudo modprobe ip_tables iptable_nat
windows | ❯ Warning: falling back to usermode networking! Performance will be bad and port mapping will not work.

❯ Windows started succesfully, visit http://localhost:8006/ to view the screen...

Screenshots (optional)

No response

@liuyang77886 liuyang77886 added the bug Something isn't working label Dec 3, 2024
@kroese
Copy link
Contributor

kroese commented Dec 3, 2024

ERROR: The 'ip_tables' kernel module is not loaded. Try this command: sudo modprobe ip_tables iptable_nat
Warning: falling back to usermode networking! Performance will be bad and port mapping will not work

@golvellius
Copy link

golvellius commented Dec 3, 2024

Hi ..
I am running the system perfect, but suddenly i have lost host.lan in windows11. When i boot the docker container i have the next error:

ERROR: The 'tun" kernel module is not available. Try this command: 'sudo modprobe tun' or run the container with 'privileged: true' .....

I have done modprobe tun command with no luck. To enablehost.lan inside windows 11, now i have to modify docker-compose and add privileged: true...

Maybe something regarding a pull docker upgrade ( now using Docker v4.05) or a system upgrade ?

Operating System Mint 22 with kernel 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC

@kroese
Copy link
Contributor

kroese commented Dec 3, 2024

@golvellius Did you add

   devices:
      - /dev/net/tun

in your compose file?

@golvellius
Copy link

Hi ..

Working adding /dev/net/tun ...
What i do not understand is that before it was working ... and suddenly stops working ..

Thanks ..

@kroese
Copy link
Contributor

kroese commented Dec 3, 2024

Because there was a breaking change in containerd.io 1.7.24 that is part of Docker.

See #940

@liuyang77886
Copy link
Author

sudo modprobe ip_tables iptable_nat

@DrRek
Copy link

DrRek commented Dec 10, 2024

wold be cool to have a changelog to monitor for these changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants