Proxmox

    Install

    Source

    /etc/apt/sources.list

    # PVE repository provided by proxmox.com, only for installation (this repo will stay on 3.1)
    
    deb http://download.proxmox.com/debian wheezy pve
    

    Notes:

    • Be sure you've the right distribution.
    • If you need console noVNC, using pve-no-subscription instead of pve.

    Add the key: wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -

    Update & install kernel & kernel header:

    apt-get update && apt-get dist-upgrade
    apt-get install pve-firmware pve-kernel-2.6.32-26-pve
    apt-get install pve-headers-2.6.32-26-pve
    
    • Make sure to select Proxmox VE Kernel on the boot loader (grub2) - Attention: Default is the 3.2 kernel
    • Reboot: Now restart the system using the Proxmox VE kernel.

    Check you've the new kernel after reboot, else do not continue

    uname -a
    Linux 2.6.32-26-pve ...
    

    Remove debian kernel

    apt-get remove linux-image-amd64 linux-image-3.2.0-4-amd64 linux-base
    

    Update boot

    update-grub
    

    Install proxmox packages

    apt-get install proxmox-ve-2.6.32 ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi bootlogd
    

    Note: if you've problem about ip during this step, it could be the ipv6 in /etc/hosts. Just comment the line.

    Hierarchy

    - Backups /var/lib/vz/dump
    - ISOs /var/lib/vz/template/iso
    - Images /var/lib/vz/images
    - Templates /var/lib/vz/template/cache
    

    Network

    Debian

    Network for Host Proxmox Server:

    Configure host - Proxmox 5

    /etc/network/interfaces

    auto vmbr0
    iface vmbr0 inet static
    	address 167.114.119.154
    	netmask 255.255.255.0
    	network 167.114.119.0
    	broadcast 167.114.119.255
    	gateway 167.114.119.254
    	bridge_ports eth0
    	bridge_stp off
    	bridge_fd 0
    

    Note: on debian, if you just have eth0, and no vmbr, you don't have bidge, so you cannot create CT/VM. Change eth0 by vmbr0 and add the missing line ((bridge_ports, bridge_stp, ...))

    Source

    Configure host - Proxmox 6

    /etc/network/interfaces:

    auto lo
    iface lo inet loopback
    
    iface eno1 inet manual
    
    auto vmbr0
    iface vmbr0 inet dhcp
    	bridge-ports eno1
    	bridge-stp off
    	bridge-fd 0
    
    root@ns5001492:~# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
        link/ether a4:bf:01:25:c5:b9 brd ff:ff:ff:ff:ff:ff
    3: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
        link/ether a4:bf:01:25:c5:ba brd ff:ff:ff:ff:ff:ff
    4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether a4:bf:01:25:c5:b9 brd ff:ff:ff:ff:ff:ff
        inet 192.95.32.147/24 brd 192.95.32.255 scope global dynamic vmbr0
           valid_lft 76354sec preferred_lft 76354sec
        inet6 fe80::a6bf:1ff:fe25:c5b9/64 scope link
           valid_lft forever preferred_lft forever
    

    Configure the VM

    Network for VM((not for container)):

    /etc/network/interfaces

    auto eth0
    iface eth0 inet static
    	address 198.50.217.216
    	netmask 255.255.255.0
    	broadcast 198.50.217.216
    	post-up route add 167.114.119.254 dev eth0
    	post-up route add default via 167.114.119.254
    	pre-down route del 167.114.119.254 dev eth0
    	pre-down route del default via 167.114.119.254
    

    Note:

    • 167.114.119.254 is the gateway of the host proxmox network.
    • gw is deprecated, now using via on latest debian/proxmox

    Network for container: will be automatically added by web-ui. Be carefull that ip has no virtual mac, else it does not work.

    Mounting

    See mounting