dockur / windows-arm

Windows for ARM in a Docker container.
MIT License
626 stars 60 forks source link

[Bug]: Error on Asahi Linux ERROR: TUN device missing. #108

Open TheRouletteBoi opened 1 month ago

TheRouletteBoi commented 1 month ago

Is there an existing issue for this?

Machine specifications

Apple M1 Pro, 16GB Ram

Operating system

Asahi Linux Fedora Remix 40

Docker version

podman version 5.0.2

Description

when trying to run a windows vm using podman I get the following error: ERROR: TUN device missing. Please add the following setting to your container: --device /dev/net/tun --cap-add

Docker compose

commands used:

Docker log

N/A

Screenshots (optional)

swappy-20240511-203604

kroese commented 1 month ago

I think this has something to do with Podman, it uses a bit different permissions than normal Docker.

Can you see if it works when you add --privileged to the run command?

TheRouletteBoi commented 1 month ago

I think this has something to do with Podman, it uses a bit different permissions than normal Docker.

Can you see if it works when you add --privileged to the run command?

I got a little further using the --privileged

swappy-20240512-125608 swappy-20240512-125658

kroese commented 1 month ago

I have no idea about the reason to be honest :(

But KVM support for the M1 in Asahi Linux is pretty new and experimental, so maybe its some incompatibility between KVM and the M1 CPU. I only tested this container on Raspberry Pi 4 and 5, and their CPU's have better Linux support.

Also, this container is for Docker, not for Podman. So it is also possible that it is not caused by KVM but by Podman. So you could try if it works in Docker.