Notes to Self

Alex Sokolsky's Notes on Computers and Programming

View on GitHub

ProxMox HOWTO

Sources

Update repositories

You will get an error during the update:

Err:4 https://enterprise.proxmox.com/debian/pve buster InRelease
  401  Unauthorized [IP: 144.217.225.162 443]

It comes from /etc/apt/sources.list.d/pve-enterprise.list:

root@pve02:/etc/apt/sources.list.d# cat pve-enterprise.list
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

You can disable it in the GUI and add there ‘No Subscription’ option. Alternatively, change it to (mind version specific buser below):

root@pve02:/etc/apt/sources.list.d# cat pve-enterprise.list
# deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

And then:

root@pve02:/etc/apt# cat sources.list
deb http://ftp.us.debian.org/debian buster main contrib

deb http://ftp.us.debian.org/debian buster-updates main contrib

# security updates
deb http://security.debian.org buster/updates main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

Install usefull tools

# apt install ifupdown2 silversearcher-ag emacs-nox htop lm-sensors hddtemp nvme-cli

Configure lm-sensors

sensors-detect

And finally:

watch -n 1 sensors

or just

root@pve02:/etc/apt/sources.list.d# sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +36.0°C  (high = +94.0°C, crit = +100.0°C)
Core 0:        +35.0°C  (high = +94.0°C, crit = +100.0°C)
Core 1:        +35.0°C  (high = +94.0°C, crit = +100.0°C)
Core 2:        +36.0°C  (high = +94.0°C, crit = +100.0°C)
Core 3:        +34.0°C  (high = +94.0°C, crit = +100.0°C)
Core 4:        +32.0°C  (high = +94.0°C, crit = +100.0°C)
Core 5:        +32.0°C  (high = +94.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +27.8°C  (crit = +119.0°C)

pch_cannonlake-virtual-0
Adapter: Virtual device
temp1:        +44.0°C

PCI Pass Through Config

Involves:

See gpu-passthrough.md.

Grub

in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt intel_pstate=disable"

where intel_pstate=disable needed to manage power.

Then:

# update-grub

VFIO Modules

Edit /etc/modules:

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

Add the server to Datacenter/Cluster

Make sure the host has:

Data Center Storage

Add connection to the NFS server: Datacenter\Storage Add NFS

Schedule Backups

Datacenter\Backup, Add

Cron

/etc/cron.daily

smart

#!/bin/sh
/usr/sbin/smartctl -t long /dev/sda
/usr/sbin/smartctl -t long /dev/sdb

/etc/cron.weekly

fstrim

#!/bin/sh
# trim all the mounted file systems which support it
/usr/sbin/fstrim --all || true

More