• ComputerKing HTPC

    ComputerKing HTPC

  • Acer Veriton

    Acer Veriton

  • Solar Systems

    Solar Systems

Proxmox from debian 6.0.6 non-free with software raid

WORK IN PROGRESS

Introduction

some stuff here

Install Debian

Get the non-free CD or as i like to do use my usb stick
http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/

Do an install using RAID 1 going to try with one drive in degraded modeĀ I think its best to use entire drive with LVM then edit later

create raid md0 for boot
create raid md1 for everthing else

/boot 1024MB on its own partition with raid 1 hopefull md0

Create LVE takes all space of drive all on md1
Create 3 LV root swap data see below

root 1G
swap double the RAM
data 1/2 of the rest of the disk i think? u can always grow it later, or minus at least -4GB for snapshots

NOTE As i think PVE puts its images on the empty space rather than putting an virtual partition inside the data virtual partition.

An ugly example partition layout with LVM:

Device Boot Start End Blocks Id System
/dev/sda1 1 122 975872 83 Linux
/dev/sda2 122 5222 40965120 8e Linux LVM

LVM:

LV VG Attr LSize Origin Snap% Move Log Copy% Convert
data vg0 -wi-ao 30.69g
root vg0 -wi-ao 3.72g
swap vg0 -wi-ao 1.86g

Networking phase 1

check /etc/hostname might need to be just sun should be set during install?
sun.solar.lan

edit /etc/hosts might not need pvelocalhost?

127.0.0.1 localhost.localdomain localhost
10.22.20.200 sun.solar.lan sun pvelocalhost

Networking Phase 2

proxmox requires a static network setup, but install requires dhcp from ISP think i will go with default do my

apt-geting then fix /etc/network/interfaces or maybe get the ip from ISP and assign it statically to stop PVE install from messing up.

auto lo
iface lo inet loopback

#####This is to get initial debian/PVE going

auto eth0
iface inet dhcp

#auto eth0
#iface inet static
#address IPS address
#netmask IPS netmask
#gateway IPS gateway

############ Below here is actual setup
# This is WAN
iface eth0 inet manual

# This is LAN
iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.22.20.200
netmask 255.255.255.0
# These are correct took them out so do not have to change them defaults are fine
# network 10.22.20.0
# broadcast 10.22.20.255
gateway 10.22.20.254
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0

Do You also need to create 4 Network devices on the hypervisor do this with the GUI? or is this just getting infos from /etc/network/interfaces
eth0 active
eth1 active
vmbr0 active IP 10.22.20.200 subnet 255.255.255.0 gateway 10.220.20.254 bridge port eth0 autostart
vmbr1

Install PVE

Edit your sources.list

vi /etc/apt/sources.list

deb http://ftp.at.debian.org/debian squeeze main contrib

# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian squeeze pve

# security updates
deb http://security.debian.org/ squeeze/updates main contrib

Add the Proxmox VE repository key:

wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -
Update your repository and system by running:

aptitude update
aptitude full-upgrade

Install Proxmox VE Kernel

aptitude install pve-firmware
aptitude install pve-kernel-2.6.32-16-pve

Reboot and make sure to select Proxmox VE Kernel on the boot loader (grub2).

Optional – install Kernel headers:

aptitude install pve-headers-2.6.32-16-pve

Now restart the system using the Proxmox VE kernel.

Install Proxmox VE packages

Make sure you are running the Proxmox VE Kernel, otherwise the installation will fail.

Check the currently active Kernel:

uname -a
Linux 2.6.32-16-pve ...

Install the Proxmox VE packages:

aptitude install proxmox-ve-2.6.32

Configure pve-redirect for apache2

a2ensite pve-redirect.conf

And restart apache:

/etc/init.d/apache2 restart

Install the rest of needed packages

aptitude install ntp ssh lvm2 postfix ksm-control-daemon vzprocp

Prep for openvpn

Add some needed modules

vi /etc/modules
ipt_mark
ipt_MARK
tun

edit /etc/vz/vz.conf and make sure these are at the end of IPTABLES MODULES

ipt_state iptable_nat

Install vms

Copy keep from usb to /var/lib/vz and add storage to PVE called keep types backups and templates

cp command here

restore all needed vms

put command here

optional

edit grub for PCI pass through needed for bluecherry

Some packages
apt-get install smarttools sensors vim
maybe impi or idrac stuff

A desktop

apt-get install lxde libcurl3

Make sure network-manager is not used, else pve-cluster will not start

aptitude purge network-manager

To get a modern browser, Google Chrome is a good idea – download the 64-bit Chrome from Google, also install Oracle

(Sun) Java, see Java_Console_(Ubuntu)

Sun install

vi /etc/apt/sources.list.d
deb http://www.duinsoft.nl/pkg debs all

import the gpg key with the command
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
enter the commands
sudo apt-get update
sudo apt-get install update-sun-jre

Print Friendly, PDF & Email

One Response to Proxmox from debian 6.0.6 non-free with software raid

  1. Hi there! Someone in my Myspace group shared this website
    with us so I came to give it a look. I’m definitely enjoying the information. I’m bookmarking and
    will be tweeting this to my followers! Exceptional blog and amazing style and design.

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

replica hublot watches rolex replica watches