Files

73 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

cd /usr/share/javascript/proxmox-widget-toolkit
cp proxmoxlib.js proxmoxlib.js.bak
nano proxmoxlib.js
CTRL-W (find): if (res ==
Hit return and this should take you to a line like this (backspace it out)
if (res === null || res === undefined || !res || res
.data.status.toLowerCase() !== 'active') {
Replace the line with this
if (false) {
systemctl daemon-reload
# UPDATE HOST > REPOSITORIES - DISABLE BOTH ENTERPRISE REPOSITORIES & ADD pve-no-subscription
# DISABLE ROOT SSH REMOTE LOGIN - see 02-ssh-help.txt
# DPDK requires hugepages. I reserved 4 * 1GB hugepages on the host. ENABLE INTEL IOMMU and Hugepages
vi /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt default_hugepagesz=1G hugepagesz=1G hugepages=4"
I use the `vfio-pci` driver for DPDK, so SR-IOV should be enabled on the host. Other drivers like `igb_uio` or `uio_pci_generic` don't need this IOMMU. For more information about Linux drivers for DPDK, see https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html.
DPDK requires hugepages. I reserved 4 * 1GB hugepages on the host.
- Make sure IOMMU and SR-IOV are enabled in BIOS.
- Edit /etc/default/grub, on the line GRUB_CMDLINE_LINUX_DEFAULT, add `intel_iommu=on iommu=pt default_hugepagesz=1G hugepagesz=1G hugepages=4`.
- Apply the change by running `grub-mkconfig -o /boot/grub/grub.cfg`.
update-grub
update-initramfs -u
## Auto-load `vfio-pci` on boot
Run `echo vfio-pci >> /etc/modules-load.d/modules.conf`.
## Reboot and verification
- After rebooting, check if IOMMU is functioning by reading driver message:
```sh
dmesg | grep -e DMAR -e IOMMU
```
- Check if hugepages are reserved:
```sh
apt install libhugetlbfs-bin
hugeadm --explain
```
https://www.xda-developers.com/these-6-scripts-are-a-godsend-for-my-proxmox-home-lab/
_____________________________________________________
# DISABLE NAG & CHANGE REPOSITORIES TO COMMUNITY
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"
_____________________________________________________
Proxmox Clean Orphaned LVM
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/clean-orphaned-lvm.sh)"
_____________________________________________________
PVE Privilege Converter
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/pve-privilege-converter.sh)"
_____________________________________________________
Proxmox VE Cron LXC Updater
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/cron-update-lxcs.sh)"
_____________________________________________________
Proxmox Update Repositories
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/update-repo.sh)"
_____________________________________________________
Proxmox VE LXC IP-Tag
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-lxc-iptag.sh)"
_____________________________________________________