Skip to main content

Proxmox Fixes and Workarounds

XMPP Letsencrypt Container

Create Certificate Folder

mkdir /var/www/ssl/xmpp

get Letsencrypt Certificate

certbot certonly --webroot -w /var/www/ssl/xmpp --email mail@domain.tld -d xmpp.domain.tld -d conference.domain.tld -d pubsub.domain.tld -d upload.domain.tld -d domain.tld

Set Mountpoint from Host to Container

Assuming your XMPP Container ID is 100:

pct set 100 -mp0 /etc/letsencrypt/live,mp=/etc/letsencrypt/live
pct set 100 -mp1 /etc/letsencrypt/archive,mp=/etc/letsencrypt/archive

Fix Locales Debian 10 LXC

Enter the following Commands:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

Docker under LXC

Use unprivileged container in Options set keyctl=1, nested=1

Execute on Host:

systemctl edit containerd.service

Paste the following:

[Service] ExecStartPre=

.img to proxmox image (.qcow2)

move disk as qcow2 to external Storage sshfs to storage

qemu-img convert -f raw -O qcow2 image.img vm-104-disk.qcow2
  • remove old qcow2 image
  • remane new qcow2 to old imagename
  • move disk to local storage

snmpd Monitoring fix

# This file controls the activity of snmpd and snmptrapd

# MIB directories. /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs 

# snmpd control (yes means start daemon).

# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/'

# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.

# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/'

# create symlink on Debian legacy location to official RFC path