#在每个节点上都编辑host文件
nano /etc/hosts
如下:
#----------------------------------------------------------------------------
127.0.0.1 localhost.localdomain localhost
10.60.0.101 pve101 pve101.xxx.yyy.cn
10.60.0.102 pve102 pve102.xxx.yyy.cn
10.60.0.103 pve103 pve103.xxx.yyy.cn
# add by suwill@2020-07-08
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
#----------------------------------------------------------------------------
在pve101节点上ping其他两个节点进行验证:
root@pve101:~# ping pve102
PING pve102 (10.60.0.102) 56(84) bytes of data.
64 bytes from pve102 (10.60.0.102): icmp_seq=1 ttl=64 time=0.335 ms
64 bytes from pve102 (10.60.0.102): icmp_seq=2 ttl=64 time=0.394 ms
64 bytes from pve102 (10.60.0.102): icmp_seq=3 ttl=64 time=0.306 ms
64 bytes from pve102 (10.60.0.102): icmp_seq=4 ttl=64 time=0.516 ms
^C
--- pve102 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 70ms
rtt min/avg/max/mdev = 0.306/0.387/0.516/0.084 ms
root@pve101:~# ping pve103
PING pve103 (10.60.0.103) 56(84) bytes of data.
64 bytes from pve103 (10.60.0.103): icmp_seq=1 ttl=64 time=0.426 ms
64 bytes from pve103 (10.60.0.103): icmp_seq=2 ttl=64 time=0.374 ms
64 bytes from pve103 (10.60.0.103): icmp_seq=3 ttl=64 time=0.336 ms
64 bytes from pve103 (10.60.0.103): icmp_seq=4 ttl=64 time=1.15 ms
^C
--- pve103 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 75ms
rtt min/avg/max/mdev = 0.336/0.571/1.151/0.337 ms
root@pve101:~#
更换源,此处先将/etc/apt/sources.list.d/pve-enterprise.list中唯一的一行注释掉,或者直接mv此文件
#注释掉
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
#mv改名
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
更换国内源:
nano /etc/apt/sources.list
如下:
#----------------------------------------------------------------------------
#deb http://ftp.debian.org/debian buster main contrib #comment by suwill@2020-07-08
#deb http://ftp.debian.org/debian buster-updates main contrib #comment by suwill@2020-07-08
# security updates
#deb http://security.debian.org buster/updates main contrib #comment by suwill@2020-07-08
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription #中科大pve源
deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main #中科大ceph源
#add by suwill@2020-07-08
#----------------------------------------------------------------------------
更新系统和软件包
apt update && apt upgrade -y && apt dist-upgrade
更新完软件包之后,建议使用vmware做个快照
本项目使用ceph存储,故在源中增加了中科大的pve和ceph源
pveceph install
本文地址:https://blog.csdn.net/u013331811/article/details/107331419
如对本文有疑问, 点击进行留言回复!!
从零开始的PYTHON3摸鱼(二)windows如何运行python,编辑器选择
网友评论