PVE自訂安裝
PVE安裝完成後首次步驟:
nano /etc/apt/sources.list.d/pve-enterprise.list
註解掉下面這一行
# deb https://enterprise.proxmox.com/debian bullseye pve-enterprise
#######################################################################
nano /etc/apt/sources.list.d/pbs-enterprise.list
註解掉下面這一行
#deb https://enterprise.proxmox.com/debian/pbs bullseye pbs-enterprise
#######################################################################
nano /etc/apt/sources.list
增加:
deb http://download.proxmox.com/debian bullseye pve-no-subscription
deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
#######################################################################
選填:
deb http://download.proxmox.com/debian/pve bullseye pvetest
deb http://download.proxmox.com/debian/pbs bullseye pbstest
#######################################################################
台灣鏡像:
deb http://linux.csie.nttu.edu.tw/proxmox/debian/pve bullseye pve-no-subscription
#######################################################################
再來執行更新
apt-get update && apt-get dist-upgrade -y
pveam update
第一次安裝需要安裝程式:
apt install screen vnstat sysstat bpfcc-tools atop htop zlib1g-dev uuid-dev libuv1-dev liblz4-dev libjudy-dev libssl-dev libelf-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl cmake lm-sensors netcat git nethogs iotop qperf iperf3 subversion software-properties-common locate dkms lshw net-tools prometheus-node-exporter bmon mtr lnav python3 python3-pip ethtool
option: nfs-kernel-server samba samba-common darkice glances msr-tools cfdisk gddrescue wireguard
Proxmox VE option: libegl1 libgl1 openvswitch-switch pve-headers libpve-network-perl
#Glances:
curl -L https://bit.ly/glances | /bin/bash
pip install glances pip install --user 'glances[action,browser,cloud,cpuinfo,docker,export,folders,gpu,graph,ip,raid,snmp,web]'
#Netdata:
git clone https://github.com/firehol/netdata.git --depth=1
cd netdata
./netdata-installer.sh
#Serverstaus:
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
#bpytop:
pip3 install bpytop
Option:
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
echo "vfio" >> /etc/modules-load.d/modules.conf
echo "vfio_iommu_type1" >> /etc/modules-load.d/modules.conf
echo "vfio_pci" >> /etc/modules-load.d/modules.conf
echo "vfio_virqfd" >> /etc/modules-load.d/modules.conf
echo "overlay" >> /etc/modules-load.d/modules.conf
echo "naufs" >> /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
echo "vm.swappiness = 10" >> /etc/sysctl.conf
echo "vm.overcommit_memory=2" >> /etc/sysctl.conf
echo "vm.overcommit_ratio=95" >> /etc/sysctl.conf
echo "fs.inotify.max_user_watches = 10240" >> /etc/sysctl.conf
echo "fs.inotify.max_user_instances = 10240" >> /etc/sysctl.conf
echo "net.ipv4.neigh.default.gc_thresh1 = 512" >> /etc/sysctl.conf
echo "net.ipv4.neigh.default.gc_thresh2 = 2048" >> /etc/sysctl.conf
echo "net.ipv4.neigh.default.gc_thresh3 = 4096" >> /etc/sysctl.conf
sysctl -p
#echo "wireguard" >> /etc/modules-load.d/modules.conf
nano /etc/default/grub
intel_iommu=on amd_iommu=on iommu=pt pcie_acs_override=downstream rootdelay=20
update-grub
nano /etc/kernel/cmdline
root=ZFS=rpool/ROOT/pve-1 boot=zfs intel_iommu=on amd_iommu=on net.ifnames=0 biosdevname=0
pve-efiboot-tool refresh
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
update-initramfs -u -k all
阅读剩余
THE END