Code Monkey home page Code Monkey logo

Comments (5)

github-actions avatar github-actions commented on May 26, 2024

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from wsl.

eiximenis avatar eiximenis commented on May 26, 2024

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.

chanpreetdhanjal avatar chanpreetdhanjal commented on May 26, 2024

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.

mwoodpatrick avatar mwoodpatrick commented on May 26, 2024

Seeing the same issue does anyone have a fix for this?

from wsl.

avlec avatar avlec commented on May 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.