Proxmox – Install Proxmox

Partitioning

First, we need to choose partitioning.

System

Order: 1
Type: primary
File system: ext4
Mount: /
Size: between 15 GB and 50 GB

VZ

Order: 2
Type: primary
File system: ext4
Mount: /var/lib/vz
Size: remaining space

Swap

Order: 3
Type: primary
File system: swap
Mount : swap
Size: 2 x memory size, approximatively 4Go

Storage

Order: 4
Type: lv
File system: ext4
Mount: /var/lib/vz/storage
Size: about 1/5 of total size, don’t be stingy

Freespace

Order: 5
Type: lv
File system: ext4
Mount: /var/freespace
Size: 10 GB

Removing Freespace

Delete freespace partition:

[host] # umount /var/freespace
[host] # lvremove /dev/pve/freespace

Remove from fstab:

[host] # nano /etc/fstab

Comment

# /dev/pve/freespace /var/lib/vz/freespace      ext3    defaults        1       2

Setup

# apt-get update

If you got the following error “E: Some index files failed to download. They have been ignored, or old ones used instead.”, you can disable this repo by commenting out the following line

# nano /etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian wheezy pve-enterprise

# apt-get upgrade

Network

Once installed, we need to setup Network

Firewall autorisation

Add this rule

[host-node] # iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE

Enable Ip forwarding

Enable Ip forwarding with this command

[host-node] # echo 1 > /proc/sys/net/ipv4/ip_forward

Activate ip forward on reboot

Edit sysctl.conf to activate ip forward on reboot:

[host-node] # nano /etc/sysctl.conf

uncomment

net.ipv4.ip_forward = 1

restart sysctl

# sysctl -p /etc/sysctl.conf

Conclusion

You can now install a container

Links

http://www.ctrlaltsupp.fr/2011/08/13/installer-proxmox-dans-les-regles/

admin has written 5 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>