Proxmox SWAP Optimieren

Quelle: technik22.de

Um nun die SSD etwas zu schonen und auch die Geschwindigkeit etwas zu verbessern habe ich mit dem folgenden Befehl den SWAP so eingestellt das dieser erst kurz bevor der Arbeitsspeicher „Voll“ ist aktiviert wird!
Das könnt Ihr im Betrieb machen, öffnet die Shell, dann…

sysctl vm.swappiness=0
swapoff -a
swapon -a

Und wenn das nicht passt, dann einfach so

sysctl vm.swappiness=1
swapoff -a
swapon -a

wieder zurück.

Problem with running Virtual DSM on Proxmox LXC Docker installation

Quelle: github.com

For guys would like to run in lxc contianers(i failed to run in vm in proxmox):

  1. alter the lxc container conf
# in pve host
vim /etc/pve/lxc/YOUR_CONTAINER_ID.conf

add these lines at the end

lxc.cgroup2.devices.allow: c 10:232 rwm
lxc.mount.entry: /dev/kvm dev/kvm rw bind,create=file
lxc.cgroup.devices.allow: c 10:200 rwm # for compatibility
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
  1. restart your lxc container
  2. restart the docker container