installing proxmox EQ6 hetzner softwareRAID
THIS IS NOT SUPPORTED BY THE PROXMOX TEAM
USE AT YOUR OWN RISK!
The system will be running the development Openvz (with KVM) Kernel: Linux 2.6.32-belyayev.1 #1 SMP
Boot with the rescue system
# installimage
debian 64 minimal
configure disks (sizes and partitions are an example):
HARD DISK DRIVE(S):
DRIVE1 /dev/sda
DRIVE2 /dev/sdb
SOFTWARE RAID:
SWRAID 1
SWRAIDLEVEL 1
BOOTLOADER grub
HOSTNAME proxmox or something else
PART /boot ext3 4G
PART lvm vg0 424G
PART lvm vg1 all
LV vg0 root / ext3 100G (some extra space to store temp)
LV vg0 swap swap swap 24G (double the size of the RAM)
LV vg0 backup /backup ext3 300G (to store backups)
LV vg1 vz /var/lib/vz ext3 all (the space for the vm disks and vz data)
control F10, save, and wait until the process is finished…
reboot
Change login password and update packages
# passwd
# apt-get update
# apt-get upgrade
Chech partitions with
#df
Install Proxmox VE repodata
http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Lenny
# nano /etc/apt/sources.list
add:
# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian lenny pve
# apt-get update
# apt-get upgrade
Install Proxmox VE and 2.6.32 kernel for kvm modules
http://pve.proxmox.com/wiki/Proxmox_VE_Kernel
# apt-get install proxmox-ve-2.6.32
Install openvz kernel 2.6.32 to include openvz, kvm will be with included with the modules because proxmox installed it
http://wiki.openvz.org/Install_kernel_from_rpm_on_debian
# apt-get install alien fakeroot
# wget http://download.openvz.org/kernel/b...elyayev.1/kernel-2.6.32-belyayev.1.x86_64.rpm
# fakeroot alien -k kernel-2.6.32-belyayev.1.x86_64.rpm (takes a long time!!)
# dpkg -i kernel_2.6.32-belyayev.1_amd64.deb
# update-initramfs -c -k 2.6.32-belyayev.1
# update-grub
# reboot
Check if kernel is running
# uname -a
Linux proxmox2 2.6.32-belyayev.1 #1 SMP Thu May 27 20:22:10 MSD 2010 x86_64 GNU/Linux
proxmox2:~# lsmod
Module Size Used by
kvm_intel 41024 0
kvm 245345 1 kvm_intel
…
vzrst 114302 0
vzcpt 100441 0
vzdquota 39661 0 [permanent]
vzmon 19041 4 vzethdev,vznetdev,vzrst,vzcpt
vzdev 2339 4 vzethdev,vznetdev,vzdquota,vzmon
Add vmbr0/vmbr1
# nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address MAIN IP
(broadcast IP)
netmask 255.255.255.192
gateway gateway IP
post-up iptables-restore < /etc/iptables.up.rules
auto vmbr0
iface vmbr0 inet static
address First additional IP
netmask 255.255.255.192
gateway IP of ETH0
bridge_ports none
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address first IP of additional subnet
netmask netmask of additional subnet
gateway IP of ETH0
bridge_ports none
bridge_stp off
bridge_fd 0
change sysctl settings (hetzner eth0 policy)
# nano /etc/sysctl.conf
# these values are necessary
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 1
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
to check the values
# systcl -p
restart networking
# /etc/init.d/networking restart
or just reboot
Having mdadm send emails when raid has a problem
#nano /etc/mdadm/mdadm.conf
add
MAILADDR mailadres
# /etc/init.d/mdadm restart
Login to webinterface
change DNS to ok settings
Set time zone
Add admin emailadres
change keyboard layout and language
check if all bridges exist (ping them…)
add backup target (local directory) (optional)
Create a KVM/VZ test machine to see if everything is ok.
Download some appliance templates using the webinterface
Upload an install disc to test KVM
Adding precreated openvz templates:
# cd /var/lib/vz/template/cache
# wget "template URL"
change the name according to the templates proxmox uses.
You're ready, the system's running!
Feel free to adapt these instructions to your own needs.
If someone finds a mistake, please reply to this thread and comment on the process.
If there's a better way of doing this, please let me know and I'll correct the instructions.
Please remember as previously said this setup is not supported by the proxmox team and future updates to the system may break it.
We are not responsible for data loss!
Kindly regards
Ellen Verheyen
2E Projects bvba
p.s. a big thank you to chronos for providing the instructions to install the alien kernel.
THIS IS NOT SUPPORTED BY THE PROXMOX TEAM
USE AT YOUR OWN RISK!
The system will be running the development Openvz (with KVM) Kernel: Linux 2.6.32-belyayev.1 #1 SMP
Boot with the rescue system
# installimage
debian 64 minimal
configure disks (sizes and partitions are an example):
HARD DISK DRIVE(S):
DRIVE1 /dev/sda
DRIVE2 /dev/sdb
SOFTWARE RAID:
SWRAID 1
SWRAIDLEVEL 1
BOOTLOADER grub
HOSTNAME proxmox or something else
PART /boot ext3 4G
PART lvm vg0 424G
PART lvm vg1 all
LV vg0 root / ext3 100G (some extra space to store temp)
LV vg0 swap swap swap 24G (double the size of the RAM)
LV vg0 backup /backup ext3 300G (to store backups)
LV vg1 vz /var/lib/vz ext3 all (the space for the vm disks and vz data)
control F10, save, and wait until the process is finished…
reboot
Change login password and update packages
# passwd
# apt-get update
# apt-get upgrade
Chech partitions with
#df
Install Proxmox VE repodata
http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Lenny
# nano /etc/apt/sources.list
add:
# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian lenny pve
# apt-get update
# apt-get upgrade
Install Proxmox VE and 2.6.32 kernel for kvm modules
http://pve.proxmox.com/wiki/Proxmox_VE_Kernel
# apt-get install proxmox-ve-2.6.32
Install openvz kernel 2.6.32 to include openvz, kvm will be with included with the modules because proxmox installed it
http://wiki.openvz.org/Install_kernel_from_rpm_on_debian
# apt-get install alien fakeroot
# wget http://download.openvz.org/kernel/b...elyayev.1/kernel-2.6.32-belyayev.1.x86_64.rpm
# fakeroot alien -k kernel-2.6.32-belyayev.1.x86_64.rpm (takes a long time!!)
# dpkg -i kernel_2.6.32-belyayev.1_amd64.deb
# update-initramfs -c -k 2.6.32-belyayev.1
# update-grub
# reboot
Check if kernel is running
# uname -a
Linux proxmox2 2.6.32-belyayev.1 #1 SMP Thu May 27 20:22:10 MSD 2010 x86_64 GNU/Linux
proxmox2:~# lsmod
Module Size Used by
kvm_intel 41024 0
kvm 245345 1 kvm_intel
…
vzrst 114302 0
vzcpt 100441 0
vzdquota 39661 0 [permanent]
vzmon 19041 4 vzethdev,vznetdev,vzrst,vzcpt
vzdev 2339 4 vzethdev,vznetdev,vzdquota,vzmon
Add vmbr0/vmbr1
# nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address MAIN IP
(broadcast IP)
netmask 255.255.255.192
gateway gateway IP
post-up iptables-restore < /etc/iptables.up.rules
auto vmbr0
iface vmbr0 inet static
address First additional IP
netmask 255.255.255.192
gateway IP of ETH0
bridge_ports none
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address first IP of additional subnet
netmask netmask of additional subnet
gateway IP of ETH0
bridge_ports none
bridge_stp off
bridge_fd 0
change sysctl settings (hetzner eth0 policy)
# nano /etc/sysctl.conf
# these values are necessary
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 1
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
to check the values
# systcl -p
restart networking
# /etc/init.d/networking restart
or just reboot
Having mdadm send emails when raid has a problem
#nano /etc/mdadm/mdadm.conf
add
MAILADDR mailadres
# /etc/init.d/mdadm restart
Login to webinterface
change DNS to ok settings
Set time zone
Add admin emailadres
change keyboard layout and language
check if all bridges exist (ping them…)
add backup target (local directory) (optional)
Create a KVM/VZ test machine to see if everything is ok.
Download some appliance templates using the webinterface
Upload an install disc to test KVM
Adding precreated openvz templates:
# cd /var/lib/vz/template/cache
# wget "template URL"
change the name according to the templates proxmox uses.
You're ready, the system's running!
Feel free to adapt these instructions to your own needs.
If someone finds a mistake, please reply to this thread and comment on the process.
If there's a better way of doing this, please let me know and I'll correct the instructions.
Please remember as previously said this setup is not supported by the proxmox team and future updates to the system may break it.
We are not responsible for data loss!
Kindly regards
Ellen Verheyen
2E Projects bvba
p.s. a big thank you to chronos for providing the instructions to install the alien kernel.
Last edited: