vdsm / virtual-dsm

Virtual DSM in a Docker container.
MIT License
2.48k stars 331 forks source link

> ERROR: pidwait: pidfd_open() not implemented in Linux < 5.3 #283

Closed yaobohai closed 1 year ago

yaobohai commented 1 year ago

The error message is as follows:

$ docker logs -f --tail=200 dsm

❯ Starting Virtual DSM for Docker v4.08...
❯ Install: Downloading DSM_VirtualDSM_42218.pat...
/DSM_VirtualDSM_422 100%[===================>] 362.05M  6.62MB/s    in 50s     
❯ Install: Extracting downloaded image...
❯ Install: Extracting system partition...
❯ Install: Installing system partition...
pidwait: pidfd_open() not implemented in Linux < 5.3
❯ Starting Virtual DSM for Docker v4.08...
pidwait: pidfd_open() not implemented in Linux < 5.3

It is not known whether it is related to the kernel version of the host machine:

$ Linux home 5.0.2-aml-s905 #5.77 SMP PREEMPT Mon Apr 1 17:23:16 MSK 2019 aarch64 aarch64 aarch64 GNU/Linux

This is my launch command

docker run -itd --name=dsm  \
--privileged \
-p 6001:5000 \
-e CPU_CORES=1 \
-e RAM_SIZE=1024M \
-e DISK_SIZE=100G \
--device=/dev/kvm \
--cap-add NET_ADMIN \
--stop-timeout 60 \
-v /data/dsm:/storage \
kroese/virtual-dsm:latest
kroese commented 1 year ago

Yes in my code I check if the host kernel is lower than 5.0, and use a different method in that case. But as you noticed this is not entirely correct because it should check if its below 5.3 instead.

Do you have any possibility to upgrade your kernel to 5.3 or higher? Otherwise I will fix the code.

yaobohai commented 1 year ago

Oooh. The current host on which I am running the container is my soft routing device. Upgrading the kernel can be difficult

kroese commented 1 year ago

@yaobohai This should now be fixed in the latest version (v4.09), please test it.

DDSDerek commented 1 year ago

unraid 6.9.2 kernel version: 5.10.28-Unraid still error:

dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | ❯ Install: Downloading installer...
dsm  | ❯ Install: Downloading DSM_VirtualDSM_64570.pat...
dsm  | 
dsm  |      0K ........ ........ ........ ........  8% 10.9M 30s
dsm  |  32768K ........ ........ ........ ........ 17% 17.1M 22s
dsm  |  65536K ........ ........ ........ ........ 26% 17.1M 18s
dsm  |  98304K ........ ........ ........ ........ 35% 17.1M 15s
dsm  | 131072K ........ ........ ........ ........ 44% 17.1M 13s
dsm  | 163840K ........ ........ ........ ........ 53% 17.1M 11s
dsm  | 196608K ........ ........ ........ ........ 62% 17.2M 8s
dsm  | 229376K ........ ........ ........ ........ 71% 17.1M 6s
dsm  | 262144K ........ ........ ........ ........ 80% 17.1M 4s
dsm  | 294912K ........ ........ ........ ........ 89% 17.1M 2s
dsm  | 327680K ........ ........ ........ ........ 98% 17.1M 0s
dsm  | 360448K .....                              100% 17.8M=22s
dsm  | 
dsm  | ❯ Install: Extracting downloaded image...
dsm  | ❯ Install: Extracting system partition...
dsm  | ❯ Install: Installing system partition...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
dsm  | ❯ Starting Virtual DSM for Docker v4.09...
dsm  | pidwait: pidfd_open() not implemented in Linux < 5.3
yaobohai commented 1 year ago

@DDSDerek @kroese I am using the latest version (v4.09) in kernel 4.11.8-1. el7.elrepo.x86_ 64 and 5.0.2 aml-s905 can now run normally

kroese commented 1 year ago

@DDSDerek Really strange.. Your kernel is 5.10 so you should never get this error that you need kernel 5.3 or higher? Many people installed this container on Unraid without problems, so is it possible for you to update to a more recent release?

DDSDerek commented 1 year ago

@DDSDerek Really strange.. Your kernel is 5.10 so you should never get this error that you need kernel 5.3 or higher? Many people installed this container on Unraid without problems, so is it possible for you to update to a more recent release?

I will not choose to continue to upgrade Unraid to a higher version.Is there any other solution?

kroese commented 1 year ago

@DDSDerek Should be solved now in the latest release (v4.10)

DDSDerek commented 1 year ago

@DDSDerek Should be solved now in the latest release (v4.10)

Thanks, it has been resolved