安装Proxmox

官方网站下载ISO镜像:https://www.proxmox.com/en/downloads/item/proxmox-ve-6-3-iso-installer

使用vmware workstation新建虚拟机

3-26.1.jpg

3-26.2.jpg

3-26.3.jpg

3-26.4.jpg

3-26.5.jpg

3-26.6.jpg

3-26.7.jpg

3-26.8.jpg

选择install Proxmox VE

install-Proxmox.jpg

选择【ok】

proxmox-1.png

选择【iagree】

proxmox-2.png

选择系统安装的磁盘,可以选择【option】分区,新手不建议

proxmox-3.png

修改时区,然后选择【Next】

proxmox-4.png

输入密码和邮箱,选择【Next】

proxmox-5.png

设置网络信息,选择【Next】

proxmox-6.png

确认信息,然后选择【install】

proxmox-7.png

安装完成后,选择【reboot】

proxmox-8.png

选择第一个选项引导

proxmox-9.png

输入用户名密码登录

proxmox-10.png

创建一个集群


root@shaonian:~# pvecm  create yunwei-cluster
Corosync Cluster Engine Authentication key generator.
Gathering 1024 bits for key from /dev/urandom.
Writing corosync key to /etc/corosync/authkey.
Writing corosync config to /etc/pve/corosync.conf
Restart corosync and cluster filesystem
root@shaonian:~# 

查看集群状态


root@shaonian:~# pvecm status

Quorum information


Date:             Mon May 20 16:23:08 2019
Quorum provider:  corosync_votequorum
Nodes:            1
Node ID:          0x00000001
Ring ID:          1/8
Quorate:          Yes

Votequorum information


Expected votes:   1
Highest expected: 1
Total votes:      1
Quorum:           1  
Flags:            Quorate 

Membership information


Nodeid      Votes Name
0x00000001          1 192.168.108.200 (local)
root@shaonian:~# 

查看集群节点


 root@shaonian:~# pvecm nodes

Membership information


Nodeid      Votes Name
     1          1 192.168.108.200 (local)

root@shaonian:~#

修改apt源


vi /etc/apt/source.list
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

更新apt源


root@shaonian:/etc/apt# apt-get -y update

安装net-tools


apt-get install net-tools -y

打开网页(注意是https),然后输入用户名密码(用户名root,密码是安装时设置的)

login-1.png

登录后

login-2.png