1.準備工作:
最小化安裝Debian 9
需要安裝的軟件:ssh
配置好ip地址:192.168.1.10
允許root遠程登錄:
vim /etc/ssh/sshd_config
PermitRootLogin yes
修改hosts映射:
vim /etc/hosts
192.168.1.10 debian-pve
vim /etc/hostname
debian-pve
這些都很簡單 ,就不再敘述!
2.添加pve的軟件源:
vim /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb http://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian/ stretch-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security stretch/updates main contrib non-free
#另外的源
echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
#添加密匙
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
#更新 重啓
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo reboot
3.安裝pve組件:
sudo apt install proxmox-ve postfix open-iscsi -y
sudo apt-get install ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi bootlogd -y
#安裝完成 重啓
reboot
#然後就可以使用瀏覽器登錄了:https:192.168.1.10:8006