meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vm:proxmox [2020/09/23 11:04] niziak |
vm:proxmox [2021/11/09 07:39] (current) niziak |
||
---|---|---|---|
Line 4: | Line 4: | ||
* [[https://pve.proxmox.com/wiki/Main_Page|Wiki]] | * [[https://pve.proxmox.com/wiki/Main_Page|Wiki]] | ||
* [[https://www.proxmox.com/en/training/video-tutorials|Video Tutorials]] | * [[https://www.proxmox.com/en/training/video-tutorials|Video Tutorials]] | ||
+ | |||
+ | ===== Upgrading ===== | ||
+ | |||
+ | Always upgrade with ''dist-upgrade'' ! | ||
+ | <code bash>apt update && apt dist-upgrade</code> | ||
+ | |||
===== Installation ===== | ===== Installation ===== | ||
+ | * BIOS: | ||
+ | * Enable VT | ||
+ | * Enable IOMMU | ||
* Choose ZFS | * Choose ZFS | ||
* Leave some free space on HDD for swap partition | * Leave some free space on HDD for swap partition | ||
Line 14: | Line 23: | ||
* reboot | * reboot | ||
* manually configure VLAN network from console [[https://pve.proxmox.com/wiki/Network_Configuration#_vlan_802_1q|VLAN 802.1Q]] | * manually configure VLAN network from console [[https://pve.proxmox.com/wiki/Network_Configuration#_vlan_802_1q|VLAN 802.1Q]] | ||
+ | * check if it is still necessary. Perhaps enabling ''VLAN aware birdge'' from GUI is enough | ||
* https://ip_address:8006 | * https://ip_address:8006 | ||
Line 44: | Line 54: | ||
| | ||
==== post-installation tips ==== | ==== post-installation tips ==== | ||
+ | * set MAC address prefix: `Datacenter` -> `Options`. Locally Administered Address Ranges are: <code>x2-xx-xx-xx-xx-xx | ||
+ | x6-xx-xx-xx-xx-xx | ||
+ | xA-xx-xx-xx-xx-xx | ||
+ | xE-xx-xx-xx-xx-xx | ||
+ | </code> | ||
+ | * Speedup migrations to set unencrypted network traffic (in secured networks!): <file /etc/pve/datacenter.cfg> | ||
+ | migration: network=first_cluster_host_ip/22,type=insecure</file> | ||
* disable subscription repo:\\ <code bash>sed -i.bak 's|deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise|\#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise|' /etc/apt/sources.list.d/pve-enterprise.list</code> | * disable subscription repo:\\ <code bash>sed -i.bak 's|deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise|\#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise|' /etc/apt/sources.list.d/pve-enterprise.list</code> | ||
* add no subscription repo: <code bash>echo 'deb http://download.proxmox.com/debian/pve buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-sub.list</code> | * add no subscription repo: <code bash>echo 'deb http://download.proxmox.com/debian/pve buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-sub.list</code> | ||
Line 50: | Line 67: | ||
* <code bash>apt-get install dropbear busybox-static --no-install-recommends</code> | * <code bash>apt-get install dropbear busybox-static --no-install-recommends</code> | ||
* Update grub config: <file | /etc/default/grub> | * Update grub config: <file | /etc/default/grub> | ||
- | GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=4 mitigations=off panic=30 nomodeset textonly video=vesafb:off video=efifb:off" | + | GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=15 mitigations=off panic=30 nomodeset textonly video=vesafb:off video=efifb:off" |
</file><code bash>update-grub</code> | </file><code bash>update-grub</code> | ||
- | * SMART disk monitoring\\ <file | /etc/smard.conf> | + | * SMART disk monitoring\\ <file | /etc/smartd.conf> |
# Short 1AM Long Sat 2AM | # Short 1AM Long Sat 2AM | ||
DEVICESCAN -a -o on -S on -s (S/../.././01|L/../../6/02) -m root | DEVICESCAN -a -o on -S on -s (S/../.././01|L/../../6/02) -m root | ||
Line 66: | Line 83: | ||
</code> | </code> | ||
* Assign admin permissions: [[https://pve.proxmox.com/wiki/User_Management#_real_world_examples]] | * Assign admin permissions: [[https://pve.proxmox.com/wiki/User_Management#_real_world_examples]] | ||
+ | * For HDDs storage, limit Proxmox operation speed to 50000KiB: <code bash>pvesm set local --bwlimit default=50000</code> | ||
+ | * to remove limit: <code bash>pvesm set local --delete bwlimit</code> | ||
+ | * Enable IOMMU | ||
+ | * in `GRUB_CMDLINE_LINUX_DEFAULT` and add kernel parameter `intel_iommu=on` or `amd_iommu=on` | ||
+ | * <file /etc/modules> | ||
+ | vfio | ||
+ | vfio_iommu_type1 | ||
+ | vfio_pci | ||
+ | vfio_virqfd | ||
+ | </file> | ||