(如果你想在一台主机上运行Proxmox的话,便可跳过本章节) 你可以通过把一个或者是多个Slave服务器添加到Proxmox master(server1.example.com)中来创建一个群集或者云计算。这样的集群允许你通过Proxmox的控制面板在远程主机上创建和管理虚拟机。你甚至可以把一个运行的虚拟机从一个主机中镜像到另一个上去。 下面我将为你展示怎样添加第二个主机,server2.example.com,并创建一个群集。 首先在server2.example.com上也安装Proxmox,安装过程和在server1上类似.当你进入网络设置部分时,设置主机名为server2.example.com,并且输入一个和master主机不同的IP地址(例如192.168.0.101) : 安装并重启系统以后,通过终端工具登陆(类似PuTTY)server1和server2 在server1上,运行下列命令: server1: pveca -c server1:~# pveca -c Generating public/private rsa key pair. Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ce:bf:a2:cd:69:23:e4:78:fc:05:db:fc:55:ef:52:1d root@server1 cluster master successfully created server1:~# 然后检查下集群的状态: server1: pveca -l server1:~# pveca -l CID—-IPADDRESS—-ROLE-STATE——–UPTIME—LOAD—-MEM—ROOT—DATA 1 : 192.168.0.100 M A 00:14 0.00 5% 1% 0% server1:~# 在server2上,输入: server2: pveca -a -h 192.168.0.100 server2:~# pveca -a -h 192.168.0.100 Generating public/private rsa key pair. Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ea:ad:21:fc:5d:9b:af:ab:fb:0d:72:72:c7:94:23:ca root@server2 The authenticity of host ’192.168.0.100 (192.168.0.100)’ can’t be established. RSA key fingerprint is 7c:17:8c:35:9c:be:60:6b:56:97:2a:0b:72:60:57:09. Are you sure you want to continue connecting (yes/no)? <– yes Warning: Permanently added ’192.168.0.100′ (RSA) to the list of known hosts. root@192.168.0.100′s password: <– root password of server1.example.com cluster node successfully created server2:~# 就是这样,你已经创建了一个集群。你可以检查下正在运行的主机:、 server2: pveca -l 应该在输出结果中显示两个主机的信息: server2:~# pveca -l CID—-IPADDRESS—-ROLE-STATE——–UPTIME—LOAD—-MEM—ROOT—DATA 1 : 192.168.0.100 M S 00:15 0.00 5% 1% 0% 2 : 192.168.0.101 N S 00:04 0.08 15% 1% 0% server2:~# 现在我们回到Proxmox的控制面(server2.example.com不需要控制面板!)并查看群集,在这里将会显示两台服务器: 4 添加设备模板