介绍
新安装Debian 9 安装Proxmox 5.
安装
首先。创建存储库与Proxmox相关的包:
- 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
更新:
- apt update –y
- apt dist–upgrade –y
安装Proxmox 5的必要软件包 兵删除一些过时的包:
- apt install proxmox–ve postfix open–iscsi –y
- apt remove os–prober –y
更新Debian内核和grub,以便正确重启操作系统:
- apt remove linux–image–amd64 linux–image–4.9.0–3–amd64 –y
- update–grub
删除并禁用常用漏洞的rcpbind服务:
- apt–get remove rpcbind
- iptables –A INPUT –p udp –s 192.168.0.0/24 —dport 111 –j ACCEPT
- iptables –A INPUT –p udp –s 127.0.0.1 —dport 111 –j ACCEPT
- iptables –A INPUT –p udp —dport 111 –j DROP
- echo –e “rpcbind: ALL“ >> /etc/hosts.deny
- systemctl disable rpcbind.service
- service rpcbind stop
重新启动服务器:
- reboot
之后,您可以将.iso文件下载到 /var/lib/vz/template/iso 文件夹
來源:https://affloc.com/396.html