[SOLVED] LX Container: Screen oder nohup werden nach ssh Logout beendet.

dragnod0

Member
Jul 2, 2019
11
0
6
43
Hallo zusammen,

ich habe mir einen kleinen LXC mit einem Debian erstellt um damit ab und zu mal ein paar Videos per Handbrake-CLI oder FFMPEG umwandeln zu können.
Das funktioniert auch wunderbar. Allerdings wird eine Screen oder nohup Sitzung beendet sobald die SSH Verbindung geschlossen wird.
Von Screen habe ich mich vorher natürlich "detatched".

Ich vermute mal das es nichts mit dem Gast BS zu tun hat weil das Verhalten nicht auftritt wenn beides auf einem Linux ausgeführt wird das nativ auf einem Rechner läuft. Selbst auf dem Host (Proxmox) funktioniert es. Nur eben nicht in einem LXC. Es handelt sich im übrigen um einen privilegierten Container.

Hat jemand einen Tipp für mich? Google ist nicht wirklich hilfreich.

LG
dragnod0
 
Last edited:
Servus,

nachstellen kann ich das nicht :). Habe "Debian GNU/Linux 11 (bullseye)" als container bei mir laufen auf Proxmox 7.2-7 und eine screen session laufen. Ich kann die screen session nach ssh disconnect & reconnect wieder öffnen. Sonst sollte ich auch das gleiche setup haben:

Code:
root@ella:/home/shrdlicka# pct config 116
arch: amd64
cores: 1
features: nesting=1
hostname: debian-screen
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.16.1,hwaddr=E2:84:0E:92:88:EC,ip=192.168.18.61/20,type=veth
ostype: debian
rootfs: zfs:subvol-116-disk-0,size=8G
swap: 512
unprivileged: 1

Ich hab zum testen watch date laufen das läuft brav weiter :).
 
hmm, seltsam.
das hier ist meine Config:
Code:
root@pve:~# pct config 104
arch: amd64
cores: 16
features: mount=cifs
hostname: transcoding
memory: 1024
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=F2:8E:D1:52:A5:38,ip=192.168.1.15/24,type=veth
onboot: 1
ostype: debian
rootfs: Container03:vm-104-disk-0,size=8G
swap: 512

Ich teste das mal in einem neuen container.
 
Es ist das Nesting! Mit aktiviertem nesting geht es!
Mir war nicht bewusst das das feature auch die Funktion von Hintergrundprozessen beeinflusst.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!