Ankündigung

Einklappen
Keine Ankündigung bisher.

EDOMI im LXC Container - wer hats gemacht und kann mir helfen?

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    EDOMI im LXC Container - wer hats gemacht und kann mir helfen?

    Hallo zusammen!

    Bei mir läuft EDOMI nun schon lange als VM unter Proxmox und nun wollte ich endlich mal auf einen LXC Container wechseln. Ich habe mich soweit an die Anleitung gehalten:
    http://www.knx-home.net/wiki/index.p..._.28Proxmox.29

    ich hatte jedoch die Meldung, dass das mysql-server Paket nicht gefundenwurde. Aber auch nach händischer Installation gab es Probleme:

    error reading information on service httpd: No such file or directory
    error reading information on service mysqld: No such file or directory
    error reading information on service vsftpd: No such file or directory
    error reading information on service ntpd: No such file or directory
    Note: Forwarding request to 'systemctl enable httpd.service'.
    Note: Forwarding request to 'systemctl enable mysqld.service'.
    Note: Forwarding request to 'systemctl enable vsftpd.service'.
    Note: Forwarding request to 'systemctl enable ntpd.service'.
    error reading information on service crond: No such file or directory
    error reading information on service crond: No such file or directory
    error reading information on service postfix: No such file or directory
    error reading information on service postfix: No such file or directory
    Note: Forwarding request to 'systemctl disable blk-availability.service'.
    error reading information on service blk-availability: No such file or directory
    error reading information on service lvm2-monitor: No such file or directory
    error reading information on service lvm2-monitor: No such file or directory
    error reading information on service mdmonitor: No such file or directory
    error reading information on service mdmonitor: No such file or directory
    error reading information on service multipathd: No such file or directory
    error reading information on service multipathd: No such file or directory
    Note: Forwarding request to 'systemctl disable rdisc.service'.
    error reading information on service rdisc: No such file or directory
    error reading information on service restorecond: No such file or directory
    error reading information on service restorecond: No such file or directory
    error reading information on service saslauthd: No such file or directory
    error reading information on service saslauthd: No such file or directory
    error reading information on service auditd: No such file or directory
    error reading information on service auditd: No such file or directory
    The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
    Redirecting to /bin/systemctl stop iptables.service
    Failed to stop iptables.service: Unit iptables.service not loaded.
    error reading information on service iptables: No such file or directory
    error reading information on service iptables: No such file or directory
    The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
    Redirecting to /bin/systemctl stop ip6tables.service
    Failed to stop ip6tables.service: Unit ip6tables.service not loaded.
    error reading information on service ip6tables: No such file or directory
    error reading information on service ip6tables: No such file or directory
    Redirecting to /bin/systemctl stop rsyslog.service
    Failed to stop rsyslog.service: Unit rsyslog.service not loaded.
    error reading information on service rsyslog: No such file or directory
    error reading information on service rsyslog: No such file or directory
    Redirecting to /bin/systemctl start mysqld.service

    Hat evtl. einer einen Tipp? Ich hatte jetzt die aktuelle Version 1.47 genommen, da ich die 1.38 nicht mehr gefunden habe...

    Beste Grüße
    Dennis

    #2
    ich habs verbrochen ;-) werds nachher mal mit der 1.47 ausprobieren und mich dann melden.
    falls dus nicht erwarten kannst, hab dir hier die 1.38 hochgeladen https://drive.google.com/open?id=0Bx...HoxTlpDZm9GRjQ

    Christian

    Kommentar


      #3
      glaub ich hab den Fehler, hab mich in der Anleitung vertippt, man braucht natürlich das centos 6 template und nicht das 7er

      unter netzwerk bei proxmox static auswählen (und keine adresse eintragen) wenn du dhcp wählst überschreibt er immer die einstellungen die edomi bei der installation vornimmt
      Zuletzt geändert von Ferengi; 03.11.2016, 18:54.

      Kommentar


        #4
        Danke schonmal für den Tipp! Jetzt sieht es schon besser aus, aber hab immernoch bei den Diensten Fehler:

        Dienste konfigurieren

        error reading information on service crond: No such file or directory
        error reading information on service crond: No such file or directory
        error reading information on service postfix: No such file or directory
        error reading information on service postfix: No such file or directory
        error reading information on service blk-availability: No such file or directory
        error reading information on service blk-availability: No such file or directory
        error reading information on service lvm2-monitor: No such file or directory
        error reading information on service lvm2-monitor: No such file or directory
        error reading information on service mdmonitor: No such file or directory
        error reading information on service mdmonitor: No such file or directory
        error reading information on service multipathd: No such file or directory
        error reading information on service multipathd: No such file or directory
        error reading information on service saslauthd: No such file or directory
        error reading information on service saslauthd: No such file or directory
        error reading information on service auditd: No such file or directory
        error reading information on service auditd: No such file or directory
        iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
        iptables: Setting chains to policy ACCEPT: nat filter [ OK ]
        iptables: Flushing firewall rules: [ OK ]
        iptables: Unloading modules: iptable_nat iptable_filter iptable_nat iptable_filter ip_tables [FAILED]
        ip6tables: unrecognized service
        ip6tables: unrecognized service
        error reading information on service ip6tables: No such file or directory
        error reading information on service ip6tables: No such file or directory
        Shutting down system logger: [ OK ]
        Initializing MySQL database: Installing MySQL system tables...
        OK
        Filling help tables...
        OK

        To start mysqld at boot time you have to copy
        support-files/mysql.server to the right place for your system

        PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
        To do so, start the server, then issue the following commands:

        /usr/bin/mysqladmin -u root password 'new-password'
        /usr/bin/mysqladmin -u root -h EDOMI password 'new-password'

        Alternatively you can run:
        /usr/bin/mysql_secure_installation

        which will also give you the option of removing the test
        databases and anonymous user created by default. This is
        strongly recommended for production servers.

        See the manual for more instructions.

        You can start the MySQL daemon with:
        cd /usr ; /usr/bin/mysqld_safe &

        You can test the MySQL daemon with mysql-test-run.pl
        cd /usr/mysql-test ; perl mysql-test-run.pl

        Please report any problems with the /usr/bin/mysqlbug script!

        [ OK ]
        Starting mysqld: [ OK ]
        Starting vsftpd for vsftpd: [ OK ]
        Starting ntpd: [ OK ]
        ---fertig---

        mySQL-Konfiguration

        ---fertig---
        Stopping mysqld: [ OK ]

        EDOMI installieren (Public)

        ---fertig---

        Autostart einrichten

        sed: can't read /boot/grub/grub.conf: No such file or directory
        sed: can't read /boot/grub/grub.conf: No such file or directory
        ---fertig---

        PHP-Extensions installieren

        ---fertig---

        Ich werde nochmal die 1.38 ausprobieren.

        Kommentar


          #5
          schau mal obs läuft, denke das ist ok, die fehler kommen einfach daher das der container bestimmte dinge nicht hat (z.b. lvm oder grub)

          Kommentar


            #6
            Wieder:
            Dienste konfigurieren

            error reading information on service crond: No such file or directory
            error reading information on service crond: No such file or directory
            error reading information on service postfix: No such file or directory
            error reading information on service postfix: No such file or directory
            error reading information on service blk-availability: No such file or directory
            error reading information on service blk-availability: No such file or directory
            error reading information on service lvm2-monitor: No such file or directory
            error reading information on service lvm2-monitor: No such file or directory
            error reading information on service mdmonitor: No such file or directory
            error reading information on service mdmonitor: No such file or directory
            error reading information on service multipathd: No such file or directory
            error reading information on service multipathd: No such file or directory
            error reading information on service saslauthd: No such file or directory
            error reading information on service saslauthd: No such file or directory
            error reading information on service auditd: No such file or directory
            error reading information on service auditd: No such file or directory
            iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
            iptables: Setting chains to policy ACCEPT: nat filter [ OK ]
            iptables: Flushing firewall rules: [ OK ]
            iptables: Unloading modules: iptable_nat iptable_filter iptable_nat iptable_filter ip_tables [FAILED]
            ip6tables: unrecognized service
            ip6tables: unrecognized service
            error reading information on service ip6tables: No such file or directory
            error reading information on service ip6tables: No such file or directory

            UND:
            Autostart einrichten

            sed: can't read /boot/grub/grub.conf: No such file or directory
            sed: can't read /boot/grub/grub.conf: No such file or directory
            ---fertig---

            Sollte ich die Pakete evtl manuell nachinstallieren?

            Kommentar


              #7
              wie gesagt, sollte trotz der fehlenden deinste funktionieren, schon mal geschaut ob das webinterface erreichbar ist?

              Kommentar


                #8
                Das Webinterface ist erreichbar, aber der grüne drehende Ladebalken läuft ständig und das Loginfeld kommt nicht...

                Kommentar


                  #9
                  grad nochmal drübergeschaut, die dienstmeldungen kannst du vergessen, da versucht das installationsskript diese zu löschen und gibt einen fehler aus weil anscheinend das template noch minimaler ist als die normale iso. grub kann man auch ignorieren. habs grad nochmal schnell installiert, und es funktioniert wunderbar, bei ersten start hat der ladebalken vielleicht 10 sek gedauert dann ist das loginfeld gekommen, weis ehrlich gesagt auch nicht so recht weiter.
                  Bin leider nicht der große profi, hab nur das script soweit abgeändert das es funktioniert hat.

                  Wen du willst mach ich dir ein Backup des frisch aufgestzten Containers den du dann auf Proxmox wiederherstellen kannst ...

                  Kommentar


                    #10
                    so, hier einmal container dump https://drive.google.com/file/d/0Bxp...ew?usp=sharing

                    rootpasswort = edomi, nach dem wiederherstellen mußt du noch in der /etc/sysconfig/network-scripts/ifcfg-eth0 ip,gateway, subnet und dns anpassen, gleiches in der edomi.ini.
                    Wenns dann immer noch nicht geht bin ich leider auch mit meinem Latein am ende.

                    Christian

                    Kommentar


                      #11
                      Also ich habs noch mal auf verschiedene Weisen probiert, aber es kommt kein login, ein Backup wäre echt was Feines. Das sind aber knapp 600 MB oder? Hast du da irgendwo Platz für?

                      Kommentar


                        #12
                        Ich gebs auf... In Proxmox kommt unter Konsole keine richtige Eingabe und über ssh komme ich auch nicht rauf, da ich die IP nicht kenne.

                        Kommentar


                          #13
                          guten Morgen,

                          dachte du hättest schon öfter mit containern gearbeitet, drum hab ichs nicht erwähnt.

                          konsole und ssh funktionieren oft nicht direkt, am einfachsten ist es auf den host zu gehen (direkt oder ssh) und dort mit
                          Code:
                          pct enter VMID
                          in den entsprechenden Container zu wechseln.

                          Falls du direkten ssh zugriff brauchst kannst du ihn so aktivieren https://pve.proxmox.com/wiki/Convert...PTY_Allocation (letzter punkt pty allocation)
                          Auf der seite gibt es auch einen Link um die Webconsole zu aktivieren, habs jetzt auf anhieb aber nicht hinbekommen. Hab das ding bis jetzt aber auch noch nicht vermisst.

                          Kommentar


                            #14
                            Also hab es jetzt mit deinem dump nochmal probiert: gleiches Problem. Dann hab ich nochmal das große dev template genommen das gleiche. Ich befürchte es liegt an meinem proxmox kernel oder version...

                            Folgende Fehler bekomme ich beim Edomistart:
                            /dev/vcs1 nicht gefunden (Konsole für apache)
                            Shutting down ntpd: FAILED

                            Mein Proxmox ist nicht super aktuell: pve-manager 4.1-15, kernel 4.2.6-1-pve

                            Kommentar


                              #15
                              Ich habe mal den container Dump verwendet, die ip's und dns1 angepasset und in der edomi.ini die richtige IP Adresse eingetragen, bei mir läuft es. Aktuelles Proxmox.
                              Es wird lediglich auf der Adminübersicht bei dem rechten Punkt unten nichts angezeigt ( nicht verfügbar ) Da fehlt noch die Konsole.

                              ssh zugriff von extern bracht einen Fehler: PTY allocation request failed on channel 0
                              wenn man in /etc/rc.sysinit die Zeile "/sbin/start_udev" ausklammer und den Container neu startet funktioniert es.
                              siehe https://forum.proxmox.com/threads/pt...-from-3.23485/
                              Zuletzt geändert von hartmut; 04.11.2016, 10:57.

                              Kommentar

                              Lädt...
                              X