Comments (10)
I see this problem too, but I suggest you give a better title and format your content.
from podman.
I am not able to reproduce locally. Can you run the following:
wsl -d podman-machine-default -u root
ss -tln
systemctl --failed
As well as (on powershell prompt)
Get-Content $HOME/.wslconfig
and also
podman machine inspect
from podman.
I see this problem too
Do you use VPN? Have you changed WSL subnets?
I think it should not be connected, because it happens even when my VPN is disconnected, however who knows :/
from podman.
PS C:\> wsl -d podman-machine-default -u root
You will be automatically entered into a nested process namespace where
systemd is running. If you need to access the parent namespace, hit ctrl-d
or type exit. This also means to log out you need to exit twice.
[root@D7C8HW3 c]# ss -tln
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:50625 0.0.0.0:*
LISTEN 0 128 [::]:50625 [::]:*
[root@D7C8HW3 c]# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-binfmt.service loaded failed failed Set Up Additional Binary Formats
Legend: LOAD → Reflects whether the unit definition was properly loaded.
ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
SUB → The low-level unit activation state, values depend on unit type.
wslconfig
PS C:\> Get-Content $HOME/.wslconfig
[wsl2]
networkingMode=mirrored
#dnsTunneling=true
#autoProxy=true
#firewall=true
inspect
[
{
"ConfigDir": {
"Path": "C:\\Users\\redacted\\.config\\containers\\podman\\machine\\wsl"
},
"ConnectionInfo": {
"PodmanSocket": null,
"PodmanPipe": {
"Path": "\\\\.\\pipe\\podman-machine-default"
}
},
"Created": "2024-06-15T00:08:30.4454759+02:00",
"LastUp": "0001-01-01T00:00:00Z",
"Name": "podman-machine-default",
"Resources": {
"CPUs": 10,
"DiskSize": 100,
"Memory": 2048,
"USBs": []
},
"SSHConfig": {
"IdentityPath": "C:\\Users\\redacted\\.local\\share\\containers\\podman\\machine\\machine",
"Port": 50625,
"RemoteUsername": "user"
},
"State": "running",
"UserModeNetworking": false,
"Rootful": true,
"Rosetta": false
}
]
systemctl status systemd-binfmt.service
× systemd-binfmt.service - Set Up Additional Binary Formats
Loaded: loaded (/usr/lib/systemd/system/systemd-binfmt.service; static)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Sat 2024-06-15 00:20:02 CEST; 1min 6s ago
Docs: man:systemd-binfmt.service(8)
man:binfmt.d(5)
https://docs.kernel.org/admin-guide/binfmt-misc.html
https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Process: 77 ExecStart=/usr/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
Main PID: 77 (code=exited, status=1/FAILURE)
Jun 15 00:20:02 D7C8HW3 systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
Jun 15 00:20:02 D7C8HW3 systemd-binfmt[77]: Failed to check if /proc/sys/fs/binfmt_misc is mounted: Too many levels of symbolic links
Jun 15 00:20:02 D7C8HW3 systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
Jun 15 00:20:02 D7C8HW3 systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
Jun 15 00:20:02 D7C8HW3 systemd[1]: Failed to start systemd-binfmt.service - Set Up Additional Binary Formats.
When I run image which does not malfunction, it does not have this failed service.
from podman.
Mine:
PS C:\Users\zhaoq> podman machine start
Starting machine "podman-machine-default"
This machine is currently configured in rootless mode. If your containers
require root permissions (e.g. ports < 1024), or if you run into compatibility
issues with non-podman clients, you can switch using the following command:
podman machine set --rootful
API forwarding for Docker API clients is not available due to the following startup failures.
could not start api proxy since expected pipe is not available: podman-machine-default
Podman clients are still able to connect.
Error: machine did not transition into running state: ssh error: machine is not listening on ssh port
ss -tln:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 1000 10.255.255.254:53 0.0.0.0:*
systemctl --failed:
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-binfmt.service loaded failed failed Set Up Additional Binary Formats
Legend: LOAD → Reflects whether the unit definition was properly loaded.
ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
SUB → The low-level unit activation state, values depend on unit type.
1 loaded units listed.
Get-Content $HOME/.wslconfig
[wsl2]
networkingMode=mirrored
podman machine inspect
[
{
"ConfigDir": {
"Path": "C:\\Users\\zhaoq\\.config\\containers\\podman\\machine\\wsl"
},
"ConnectionInfo": {
"PodmanSocket": null,
"PodmanPipe": {
"Path": "\\\\.\\pipe\\podman-machine-default"
}
},
"Created": "2024-06-14T19:58:15.5640189+08:00",
"LastUp": "2024-06-14T20:16:21.5814581+08:00",
"Name": "podman-machine-default",
"Resources": {
"CPUs": 8,
"DiskSize": 100,
"Memory": 2048,
"USBs": []
},
"SSHConfig": {
"IdentityPath": "C:\\Users\\zhaoq\\.local\\share\\containers\\podman\\machine\\machine",
"Port": 53143,
"RemoteUsername": "user"
},
"State": "running",
"UserModeNetworking": false,
"Rootful": false,
"Rosetta": false
}
]
from podman.
networkingMode=mirrored
may be the common factor?
from podman.
I tried. With networkingMode=mirrored it doesn't work. Without that config, it works.
from podman.
per #22975 mirroed is not supported although you say it used to work with an older image so I am bit confused, @n1hility?
from podman.
#22975 says 4.9 worked but 5.0 doesn't.
from podman.
Yes, however I suspect that this is not related to podman verison, but machine version update (I am not sure how exactly is this connected).
Without mirrored networking mode, my VPN (Cisco anyconnect) messes everything up.
from podman.
Related Issues (20)
- Changing system time during pod creation causes init containers to run in incorrect order HOT 2
- unlinkat directory not empty on commit (rootless) HOT 5
- Rootless fails to receive systemd slice shortly after boot HOT 5
- podman tries to make user-executable directory world-executable (rootless) HOT 3
- [Podman man] --no-hosts and base_hosts_file semantics HOT 1
- remote: usability: "diff" with no args makes nonsensical suggestion (--latest)
- Containerfile.in not automatically pre-processed HOT 2
- Swagger docs mismatch for /images/{name}/push and libpod endpoint HOT 2
- newuidmap Fails with “Operation not permitted” When Running Podman Inside amd64 Podman container on macOS with Rosetta HOT 5
- podman : Depends: containers-common (>= 4:1) but it is not going to be installed HOT 1
- cannot remove images on MacOS HOT 5
- Podman v5 no longer builds Dockerfiles with build args used as --platform in FROM instruction HOT 5
- quadlet: add Container-spec StopSignal mapping to podman --stop-signal HOT 1
- podman system renumber fails if a volume exists
- Podman doesn't use a local image in `FROM` in Dockerfile/Containerfile HOT 13
- `podman-catatonit` cannot be installed in a UBI9 based container image HOT 1
- macOS vm virtiofs concurrency issue HOT 8
- Podman creates a rundir with insufficient permissions HOT 8
- podman build -o type=tar,dest=- mixes tar and messages HOT 1
- [Quadlet] [rootless] dependencies not working HOT 2
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 podman.