KVM & OpenVZ Virtualization And Cloud Computing With Proxmox VE - Page 2
3 Creating A Cluster By Adding A Slave (server2.example.com) (Optional)
(You can skip this chapter if you want to run Proxmox on just one host.)
You can create a cluster or computing cloud by adding one or multiple slave servers to the Proxmox master (server1.example.com). Such a cloud allows you to create and manage virtual machines on remote hosts from the Proxmox control panel, and you can even do live migration of virtual machines from one host to another.
I will now show you how to add a second host, server2.example.com, and create a cluster.
Install Proxmox on server2.example.com, just as you did on server1. When you come to the networking section, fill in server2.example.com and make sure you use a different IP (e.g. 192.168.0.101):
After the installation has finished, and the system has successfully rebooted, log in on the command line (e.g. using PuTTY) on both server1 and server2.
On server1, run the following command:
server1:~# pveca -c
Then check the state of the cluster:
server1:~# pveca -l
On server2, do the following:
pveca -a -h 192.168.0.100
server2:~# pveca -a -h 192.168.0.100
That's it, you've just created a cluster. You can check that by running:
This should display both servers in the output:
server2:~# pveca -l
Now go back to the Proxmox control panel on http://192.168.0.100/ (you don't need the control panel on server2.example.com!) and go to Cluster, and it should list both servers:
4 Adding Appliance Templates
Before we can create OpenVZ containers, we must add at least one OS template to our system (for KVM guests, you can add ISO files, although this is not necessary - KVM guests can as well be installed directly from an OS CD or DVD).
Go to Appliance Templates. You will see two tabs, Local and Download:
On the Download tab, you will see a list of templates provided by the Proxmox project that you can download directly to the system...
... - at least theoretically - the problem is that the links are too old and not working anymore:
... and download the desired templates to your local hard drive:
On the Local tab, you can then upload the templates to the Proxmox master:
You can as well upload ISO images that can be used for the creation of KVM guests. To delete a template or ISO file, click on the red arrow in front of it and select Delete: