Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. [GELÖST] Neuinstallation über Proxmox/LXC - Kein Zugriff

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [GELÖST] Neuinstallation über Proxmox/LXC - Kein Zugriff

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gatam last edited by Gatam

      Hi,

      ich habe mich an der Anleitung von Droxmotic orientiert
      https://drozmotix.github.io/languages/de/BasicSetup/03.ProxmoxLXC.html

      [Nachtrag]
      Und auch die Offizielle unter https://www.iobroker.net/#de/documentation/install/proxmox.md

      und wollte auf meinem NUC von Ubuntu Server auf Proxmox - LXC umziehen.

      Also m-Sata platt gemacht,
      Proxmox installiert (✅)
      Container mit Ubuntu 22.04 installiert - selbe IP (✅)

      Probleme:
      Kein Zugriff per ssh um mein Backup hochzuladen
      (sshhd_config bearbeitet für root Zugriff)

      Im Log hat er Probleme mit dem PW. Habe aber beide (sowohl vom Proxmox als auch vom LXC verwendet.
      Und auch in Klartext mal geschrieben zum Test.

      Einloggen in Konsole funktioniert ja auch.

      May 18 12:18:37 pve pvedaemon[176425]: starting lxc termproxy UPID:pve:0002B129:00468FE7:6284C7FD:vncproxy:101:root@pam:
      May 18 12:18:37 pve pvedaemon[170210]: <root@pam> starting task UPID:pve:0002B129:00468FE7:6284C7FD:vncproxy:101:root@pam:
      May 18 12:18:37 pve pvedaemon[156896]: <root@pam> successful auth for user 'root@pam'
      May 18 12:18:39 pve pvedaemon[168697]: <root@pam> end task UPID:pve:0002B113:00468DCC:6284C7F8:vncproxy:101:root@pam: OK
      May 18 12:19:38 pve sshd[176727]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.168.72  user=root
      May 18 12:19:40 pve sshd[176727]: Failed password for root from 192.168.168.72 port 54894 ssh2
      May 18 12:19:41 pve sshd[176727]: Connection closed by authenticating user root 192.168.168.72 port 54894 [preauth]
      
      JLeg 1 Reply Last reply Reply Quote 0
      • JLeg
        JLeg @Gatam last edited by

        @gatam du versuchst offenbar, als "root" zuzugreifen. Das dürfte per Default verboten sein - dazu muss in /etc/ssh/sshd_config "PermitRootLogin yes" gesetzt sein. Besser wär's aber, einen nicht-privilegierten User zu nehmen...

        G 1 Reply Last reply Reply Quote 0
        • G
          Gatam @JLeg last edited by

          @jleg

          genau - ich habe erst mit PasswordAuthentication yes probiert.

          Das hat nicht geklappt, also habe ich mir den root freischaltet um zu sehen ob es generell funktioniert mit PermitRootLogin yes

          Sitze schon seit Stunden dran, Container öfter neu erstellt, Proxmox neu gestartet, den ioBroker hat auch nicht funktioniert. Aber ich fange jetzt mal klein an und will erst mal ssh zum laufen bringen. Lerne Proxmox erst kennen.

          Thomas Braun crunchip 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Gatam last edited by

            @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

            Aber ich fange jetzt mal klein an und will erst mal ssh zum laufen bringen.

            Dann mach es mit einem User, NICHT per root.

            G 1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @Gatam last edited by

              @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

              Sitze schon seit Stunden dran, Container öfter neu erstellt,

              https://www.iobroker.net/#de/documentation/install/proxmox.md

              1 Reply Last reply Reply Quote 1
              • G
                Gatam @Thomas Braun last edited by Gatam

                @thomas-braun

                AllowUsers iobroker
                Root deaktiviert

                Syslog im Proxmox

                May 18 14:22:53 pve sshd[39191]: Invalid user iobroker from 192.168.168.72 port 61296
                May 18 14:22:53 pve sshd[39191]: pam_unix(sshd:auth): check pass; user unknown
                May 18 14:22:53 pve sshd[39191]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.168.72
                May 18 14:22:54 pve sshd[39191]: Failed password for invalid user iobroker from 192.168.168.72 port 61296 ssh2
                May 18 14:22:55 pve sshd[39191]: Connection closed by invalid user iobroker 192.168.168.72 port 61296 [preauth]
                

                Und was mache ich nun?
                Änderung - er beschwert sich über den invalid user iobroker.
                User kann sich anmelden und darf sudo

                Nachtrag:
                ioBroker läuft scheinbar, ist aber auch nicht erreichbar über Weboberfläche:

                • system.adapter.admin.0 : admin : ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin
                • system.adapter.backitup.0 : backitup : ioBroker - enabled
                • system.adapter.discovery.0 : discovery : ioBroker - enabled
                crunchip 1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active @Gatam last edited by

                  @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                  Root deaktiviert

                  warum überhaupt root?
                  Anleitung gelesen?

                  deinen User solltest du auch nicht iobroker nennen, denn dieser wird mit dem ioBroker installer script angelegt

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    Gatam @crunchip last edited by

                    @crunchip

                    Ich mache es jetzt komplett neu, und auch mit Debian, also Schritt für Schritt wie in der Anleitung.

                    Punkt: Proxmox - Erstellen eines Linux Containers (LXC) + ioBroker Installation im Anschluß

                    Das mit dem root habe ich probiert, weil ich keinen ssh Zugang hatte und das mit dem root kenne von anderen images.

                    crunchip 1 Reply Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @Gatam last edited by

                      @gatam mach das, falls du mit der Anleitung nicht klar kommst, dann melden

                      G 2 Replies Last reply Reply Quote 1
                      • G
                        Gatam @crunchip last edited by

                        @crunchip

                        Installation durchgelaufen - Weboberfläche nicht erreichbar:

                        Gehe nun die Schritte von https://www.iobroker.net/docu/index-26.htm?page_id=3928&lang=de#installAdapter durch zum Überprüfen.

                        Sind diese Meldungen bei der Installation normal?

                        In file included from ../../nan/nan.h:58,
                                         from ../src/main.cpp:3:
                        /home/iobroker/.cache/node-gyp/14.19.3/include/node/node.h:793:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
                          793 |       (node::addon_register_func) (regfunc),                          \
                              |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        /home/iobroker/.cache/node-gyp/14.19.3/include/node/node.h:827:3: note: in expansion of macro 'NODE_MODULE_X'
                          827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                              |   ^~~~~~~~~~~~~
                        ../src/main.cpp:42:1: note: in expansion of macro 'NODE_MODULE'
                           42 | NODE_MODULE(diskusage, Init)
                              | ^~~~~~~~~~~
                        In file included from ../../nan/nan.h:58,
                                         from ../src/unix_dgram.cc:5:
                        /home/iobroker/.cache/node-gyp/14.19.3/include/node/node.h:793:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
                          793 |       (node::addon_register_func) (regfunc),                          \
                              |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        /home/iobroker/.cache/node-gyp/14.19.3/include/node/node.h:827:3: note: in expansion of macro 'NODE_MODULE_X'
                          827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                              |   ^~~~~~~~~~~~~
                        ../src/unix_dgram.cc:404:1: note: in expansion of macro 'NODE_MODULE'
                          404 | NODE_MODULE(unix_dgram, Initialize)
                              | ^~~~~~~~~~~
                        
                        crunchip 1 Reply Last reply Reply Quote 0
                        • G
                          Gatam @crunchip last edited by

                          @crunchip

                          10606 ?        00:00:03 iobroker.js-con
                          
                          tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      -                   
                          tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      -
                          

                          node v14.19.3
                          npm v6.14.17

                          • system.adapter.admin.0 : admin : SmartHome - enabled, port: 8081, bind: 0.0.0.0, run as: admin
                          • system.adapter.backitup.0 : backitup : SmartHome - enabled
                          • system.adapter.discovery.0 : discovery : SmartHome - enabled
                          Error: Cannot find module '/opt/iobroker/node_modules/iobroker.admin/admin.js'
                              at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
                              at Function.Module._load (internal/modules/cjs/loader.js:746:27)
                              at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
                              at internal/main/run_main_module.js:17:47 {
                            code: 'MODULE_NOT_FOUND',
                            requireStack: []
                          

                          Im Log:

                          2022-05-18 14:54:24.718  - warn: admin.0 (10655) Repository cannot be read: Active repo - stable
                          2022-05-18 14:54:24.719  - warn: admin.0 (10655) Active repository "stable cannot be read
                          
                          1 Reply Last reply Reply Quote 0
                          • crunchip
                            crunchip Forum Testing Most Active @Gatam last edited by crunchip

                            @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                            Sind diese Meldungen bei der Installation normal

                            ja, am Ende stand Was?

                            @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                            Weboberfläche nicht erreichbar:

                            @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                            Im Log:

                            kann es sein das der LXC ein Netzwerkproblem hat

                            oder es gibt ein Problem mit dem aktuellen Admin

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              Gatam @crunchip last edited by Gatam

                              @crunchip

                              Netzwerkproblem
                              Drum habe ich auch ssh und ssh mit root probiert.

                              Meine Einstellung der LXC ist 192.168.168.230/24
                              Gateway 192.168.168.1
                              IP Adresse wie der Proxmox selbst

                              ping auf google und Router funktioniert im LXC

                              Das stand am Ende

                              Finalizing installation (4/4)

                              Enabling autostart...
                              Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service -> /lib/systemd/system/iobroker.service.
                              Autostart enabled!
                              Fixing directory permissions...

                              ============================================================

                              ioBroker was installed successfully
                              Open http://192.168.168.230:8081 in a browser and start configuring!
                              crunchip 1 Reply Last reply Reply Quote 0
                              • crunchip
                                crunchip Forum Testing Most Active @Gatam last edited by crunchip

                                @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                                IP Adresse wie der Proxmox selbst

                                ? was ist damit gemeint

                                und wenn du im Browser
                                http://192.168.168.230:8081 eingibst kommt kein Willkommen?
                                was zeigt

                                iob list instances
                                
                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  Gatam @crunchip last edited by

                                  @crunchip

                                  Der LXC hat dieselbe IP wie der Proxmax Server bekommen.
                                  Ist ja denke ich Standard.

                                  Nein, es kommt kein Willkommen. Leider 😥

                                  list instance

                                  • system.adapter.admin.0 : admin : SmartHome - enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                  • system.adapter.backitup.0 : backitup : SmartHome - enabled
                                  • system.adapter.discovery.0 : discovery : SmartHome - enabled
                                  crunchip 1 Reply Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @Gatam last edited by crunchip

                                    @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                                    Der LXC hat dieselbe IP wie der Proxmax Server bekommen.

                                    das geht doch gar nicht

                                    mit welcher IP rufst du denn die Proxmox Gui auf?

                                    G 1 Reply Last reply Reply Quote 1
                                    • G
                                      Gatam @crunchip last edited by

                                      @crunchip

                                      192.168.168.230:8006

                                      ok. Also doch nicht normal selbe IP 😇

                                      crunchip 1 Reply Last reply Reply Quote 0
                                      • crunchip
                                        crunchip Forum Testing Most Active @Gatam last edited by

                                        @gatam wie hast du denn ein LXC erstellt?

                                        G 1 Reply Last reply Reply Quote 0
                                        • G
                                          Gatam @crunchip last edited by Gatam

                                          @crunchip

                                          OK!!!!!

                                          Also Proxmox bekommt eine IP.
                                          Und jeder LXC eine eigene. Dachte der reicht die Anfragen dann nur. Aber das würde dann ja Probleme mit den selben Ports geben.

                                          Ich hatte dazu gegooglet und nichts gefunden.

                                          JETZT:
                                          0b8343fc-46e2-4d7c-a664-1f78e40e6f85-image.png

                                          VIELEN DANK

                                          crunchip 1 Reply Last reply Reply Quote 0
                                          • crunchip
                                            crunchip Forum Testing Most Active @Gatam last edited by

                                            @gatam sagte in Neuinstallation über Proxmox/LXC - Kein Zugriff per ssh:

                                            Also Proxmox bekommt eine IP.

                                            natürlich, der proxmox Host hat seine IP, jede neu erstellte Maschine, sei es VM oder auch LXC bekommt eine eigenständige IP.

                                            daher jetzt nochmal
                                            welche IP hat dein Proxmox Host und welche dein LXC, zeig mal ein screen deiner Proxmox oberfläche so wie hier, incl Adresszeile und deinen LXC anklicken>Network
                                            53ea84bd-17dc-4795-ac46-82aeab09bcc7-image.png

                                            G 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.2k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            28
                                            2094
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo