Install Proxmox VE on Debian Squeeze: Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
(page created)
 
(page created)
Line 1: Line 1:
{{Note|Article about Proxmox VE 2.0 beta}}
{{Note|Article about Proxmox VE 2.0 beta}}


=Introduction=
The installation of a supported Proxmox VE server should be done via [[Bare-metal_ISO_Installer]]. In some case it makes sense to install Proxmox VE on top of a running Debian Squeeze 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Squeeze ISO was used: [http://cdimage.debian.org/debian-cd/6.0.2.1/multi-arch/iso-cd/debian-6.0.2.1-amd64-i386-netinst.iso PC Network Installer].
Suggested 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 pve  -wi-ao 30.69g
  root pve  -wi-ao  3.72g
  swap pve  -wi-ao  1.86g
=Install a standard Debian Squeeze(amd64)=
Install a standard Debian Squeeze (amd64), for details see [http://www.debian.org Debian]. Go for a LVM based partitioning and a fixed IP and take care that you have enough free space for snapshots (needed for online backup with vzdump)
=Install Proxmox VE=
==Adapt your sources.list==
Adapt your sources.list and add the Proxmox VE repository:
<pre>nano /etc/apt/sources.list</pre>
<pre>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
</pre>
Add the Proxmox VE repository key:
<pre>wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -</pre>
Update your repository and system by running:
<pre>aptitude update
aptitude upgrade</pre>
==Install Proxmox VE Kernel==
<pre>aptitude install pve-kernel-2.6.32-6-pve</pre>
Reboot and make sure to select Proxmox VE Kernel on the boot loader (grub2).
Optional - install Kernel headers:
<pre>aptitude install pve-headers-2.6.32-6-pve</pre>
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:
<pre>uname -a
Linux 2.6.32-6-pve ... </pre>
Install the Proxmox VE packages:
<pre>aptitude install proxmox-ve-2.6.32 ntp ssh lvm2 postfix vzdump ksm-control-daemon vzprocps</pre>
Accept the suggestion to remove Exim and configure postfix according to your network.
Due to a mission apache2 config you will see some errors, just enable the pve-redirect for the apache2 configuration:
<pre>a2ensite pve-redirect.conf</pre>
And restart apache:
<pre>/etc/init.d/apache2 restart</pre>
=Connect to the Proxmox VE web interface=
Connect to the admin web interface (<nowiki>https://youripaddress:8006</nowiki>) and configure the vmbr0 and review all other settings, finally reboot to check if everything is running as expected.
[[Image:Screen-vmbr0-setup-for-pve2.png||Adapt vmbr0 settings]]
=Links=
*[[Developer Workstations with Proxmox VE and X11]]
[[Category: HOWTO]][[Category: Installation]]
[[Category: Proxmox VE 2.0]]
[[Category: Proxmox VE 2.0]]

Revision as of 09:47, 3 October 2011

Yellowpin.svg Note: Article about Proxmox VE 2.0 beta

Introduction

The installation of a supported Proxmox VE server should be done via Bare-metal_ISO_Installer. In some case it makes sense to install Proxmox VE on top of a running Debian Squeeze 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Squeeze ISO was used: PC Network Installer.

Suggested 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 pve  -wi-ao 30.69g
 root pve  -wi-ao  3.72g
 swap pve  -wi-ao  1.86g

Install a standard Debian Squeeze(amd64)

Install a standard Debian Squeeze (amd64), for details see Debian. Go for a LVM based partitioning and a fixed IP and take care that you have enough free space for snapshots (needed for online backup with vzdump)

Install Proxmox VE

Adapt your sources.list

Adapt your sources.list and add the Proxmox VE repository:

nano /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 upgrade

Install Proxmox VE Kernel

aptitude install pve-kernel-2.6.32-6-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-6-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-6-pve ... 

Install the Proxmox VE packages:

aptitude install proxmox-ve-2.6.32 ntp ssh lvm2 postfix vzdump ksm-control-daemon vzprocps

Accept the suggestion to remove Exim and configure postfix according to your network.

Due to a mission apache2 config you will see some errors, just enable the pve-redirect for the apache2 configuration:

a2ensite pve-redirect.conf

And restart apache:

/etc/init.d/apache2 restart

Connect to the Proxmox VE web interface

Connect to the admin web interface (https://youripaddress:8006) and configure the vmbr0 and review all other settings, finally reboot to check if everything is running as expected.

Adapt vmbr0 settings

Links