当前位置: 移动技术网 > IT编程>脚本编程>Python > vmware安装ProxmoxVE记录

vmware安装ProxmoxVE记录

2020年07月15日  | 移动技术网IT编程  | 我要评论

创建服务器

 在VMWARE中新建虚拟机

下一步

默认,下一步 

选择安装镜像文件

选择操作系统安装镜像 

选择Linux-Debian8.X

为虚拟机指定内存 

本级测试模拟生产环境,选择桥接网络

 为模拟线上环境,此处选择“桥接网络”

新建虚拟磁盘

 新建虚拟磁盘(scsi20G)并指定保存位置

自定义硬件

自定义硬件 

CPU勾选支持虚拟化选项

启用CPU的虚拟化选项 

移除不必要的设备

移除非必要设备 

完成

虚拟机创建完成

启动虚拟机,从光盘镜像引导,出现Proxmox安装界面

 回车选择“Install Proxmox VE

 点击“I agree”同意

 选择将PVE安装到/dev/sda,点击“Next”

 在Contry后面的文本框里输入China,下方TimeZone会自动选择Asia/ShangHai,点击“Next”

输入宿主机的root密码和管理员Email地址,点击“Next”

 配置HostName和IP地址,其中HostName必须使用name.host.xx的FQDN格式,只输入pve101会报错,点击Next

出现 Summary 供确认,确认无误后点击“Install”

约5分钟左右(视机器性能决定),出现安装成功的提示,点击“Reboot”按钮。

重启后,出现PVE的命令行“控制台”,提示使用https://10.60.0.101:8006进行web管理。

系统安装完成后,进行有关配置

 

#在每个节点上都编辑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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网