2019年10月31日 星期四

Proxmox PVE 6.x 安裝後基本設定

v=$(cut -f 3 -d " " /etc/apt/sources.list.d/pve-enterprise.list)

echo "deb http://download.proxmox.com/debian/pve $v pve-no-subscription">/etc/apt/sources.list.d/pve-no-subscription.list
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
apt-get update

apt-get install -y sudo ipmitool
apt-get install -y snmp snmpd libpve-apiclient-perl
apt-get install -y screen iperf busybox wget curl netcat kpartx

echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf
echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf
modprobe -r kvm_intel;modprobe kvm_intel
modprobe -r kvm_amd;modprobe kvm_amd

echo 'KERNEL=="sd[a-z]*", ENV[DEVTYPE]="disk", SYMLINK+="sata0/$env{ID_PATH_TAG}"'  >/etc/udev/rules.d/99-sata-hdd.rules

沒有留言: