Russel053/ 17 11 月, 2017/ Proxmox VE

PVE安裝完成後首次步驟:

nano /etc/apt/sources.list.d/pve-enterprise.list
註解掉下面這一行
# deb https://enterprise.proxmox.com/debian buster pve-enterprise
#######################################################################
nano /etc/apt/sources.list.d/pbs-enterprise.list
註解掉下面這一行
#deb https://enterprise.proxmox.com/debian/pbs buster pbs-enterprise
#######################################################################
nano /etc/apt/sources.list
增加:
deb http://download.proxmox.com/debian buster pve-no-subscription
deb http://download.proxmox.com/debian/pbs buster pbs-no-subscription
#######################################################################
選填:
deb http://download.proxmox.com/debian/pve buster pvetest
deb http://download.proxmox.com/debian/pbs buster pbstest
#######################################################################
台灣鏡像:
deb http://linux.csie.nttu.edu.tw/proxmox/debian/pve buster pve-no-subscription
#######################################################################
再來執行更新
apt-get update && apt-get upgrade -y
pveam update

Proxmox 6:

deb http://ftp.tw.debian.org/debian buster main contrib
deb http://download.proxmox.com/debian/pve buster pvetest
deb http://ftp.tw.debian.org/debian buster-updates main contrib
deb http://download.proxmox.com/debian buster pve-no-subscription
# security updates
deb http://security.debian.org buster/updates main contrib

GPG Key Fail:

wget http://download.proxmox.com/debian/key.asc
apt-key add key.asc

遇到 no such method ‘PVE::CLI::pveam::run_cli’ 解法:

apt dist-upgrade

第一次安裝需要安裝程式:

apt install screen vnstat sysstat atop htop python-glade2 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 python cmake python-yaml python-mysqldb python-psycopg2 nodejs lm-sensors netcat git sudo nethogs iotop subversion software-properties-common locate debhelper autotools-dev dkms quilt python-libxml2 swig dpatch graphviz chrpath lshw net-tools flex bison tcl tk gfortran prometheus-node-exporter ifupdown2 bmon mtr lnav python3 python3-pip

選填: nfs-kernel-server samba samba-common openvswitch-switch pve-headers libpve-network-perl wireguard squid-deb-proxy-client darkice

Glances:
curl -L https://bit.ly/glances | /bin/bash

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

更新之後關閉email通知:
nano /etc/netdata/health_alarm_notify.conf
nano /usr/lib/netdata/conf.d/health_alarm_notify.conf
SEND_EMAIL:"NO"

nano /etc/netdata/netdata.conf 禁用netdata中的所有警報
[health]
  enabled = no
[registry]
         enabled = no

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 "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 "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
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
Share this Post