Debmatic in LXC Container (kein Proxmox)

Debian/Ubuntu basierte CCU

Moderator: Co-Administratoren

Jasimo
Beiträge: 23
Registriert: 20.10.2019, 12:06
Hat sich bedankt: 6 Mal

Debmatic in LXC Container (kein Proxmox)

Beitrag von Jasimo » 12.04.2020, 17:19

Hallo,

ich versuche Debmatic in einem LXC Container (LXC-Host läuft auf Raspi4 4 GByte RAM) zu installieren und habe mich dabei an der Proxmox installation orientiert.
Die CCU startet auch und ist erreichbar, nur leider wird das RPI-RF-MOD (ohne HB-RF-USB) nicht erkannt. Hat da jemand einen Tipp für mich?
Muss da noch etwas in die Config des Containers so dass RPI-RF-MOD erkannt wird?

Code: Alles auswählen

# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: -d debian -r buster
# Template script checksum (SHA-1): 273c51343604eb85f7e294c8da0a5eb769d648f3
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux32

# Container specific configuration
#lxc.apparmor.profile = generated
lxc.apparmor.allow_nesting = 1
#lxc.start.auto = 1

# Network configuration
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = br0
lxc.net.0.name = debmatic
lxc.net.0.ipv4.address = 192.168.2.234/24
lxc.net.0.ipv4.gateway = 192.168.2.1
lxc.net.0.hwaddr = 00:19:3e:fe:bc:56
lxc.rootfs.path = dir:/var/lib/lxc/debmatic/rootfs
lxc.uts.name = debmatic

lxc.apparmor.profile = unconfined
lxc.hook.mount = /usr/share/debmatic/bin/lxc-start-hook.sh



Gruß
Jan

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von deimos » 12.04.2020, 18:40

Hi,

hast du im Host die notwendigen Kernel Module und Device Tree Overlays installiert und wird dort /dev/raw-uart angelegt?

Viele Grüße
Alex

Jasimo
Beiträge: 23
Registriert: 20.10.2019, 12:06
Hat sich bedankt: 6 Mal

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von Jasimo » 12.04.2020, 18:48

Hallo,
danke für Dein Hilfe

Code: Alles auswählen

sudo apt install pivccu-modules-raspberrypi
hab ich gemacht und unter /dev finde ich raw-uart
Meinst Du das?
Hab alles gemacht was hier geschrieben steht
https://github.com/alexreinert/debmatic ... berrypi.md

Gruß
Jan

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von deimos » 12.04.2020, 18:53

Hi,

ja, genau das meine ich. In dem Fall vermute ich stark, dass es irgendwo im Hookscript klemmt, ich hatte das primär mit Focus auf Proxmox entwickelt und vor allem getestet. Im Moment komme ich aber leider nicht dazu, mir das im Detail anzuschauen.

Viele Grüße
Alex

Jasimo
Beiträge: 23
Registriert: 20.10.2019, 12:06
Hat sich bedankt: 6 Mal

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von Jasimo » 12.04.2020, 18:59

ok,kein Problem. Bleibe erstmal bei pivccu. Danke trotzdem!
Gruß
Jan

Jasimo
Beiträge: 23
Registriert: 20.10.2019, 12:06
Hat sich bedankt: 6 Mal

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von Jasimo » 13.04.2020, 10:36

Hallo Alex,
noch eine Frage (falls Du die Zeit findest).

Ich baue ja hier alles gerade neu auf, auf Basis eines Raspberry Pi4 und LXC.
Die Frage die ich mir Stelle (und da hoffe ich auf Deine Erfahrung) ist, welche Kombination sinnvoll/sinnvoller ist.
-------
1. Pi4 Buster LXC Host (armhf), Fhem als Container (debian_armhf), Pivccu (ist ja auch lxc, jedoch nicht im Standardkontext), + weitere Container, wie Mosquitto, etc
2. Pi4 Buster LXC Host (armhf), Fhem als Container (debian_armhf), Debmatic als Container (debian_armhf), + weitere Container, wie Mosquitto, etc
-------
Ich tendiere halt zu 2. da hätte ich alles "sauber" unter LXC. Nur dazu bräuchte ich Deine Unterstützung um Debmatic in einem LXC (armhhf) Container an den start zu bekommen. Meinst Du es wäre möglich das zu realisieren? Vielleicht liegt es ja wirklich nur an dem Hookscript, falls ich was tun soll melde Dich bitte.

Gruß
Jan

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von deimos » 13.04.2020, 10:59

Hi,

ich persönlich würde zur 2 tendieren, aber das ist nicht allgemeingültig oder als Empfehlung zu sehen, sondern einfach persönliche Vorliebe.
Ich sehe da grundsätzlich kein Problem das zu realisieren, nur fehlt mir im Moment grade etwas die Zeit, Kinderbetreuung, Arbeit und Ehrenamt lässt grade nicht wirklich Zeit übrig.

Viele Grüße
Alex

Jasimo
Beiträge: 23
Registriert: 20.10.2019, 12:06
Hat sich bedankt: 6 Mal

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von Jasimo » 13.04.2020, 12:41

Hallo Alex,

ist es Dir möglich zu sagen wann Du die Zeit findest? Oder ist es nicht absehbar?

Gruß
Jan

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von deimos » 13.04.2020, 13:35

Hi,

ganz grob: Wann ist Corona in der aktuellen Extremform vorbei?

Viele Grüße
Alex

Jasimo
Beiträge: 23
Registriert: 20.10.2019, 12:06
Hat sich bedankt: 6 Mal

Re: Debmatic in LXC Container (kein Proxmox)

Beitrag von Jasimo » 13.04.2020, 13:38

:P ok, also dauerts noch ein wenig.
Gruß
Jan

Antworten

Zurück zu „debmatic“