Skip to content

Docker example not working on Debian 12 amd64 #277

@durka

Description

@durka

I tried the Docker setup in the README but it isn't working. Is this a duplicate of #36?

Server:

$ docker run --rm -v ~/.ssh/id_rsa_cpu.pub:/key.pub -v ~/.ssh/id_rsa_cpu:/key -v /tmp --name cpud --privileged -itp 17010:17010 ghcr.io/u-root/cpu:main
2024/06/11 04:44:21

  ####   #####   #    #   ##
 #    #  #    #  #    #   ##
 #       #    #  #    #   ##
 #       #####   #    #   ##
 #    #  #       #    #
  ####   #        ####    ##
2024/06/11 04:44:21
CPUD:Try to run [[/bin/sh] [/bbin/dhclient -v --retry 1000]]
2024/06/11 04:44:21
CPUD:Let's try to run [/bin/sh]
2024/06/11 04:44:21
CPUD:it's not there
2024/06/11 04:44:21
CPUD:Let's try to run [/bbin/dhclient -v --retry 1000]
2024/06/11 04:44:21
CPUD:it's not there
2024/06/11 04:44:21
CPUD:Kicked off startup jobs, now serve cpu sessions
2024/06/11 04:44:21 configure SSH server
2024/06/11 04:44:21 Server is &{:17010 0x5db3c0 []  <nil> <nil> 0x5dc3a0 <nil> <nil> 0x5dbee0 0x5dbfc0 <nil> <nil> <nil> 0s 0s map[] map[cancel-tcpip-forward:0x5dc540 tcpip-forward:0x5dc540] map[] {{} 0 0} {{0 0} 0 0 0 0} map[] map[] {{} 0 0} <nil>}
2024/06/11 04:44:21 Listening on [::]:17010
2024/06/11 04:44:37 CPUD:ReversePortForwardingCallback: attempt to bind 127.0.0.1 0 granted
2024/06/11 04:44:37 handler: cmd is ["cpud" "-remote" "-port9p" "36959" "/bin/date"]
2024/06/11 04:44:37 command started with pty
2024/06/11 04:44:37 wait for "/bin/cpud -remote -port9p 36959 /bin/date"
2024/06/11 04:44:37 cmd "/bin/cpud -remote -port9p 36959 /bin/date" returns with waitid: no child processes <nil>
2024/06/11 04:44:37
CPUD:handler exits
2024/06/11 04:44:37
CPUD:orphan reaper: returns with 21

Client:

$ docker exec -it -e PWD=/root cpud /bin/cpu -key /key localhost /bin/date
2024/06/11 04:44:37 CPUD(as remote):CPUD:Namespace: warnings <nil>, err 1 error occurred:
        * 9p mount no such device

More details about my host system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
$ uname -a
Linux ninkibro 6.1.0-17-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions