ich möchte auf einem Proxmox Server einen LXC Container erstellen, auf dem Docker läuft. Auf dieser Docker Engine soll ein Container laufen, der Zugriff auf einen WLAN USB Stick des Proxmox Servers hat.
ich möchte auf einem Proxmox Server einen LXC Container erstellen auf dem Docker läuft.
Auf dieser Docker Engine soll ein Container laufen, der Zugriff auf einen WLAN USB Stick des Proxmox Servers hat.
Hast du eine Lösung dafür?
Hallo,
um einen LXC Container mit Docker auf einem Proxmox Server zu erstellen, befolge bitte die folgenden Schritte:
1. Erstelle einen neuen LXC Container auf deinem Proxmox Server und installiere ein unterstütztes Linux-Betriebssystem, z. B. Debian oder Ubuntu.
2. Logge dich über SSH oder die Proxmox-Konsole in den LXC Container ein.
3. Aktualisiere die Paketliste und installiere die benötigten Abhängigkeiten:
Code: Text
Log in, to see the code
4. Füge das offizielle Docker GPG-Repository hinzu:
Code: Text
Log in, to see the code
5. Füge das Docker Repository hinzu:
Code: Text
Log in, to see the code
6. Installiere Docker:
Code: Text
Log in, to see the code
7. Aktiviere und starte den Docker-Dienst:
Code: Text
Log in, to see the code
Nun zum USB-WLAN-Stick:
Da LXC-Container nicht direkt auf USB-Geräte zugreifen können, musst du das USB-Gerät zuerst an den LXC-Container durchreichen. Hierzu benötigst du die Vendor- und Product-ID deines WLAN-USB-Sticks.
1. Finde die Vendor- und Product-ID des USB-WLAN-Sticks auf deinem Proxmox-Server:
Code: Text
Log in, to see the code
Notiere dir die entsprechenden IDs, die in der Ausgabe angezeigt werden, z. B. `1234:5678` (Vendor:Product).
2. Füge die folgende Zeile zur LXC-Konfigurationsdatei deines Containers hinzu (ersetze `<ID>` durch die Vendor- und Product-ID des USB-Sticks):
Code: Text
Log in, to see the code
3. Starte den LXC-Container neu:
Code: Text
Log in, to see the code
Jetzt sollte der WLAN-USB-Stick im LXC-Container verfügbar sein.
Um den WLAN-USB-Stick in einem Docker-Container zu verwenden, kannst du das Gerät mit der Option `--device` beim Starten des Docker-Containers durchreichen:
Code: Text
Log in, to see the code
Hoffentlich hilft dir diese Anleitung weiter. Lass mich wissen, wenn du weitere Fragen oder Probleme hast.
You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
Gern geschehen! Wenn du weitere Fragen oder Probleme hast, zögere nicht, hier erneut nachzufragen. Viel Erfolg bei der Einrichtung deines LXC Containers und Docker auf dem Proxmox Server!
You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
Die von dir beschriebene Installation von Docker verlief fehlerhaft, habe es mit dem offiziellen script von https://github.com/docker/docker-install aber dann installieren können.
Den USB WLAN Adapter konnte ich wie beschrieben in den LXC durchreichen.
Die von dir beschriebene Installation von Docker verlief fehlerhaft, habe es mit dem offiziellen script von https://github.com/docker/docker-install aber dann installieren können.
Den USB WLAN Adapter konnte ich wie beschrieben in den LXC durchreichen.
Danke
Es freut mich zu hören, dass die Installation von Docker mit dem offiziellen Skript erfolgreich war und du den USB WLAN-Adapter durchreichen konntest.
Wenn du in Zukunft weitere Fragen oder Probleme hast, zögere nicht, hier nachzufragen. Viel Spaß und Erfolg mit deinem LXC Container und Docker auf dem Proxmox Server!
You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.