Ankündigung

Einklappen
Keine Ankündigung bisher.

Edomi in Proxmox LXC container.

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

    Edomi in Proxmox LXC container.

    Here is a small tutorial on how I setup Edomi in a Proxmox LXC container. I am no expert in this what so ever and other users may have a better way...

    I used to run Edomi in a virtual machine but had some problems due to slow hardware. With an LXC container, it’s now running perfect without any problems as it is essentially running on the hardware directly. It also uses a lot less memory, around 350MB in LXC compared to almost 2GB in a virtual machine in my case….

    Everything I have tried seems to be working great except the Console window in the Edomi admin page (not really a problem since you can open the console in Proxmox).

    This is using Proxmox version 5.2.


    You need to download the correct container template first.
    download-1.png

    Then create LXC Container.

    Decide if you want to run as a privileged or unprivileged container. Privileged=less problems but less secure...

    If you run as unprivileged container you will get some error messages about board serial and product_uuid. I don't think it should matter, but not sure.
    Create-11.png

    Select correct template.
    Create-2.png

    Do not change any of the network settings.
    Create-4.png

    After it's created, change some of the settings.
    Settings-11.png

    Then start the Container and select correct Console type (this is so we can copy/paste later)
    Startup-1.png

    Now login as root and then:

    Copy file for correct timezone using command "cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime". Confirm overwrite with yes.
    Check with "date" command to confirm correct timezone.

    Then update system with "yum -y update".

    Install some small programs we need with "yum install -y wget unzip nano".


    *If you decide to run as unprivileged container edit tty.conf as below

    To get rid of annoying error message in console, run "nano /etc/init/tty.conf"
    Comment out/change to:

    #respawn
    #instance $TTY
    #exec /sbin/mingetty $TTY


    Ctrl-O to save and Ctrl-X to exit nano
    .


    Download Edomi with command "wget https://srv-file7.gofile.io/download...I-Beta_162.zip "

    Unzip Edomi with command "unzip EDOMI-Beta_162.zip"
    Run command "chmod 777 edomi/ -R" to set correct privileges.

    Change directory with "cd edomi/Install"

    Make backup of install script with "mv install.sh install.sh.bak"

    Now we need to make new install script with command "nano install.sh"
    Copy text from script file https://drive.google.com/open?id=0Bx...GY0UHU2SWNMbzA into newly created install.sh
    Ctrl-O to write and Ctrl-X to exit nano.

    Run command "chmod 777 install.sh" to set correct privileges.

    And finally run "sh install.sh" to install Edomi as normal and start playing...


    A big thanks to Christian for creating this fantastic software.

    -Kaj

    edit: Changes to running as a privleged/unprivileged container.
    Zuletzt geändert von McKajVah; 06.10.2019, 01:17.

    #2
    Very cool, thx a lot for sharing!
    Kind regards,
    Yves

    Kommentar


      #3
      Hey Kaj. That's great. Thank you very much! I'll try this next week.

      Kommentar


        #4
        schön das mein altes abgeändertes Installationsskript noch Verwendung findet, wie man am Dateinamen Sieht ist es allerdings noch von 1.38, also doch nicht mehr ganz aktuell. Eventuell müsste man es mal mit dem aktuellen Installaltionsskript vergleichen, nicht das es vielleicht doch zu Problemen kommt da irgend was fehlt.

        Kommentar


          #5
          Ferengi dein Container von "damals" läuft noch immer tadellos. Wirklich eine feine Sache und spart einiges an Ressourcen...

          Kommentar


            #6
            Ich habe mich mal daran gemacht, das Ganze zu testen. Vor der Edomi-Installation erscheint eine Fehlermeldung, dass die Centos-Version nicht passt. Habe es trotzdem installiert, aber Edomi startet nicht und hängt in einer Bootschleife.

            Kommentar


              #7
              Habe es so ausgeführt. Funktioniert perfekt und für mein Test-Edomi mit Abstand die beste Variante. Vielen Dank für die hervorragende Anleitun und das "robuste" Installationsscript

              Kommentar


                #8
                kleez dann erzähl mal Keepcurry was Du anders gemacht hast als er. Weil, wenn 2 das selbe tun, sollte auch das Ergebniss das selbe sein.

                Kommentar


                  #9
                  Das hätte ich auch erwartet.

                  Ich habe alles 2 mal Punkt für Punkt abgearbeitet. Gleiches Ergebnis. Nach dem Kopieren des Installationsscripts musste ich von Hand noch 2 Zeilenumbrüche einfügen damit es funktioniert. Evtl. gab's da noch mehr Probleme. Habe die Datei mit Notepad++ geöffnet und dann per CP per Konsole in nano eingefügt.

                  Kommentar


                    #10
                    Zitat von Keepcurry Beitrag anzeigen
                    Das hätte ich auch erwartet.

                    Ich habe alles 2 mal Punkt für Punkt abgearbeitet. Gleiches Ergebnis. Nach dem Kopieren des Installationsscripts musste ich von Hand noch 2 Zeilenumbrüche einfügen damit es funktioniert. Evtl. gab's da noch mehr Probleme. Habe die Datei mit Notepad++ geöffnet und dann per CP per Konsole in nano eingefügt.
                    Strange... I tried it once again and it works without problems.... Also no editing if script should be necessary. (The script is not mine, I just copied it from the Edomi Wiki).

                    Are you sure you downloaded the correct Centos6 template?


                    -Kaj

                    Kommentar


                      #11
                      Zitat von vento66 Beitrag anzeigen
                      kleez dann erzähl mal Keepcurry was Du anders gemacht hast als er. Weil, wenn 2 das selbe tun, sollte auch das Ergebniss das selbe sein.
                      Ich habe schlicht die Anleitung befolgt. Zuerst "unprivileged" und dann haben mich die Fehlermeldungen genervt (bin sie nicht losgeworden) und dann "priviledget". Das Script musste ich nicht editieren. Hat auf Anhieb geklappt.

                      Kommentar


                        #12
                        Habs nochmal versucht. Wieder das gleiche Problem. Ich habe die Anleitung genau eingehalten. Die Version vom Template passt auch. Proxmox-Version ist 5.2-1. Die Zeilenumbrüche im Script muss ich immer anpassen, egal womit ich es zum kopieren öffne.

                        Habe mal ein Screenshot von den Fehlermeldungen erstellt.

                        Unbenannt.PNG

                        Kommentar


                          #13
                          Hallo!

                          Wie geht die Installation mit Edomi 2.00?

                          Kommentar


                            #14
                            Zitat von uzi10 Beitrag anzeigen
                            Hallo!

                            Wie geht die Installation mit Edomi 2.00?
                            Hi.

                            Not so good I'm afraid. I think the script is no longer working. Also, there is currently a problem with updating from 1.62 I have linked in the description (this was the newest version I had). It needs a hotpatch to make updating function.

                            I'll try to get the newest version where the script and updating works "out of the box". Then it is easy to upgrade to 2.00 or further versions.

                            -Kaj

                            Kommentar


                              #15
                              Hi,

                              the attached script installs Edomi 2.00 on CentOS7 lxc container on Proxmox5.
                              The original install script that ships with v2.00 has been (lightly) edited to
                              - comment out grub (not in use with lxc on Proxmox)
                              - comment out SELINUX (apparmour used in Proxmox containers)
                              - amend edomi.service systemd config as autostart of the service stopped seconds after autostart. Manually starting the service worked every time. As I am a systemd-numpty I found a quick workaround. Experts: pls apply yourselves :-)

                              This is my test-install. As I am starting out with Edomi I am in no position to establish if the install script produces a fully functional Edomi lxc container install.

                              Cheers,
                              B.

                              PS: 3gb disk and 512MB ram system specs
                              Angehängte Dateien

                              Kommentar

                              Lädt...
                              X