Comments (5)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Networking mirrored can't work on WSL2 (#10632), similarity score: 0.77
- config
networkingMode=mirrored
doesn't apply to wsl2 (#11228), similarity score: 0.74 - The podman network DNS doesn't work in WSL2 (#10092), similarity score: 0.72
- Cannot enable Mirrored network on WSL (#11154), similarity score: 0.70
Closed similar issues:
- A WSL2 bug. The DHCP server does not work. (#5205), similarity score: 0.72
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from wsl.
Hi! Same exactly issue found. For more reference what I did:
- Start podman rootful machine on WSL2
- Manually start DHCP proxy in podman's WSL2 distro:
sudo systemctl enable --now netavark-dhcp-proxy
- Create network
podman network create -d macvlan -o parent=eth0 maclan
When attaching container to network the I find same error that @avlec found:
>podman run -d --network maclan nginx
Error: netavark (exit code 1): unable to obtain lease: dhcp proxy error: status: Aborted, message: "Timeout: Timeout", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Wed, 13 Mar 2024 09:18:26 GMT", "content-length": "0"} }
Output of podman inspect <network-id>
:
[
{
"name": "maclan",
"id": "9f809af266ace108115b43cc82a3a3357f17a3006630750b32a3febc826eb842",
"driver": "macvlan",
"network_interface": "eth0",
"created": "2024-03-13T10:18:13.395277805+01:00",
"ipv6_enabled": false,
"internal": false,
"dns_enabled": false,
"ipam_options": {
"driver": "dhcp"
}
}
]
from wsl.
Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues
It should create a folder like [WslNetworkingLogs-date_ver.zip]
from wsl.
Seeing the same issue does anyone have a fix for this?
from wsl.
@mwoodpatrick if you can reserve a fixed range of IP addresses on the LAN you can work around this with a ipvlan network this is the easiest.
e.g., the interface I want to use is eth1 which maps to some windows NIC and I have IP addresses in 192.168.1.64 through 192.168.1.127 I can reserve on the LAN for this podman network.
podman network create --driver ipvlan --opt parent=eth1 --ip-range 192.168.1.64-192.168.1.127
You can also do this by creating an ipvlan without the --ip-range
but you have to change --ipam-driver
in the network create command so it doesn't try to use DHCP (I'm not sure if you should use host-local
or none
for this). This will let you individually assign IP addresses to containers that you must then provide on the podman run
you use to create the container (e.g., podman run --ip 192.168.1.64
).
from wsl.
Related Issues (20)
- WSL2 is slow and makes my computer unresponsive when running a C++ build in Debug mode inside Docker container HOT 10
- Any wsl command is met with access denied after installing ubuntu 24 HOT 7
- Vmmem process suddenly and randomly takes close to 100% of CPU indefinitely HOT 3
- Why is it borderline impossible to downgrade WSL2? HOT 5
- Libvirt stop working after few minutes HOT 8
- Poor performance with WSL2 and Windows 11 HOT 9
- Can't boot Arch. Failed to translate Windows env variables and failed to mount disk partitions HOT 13
- After installing KB5036893, WSL now logs an event regarding "Invalid networking mode 'mirrored' in C:\Users\<username>\.wslconfig" HOT 5
- wsl.exe cpu too high HOT 7
- Error message on `wsl --exec` can be more informative HOT 3
- Cant change iptable HOT 2
- #WslRegisterDistribution failed with error: 0xc03a0014 Error: 0xc03a0014 A virtual disk support provider for the specified file was not found. HOT 1
- Web directory in wsl2 soft connects to win10 web directory, accessible but very laggy response【请求帮助!!!3Q】 HOT 4
- Unspecified error Error code: Wsl/Service/RegisterDistro/E_FAIL HOT 1
- disagree about version of symbol module_layout HOT 2
- WSL doesn't source ~/.bashrc when running wsl --shell-type login xeyes HOT 5
- ALSA error while running pygame from WSL2 - Windows 11 HOT 2
- graphical programs unresponsive after waking from suspend HOT 2
- WSL Service Disables Automatically After Reboot or Logoff HOT 8
- Element not found while performing update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.