General installation tips

Proxmox - general instalation Tips

This instructions are valid for proxmox 7.4

0 - DNS

Any of your favorite

1
2
3
4
5
8.8.8.8
8.8.4.4
1.1.1.1
1.0.0.1
9.9.9.9

1 - Laptop install - disable lid

vi /etc/systemd/logind.conf

1
2
3
4
5
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

systemctl restart systemd-logind

3 - Enable community repo

First - disable commercial repo

1
2
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update

Second - add community repo

1
2
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update

Third - remove nag screen

1
2
3
4
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
apt-get --reinstall install proxmox-widget-toolkit

apt-get upgrade -y

4 - Enable IOMMU

If you ever want to give specific hardware to particular VM using hardware - this is the way.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# https://pve.proxmox.com/wiki/Pci_passthrough#Enable_the_IOMMU
vi /etc/default/grub
# modify:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:off,efifb:off"
update-grub
proxmox-boot-tool refresh
vi /etc/modules 
# add:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

On old intels (not i5-3240M):

1
2
3
4
5
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf

shutdown -r now
dmesg | grep -e DMAR -e IOMMU