Skip to content

Proxmox - Erster Container

Verschoben Proxmox
4 2 507
  • Eine schöne Anleitung findet man hier.

    Template

    Template runterladen, da ich im Moment Debian 10 ausgiebig am Testen bin habe ich mir das Debian 10 Template runtergeladen.

    Container erstellen

    Nach der Anleitung erstellt. Gestartet, aber kein Root-Login möglich. Ja, der ist in der ssh Config nicht erlaubt, also schnell einen User angelegt. Dazu im Container auf Konsole geklickt. Eingeloggt und den User angelegt.

    root@first-container:~# adduser frank
    Adding user `frank' ...
    Adding new group `frank' (1000) ...
    Adding new user `frank' (1000) with group `frank' ...
    Creating home directory `/home/frank' ...
    Copying files from `/etc/skel' ...
    New password: 
    Retype new password: 
    passwd: password updated successfully
    Changing the user information for frank
    Enter the new value, or press ENTER for the default
            Full Name []: Frank
            Room Number []: 
            Work Phone []: 
            Home Phone []: 
            Other []: 
    Is the information correct? [Y/n] Y
    root@first-container:~# 
    

    Danach klappt der Login per SSH wie gewohnt.

    9de79292-2205-4a68-ba79-72c46aba8e7a-grafik.png

  • Snapshot mal testen.

    apt install nginx
    

    Dann läuft nginx auf dem Container.

    3fcd22ec-62c1-4805-8166-9baaebc05c43-grafik.png

    Davon erstellen wir mal einen Snapshot

    324ee261-4c86-4340-9408-904fa6ceb878-grafik.png

    Danach einfach mal so nodejs installieren.

    root@first-container:~# apt install nodejs
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following additional packages will be installed:
      libc-ares2 libnode64 libuv1 nodejs-doc
    Suggested packages:
      npm
    The following NEW packages will be installed:
      libc-ares2 libnode64 libuv1 nodejs nodejs-doc
    0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
    Need to get 6753 kB of archives.
    After this operation, 30.4 MB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    Get:1 http://ftp.debian.org/debian buster/main amd64 libc-ares2 amd64 1.14.0-1 [85.8 kB]
    Get:2 http://ftp.debian.org/debian buster/main amd64 libuv1 amd64 1.24.1-1 [110 kB]
    Get:3 http://ftp.debian.org/debian buster/main amd64 libnode64 amd64 10.15.2~dfsg-2 [5521 kB]
    Get:4 http://ftp.debian.org/debian buster/main amd64 nodejs amd64 10.15.2~dfsg-2 [86.2 kB]
    Get:5 http://ftp.debian.org/debian buster/main amd64 nodejs-doc all 10.15.2~dfsg-2 [950 kB]
    Fetched 6753 kB in 1s (8268 kB/s)
    Selecting previously unselected package libc-ares2:amd64.
    (Reading database ... 20715 files and directories currently installed.)
    Preparing to unpack .../libc-ares2_1.14.0-1_amd64.deb ...
    Unpacking libc-ares2:amd64 (1.14.0-1) ...
    Selecting previously unselected package libuv1:amd64.
    Preparing to unpack .../libuv1_1.24.1-1_amd64.deb ...
    Unpacking libuv1:amd64 (1.24.1-1) ...
    Selecting previously unselected package libnode64:amd64.
    Preparing to unpack .../libnode64_10.15.2~dfsg-2_amd64.deb ...
    Unpacking libnode64:amd64 (10.15.2~dfsg-2) ...
    Selecting previously unselected package nodejs.
    Preparing to unpack .../nodejs_10.15.2~dfsg-2_amd64.deb ...
    Unpacking nodejs (10.15.2~dfsg-2) ...
    Selecting previously unselected package nodejs-doc.
    Preparing to unpack .../nodejs-doc_10.15.2~dfsg-2_all.deb ...
    Unpacking nodejs-doc (10.15.2~dfsg-2) ...
    Setting up libc-ares2:amd64 (1.14.0-1) ...
    Setting up libuv1:amd64 (1.24.1-1) ...
    Setting up libnode64:amd64 (10.15.2~dfsg-2) ...
    Setting up nodejs-doc (10.15.2~dfsg-2) ...
    Setting up nodejs (10.15.2~dfsg-2) ...
    update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
    Processing triggers for libc-bin (2.28-10) ...
    Processing triggers for man-db (2.8.5-2) ...
    

    Testen

    root@first-container:~# nodejs
    > 
    (To exit, press ^C again or type .exit)
    > 
    

    Ok, läuft. Dann mal wieder zurück. Den Snapshot auswählen und auf Rollback klicken. Was warten, dann ist der Container wieder hergestellt.

    Testen

    root@first-container:~# nodejs
    -bash: nodejs: command not found
    

    Und wieder der alte Zustand 🙂

  • Spannnend .. das Proxmox hatte ich bisher noch nicht getestet ..

    Gerade mal auf die Specs geschaut und da steht:

    Intel EMT64 oder AMD64 mit Intel VT/AMD-V CPU Flag.

    Ist dies nur für den Server gültig?

    Bzw. Frage anderst gestellt, können damit auch Rockpro64 / ARM Docker Container orchestriert werden?

  • Eine spannende Frage, die ich nicht beantworten kann. Aber Versuch macht klug 😉 Aber ich gehe im Moment nicht davon aus, so als Baugefühl.

    Edit: https://forum.proxmox.com/threads/arm64-vm-emulation-on-proxmox-5-3-amd64.49699/

  • Proxmox Setup 2025

    Proxmox proxmox linux
    1
    3
    0 Stimmen
    1 Beiträge
    137 Aufrufe
    Niemand hat geantwortet
  • Proxmox 8.2 released

    Proxmox proxmox linux
    1
    0 Stimmen
    1 Beiträge
    217 Aufrufe
    Niemand hat geantwortet
  • Proxmox 8.1 released

    Linux proxmox linux
    1
    0 Stimmen
    1 Beiträge
    162 Aufrufe
    Niemand hat geantwortet
  • Ansible - Proxmox Server bearbeiten

    Ansible ansible proxmox semaphore linux
    1
    1
    0 Stimmen
    1 Beiträge
    509 Aufrufe
    Niemand hat geantwortet
  • Proxmox - Windows Server 2019

    Proxmox proxmox windows
    2
    5
    0 Stimmen
    2 Beiträge
    353 Aufrufe
    FrankMF
    Ich bin so froh, das ich das nicht mehr als Hauptsystem nutze. [image: 1642350116851-775556c8-e499-44f2-a891-4492295b7235-image.png]
  • Proxmox - Hetzner Storage Box in VM einbinden

    Proxmox proxmox restic rest-server
    1
    1
    0 Stimmen
    1 Beiträge
    2k Aufrufe
    Niemand hat geantwortet
  • Proxmox - Neue HDD hinzufügen

    Verschoben Proxmox proxmox
    2
    1
    0 Stimmen
    2 Beiträge
    4k Aufrufe
    FrankMF
    Hoppla, da passt was nicht. root@frank-mankel:~# pvesm status Name Type Status Total Used Available % VM lvmthin active 488136704 23284120 464852583 4.77% backup dir active 57278576 3501916 50837372 6.11% local dir active 57278576 3501916 50837372 6.11% local-lvm lvmthin active 147275776 0 147275776 0.00% Hier sieht man, das backup ca. 50GB groß ist. Da die Partition deutlich größer ist, fehlt da was!?? Kurz mal nachgedacht und gesucht..... Der Eintrag in /etc/fstab muss natürlich auch vorhanden sein, so wie gewohnt. Danach root@frank-mankel:~# pvesm status Name Type Status Total Used Available % VM lvmthin active 488136704 23284120 464852583 4.77% backup dir active 1921797220 77856 1824027568 0.00% local dir active 57278576 3502984 50836304 6.12% local-lvm lvmthin active 147275776 0 147275776 0.00% [image: 1563901625553-e9b52dbe-dc81-4bec-a4e8-a26885f57d84-grafik.png] Mein vorhin erstelltes Backup war weg. Also aufpassen!!
  • Proxmox - TOTP

    Verschoben Proxmox proxmox
    2
    2
    0 Stimmen
    2 Beiträge
    438 Aufrufe
    FrankMF
    Als Ergänzung, nein das darf nicht die einzige Maßnahme sein. Firewall fail2ban usw.