How to set up a virtual KVM/VNC console on your OVH server [[https://trick77.com/how-to-set-up-virtual-kvm-vnc-console-ovh-server]]
==== Basic Install ====
Remember to set PTR record for IP4 and IP6
wget http://ftp.de.debian.org/debian/pool/main/c/check-mk/check-mk-agent_1.4.0p9-1_amd64.deb
dpkg -i check-mk-agent_1.4.0p9-1_amd64.deb
Install packages
apt-get install mosh fail2ban vim sudo git xinetd smartmontools mailutils bash-completion
==== User Management ====
[[https://pve.proxmox.com/wiki/User_Management]]
useradd jnoer
passwd jnoer
groupadd watchman
usermod -a -G watchman jnoer
Change ''/etc/pve/user.cfg''
user:jnoer@pam:1:0:Jesper:Noer:jesper@noerit.gl:::
user:giver@pam:1:0:Anders:Giversen:giversen@giver.dk:::
user:root@pam:1:0:::jesper@noerit.gl
acl:1:/:jnoer@pam,giver@pam:Administrator:
==== SMART ====
SMART [[https://pve.proxmox.com/wiki/Disk_Health_Email_Alerts]]
Change ''/etc/default/smartmontools'' with this code
enable_smart="/dev/sda /dev/sdb"
start_smartd=yes
smartd_opts="--interval=10800"
Comment other lines and add this in ''/etc/smartd.conf''
/dev/sda -d sat -s (S/../.././20|L/../../5/03) -m jesper@noerit.gl
/dev/sdb -d sat -s (S/../.././20|L/../../5/03) -m jesper@noerit.gl
# SEND TEST Mail
/dev/sda -m jesper@noerit.gl -M test
==== Certificate ====
This is good for 5.2
[[https://pve.proxmox.com/wiki/Certificate_Management]]
acme account register default jesper@noerit.gl
pvenode config set --acme domains=example.invalid
pvenode acme cert order
This is the older version
git clone https://github.com/Neilpang/acme.sh.git acme.sh-master
mkdir /etc/pve/.le
cd /root/acme.sh-master
./acme.sh --install --accountconf /etc/pve/.le/account.conf --accountkey /etc/pve/.le/account.key --accountemail "jesper@noerit.gl"
acme.sh --issue --standalone --keypath /etc/pve/local/pveproxy-ssl.key --fullchainpath /etc/pve/local/pveproxy-ssl.pem --reloadcmd "systemctl restart pveproxy" -d pve2.hosting.gl
==== ZFS ====
[[https://pve.proxmox.com/wiki/ZFS:_Tips_and_Tricks]]
Remember to change ''xattr'' on ZFS
zfs set xattr=sa (pool)
Limit the amount of memory that ZFS can use as cache.
Create file ''/etc/modprobe.d/zfs.conf'' if it doesn't exists
# ZFS tuning for a proxmox machine that reserves 8GB for ZFS
# Don't let ZFS use less than 4GB and more than 8GB
options zfs zfs_arc_min=4294967296
options zfs zfs_arc_max=8589934592
# disabling prefetch is no longer required
options zfs l2arc_noprefetch=0