This is an old revision of the document!


Proxmox VE 3

After the installation the Proxmox webinterface is available at the following URL: https://ip-of-your-server:8006

Requirements

Proxmox VE is a solution to manage virtual server, therefore you need to have failover IPs available

The bridge mode is the preferred connection method, you have to activate the virtual MAC addresses for your failover IPs.

adresses mac virtuelles

Add templates

The basic installation does not include templates. To add some into your server connect to it with ssh, and upload the Proxmox applicances in the directory : /var/lib/vz/template/cache

If you want to create your VM by yourself from an ISO, you need to upload it in: /var/lib/vz/template/iso

Virtual machines configuration

Create a container

Click on the “create CT” button in the right corner on top of the page.

Select the template you need :

Give the ressources to the virtual machine :

Select bridged mode :

Leave the DNS form empty so the Host DNS configuration will be used :

Clic on “finish” to confirm the creation of your virtual machine :

Now select your virtual machine and clic on the Network tab and then Edit :

Fill the form “MAC address” with the virtual mac address corresponding to the IP failover you want to use with this machine.

Now you can start your virtual machine with the “start” button.

There are two ways to configure your virtual machines :

  • VNC console
  • Use the command *vzctl enter 100* from the host, 100 is the ID of the virtual machine to configure.

Configuration Debian / Ubuntu

Editez le fichier /etc/network/interfaces

auto eth0
iface eth0 inet static
    address ip-failover
    netmask 255.255.255.255
    broadcast ip-failover
    post-up route add ip-principale-de-votre-serveur.1 dev eth0
    post-up route add default gw ip-principale-de-votre-serveur.1
    post-down route del ip-principale-de-votre-serveur.1 dev eth0
    post-down route del default gw ip-principale-de-votre-serveur.1

Il faut ensuite éditer le fichier :

/etc/resolv.conf

et renseigner nos serveurs cache DNS

nameserver 62.210.16.6
nameserver 62.210.16.7

Taper ensuite “ifup eth0” pour activer le réseau de votre machine virtuelle.

Votre serveur est configuré et votre première machine virtuelle est fonctionnelle.

Configuration Redhat / CentOS

Edit the file /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR=ip-failover
GATEWAY=ip-principale-de-votre-serveur.1
ARP=yes
HWADDR=votre-mac-virtuelle

Edit the file /etc/sysconfig/network-scripts/route-eth0

ip-principale-de-votre-serveur.1 dev eth0
default via ip-principale-de-votre-serveur.1 dev eth0

Type after “ifup eth0” to active the network of the Virtual machine.

Your server is now configured and your virtual machine is ready.

Windows Server

Si le host a comme IP a.b.c.d, et la VM e.f.g.h, la passerelle a renseigner est a.b.c.1

Configuration with VENET (OpenVZ)

The configuration in VENET mode can only be easier.

In a first step, you have to edit the file /etc/vz/vz.conf as following (In SSH, directly on your Proxmox host) :

NEIGHBOUR_DEVS=eth0

You have to replace “detect” with “eth0”.
Restart your server.

Launch the creation of a CT (ConTainer - OpenVZ) now, then, during the configuration of the network, keep it in “VENET” mode (by default) and enter your failover IP:

Attention with this configuration it is required that your failover IP DOES NOT HAVE a virtual MAC

Finish now the creation of the container.
The VM should now be fully accessible.