Install Proxmox VE on Debian Wheezy: Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
No edit summary
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
=Introduction=
{{Note|Article about the old stable Proxmox VE 3.x releases}}
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 Wheezy 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Wheezy ISO was used: [http://cdimage.debian.org/debian-cd/7.1.0/amd64/iso-cd/debian-7.1.0-amd64-netinst.iso debian-7.1.0-amd64-netinst.iso].
 
== 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 Wheezy 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Wheezy ISO was used: [http://cdimage.debian.org/cdimage/archive/latest-oldstable/amd64/iso-cd/debian-7.8.0-amd64-netinst.iso debian-7.8.0-amd64-netinst.iso].


Suggested partition layout with LVM:
Suggested partition layout with LVM:
Line 16: Line 18:
We recommend to use ext3 filesystem for best OpenVZ performance and stability.
We recommend to use ext3 filesystem for best OpenVZ performance and stability.


=Install a standard Debian Wheezy (amd64)=
== Install a standard Debian Wheezy (amd64) ==
Install a standard Debian Wheezy (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 LVM backup with vzdump, OpenVZ containers only)
Install a standard Debian Wheezy (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 LVM backup with vzdump, OpenVZ containers only)


==Check /etc/hosts==
=== Check /etc/hosts ===


Please make sure that your hostname is resolvable via /etc/hosts, i.e you need an entry in /etc/hosts which assigns an IPv4 address to that hostname.
Please make sure that your hostname is resolvable via /etc/hosts, i.e you need an entry in /etc/hosts which assigns an IPv4 address to that hostname.
Line 42: Line 44:
</pre>
</pre>


=Install Proxmox VE=
== Install Proxmox VE ==
==Adapt your sources.list==
=== Adapt your sources.list ===


Adapt your sources.list and add the Proxmox VE repository:
Adapt your sources.list and add the Proxmox VE repository:
Line 51: Line 53:
<pre>deb http://ftp.at.debian.org/debian wheezy main contrib
<pre>deb http://ftp.at.debian.org/debian wheezy main contrib


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


# security updates
# security updates
deb http://security.debian.org/ wheezy/updates main contrib
deb http://security.debian.org/ wheezy/updates main contrib
</pre>
</pre>
<b>NOTE:</b> Due to a bug in debian/apt(?) it may be required to alter the above sources.list entry to say the following, if apt-get complains about not being able to find /binary-i386: "Unable to find expected entry 'pve/binary-i386/Packages'" (despite it being a 64bit debian install!)
<pre>deb [arch=amd64] http://download.proxmox.com/debian wheezy pve</pre>


If it does not work for '''apt-get''' of some files, then replace '''http://''' with '''ftp://''' especially in the first two urls above.
If it does not work for '''apt-get''' of some files, then replace '''http://''' with '''ftp://''' especially in the first two urls above.
Line 65: Line 71:
<pre>apt-get update && apt-get dist-upgrade</pre>
<pre>apt-get update && apt-get dist-upgrade</pre>


==Install Proxmox VE Kernel==
=== Install Proxmox VE Kernel ===
<pre>
<pre>apt-get install pve-firmware pve-kernel-2.6.32-26-pve</pre>  
apt-get install pve-firmware pve-kernel-2.6.32-23-pve</pre>
Optional - install Kernel headers:  
 
<pre>apt-get install pve-headers-2.6.32-26-pve</pre>  
Reboot and make sure to select Proxmox VE Kernel on the boot loader (grub2) - Attention: Default is the 3.2 kernel
*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.
Optional - install Kernel headers:
<pre>apt-get install pve-headers-2.6.32-23-pve</pre>


Now restart the system using the Proxmox VE kernel.
=== Install Proxmox VE packages ===
 
==Install Proxmox VE packages==
Make sure you are running the Proxmox VE Kernel, otherwise the installation will fail.
Make sure you are running the Proxmox VE Kernel, otherwise the installation will fail.


Check the currently active Kernel:
Check the currently active Kernel:
  uname -a
  uname -a
  Linux 2.6.32-23-pve ...  
  Linux 2.6.32-26-pve ...  


Remove the Debian kernel:
Remove the Debian kernel:
  apt-get remove linux-image-amd64 linux-image-3.2.0-4-amd64
  apt-get remove linux-image-amd64 linux-image-3.2.0-4-amd64 linux-base


Check grub2 config by running:
Check grub2 config by running:
Line 97: Line 99:
'''Note''': Apache2 is not needed anymore as we use our own web server.
'''Note''': Apache2 is not needed anymore as we use our own web server.


=Connect to the Proxmox VE web interface=
== 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.
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]]
[[Image:Screen-vmbr0-setup-for-pve2.png||Adapt vmbr0 settings]]


=Configure apt to use the new packages repositories=
== Configure apt to use the new packages repositories ==
See [[Package repositories]]
In order to get latest updates, you need to add one of the new package repositories, see [[Package repositories]]


=Optional: Developer Workstations with Proxmox VE and X11=
== Optional: Developer Workstations with Proxmox VE and X11 ==
Proxmox VE is primarily used as virtualization platform with NO additional software installed. In some case it makes sense to have a full desktop running on Proxmox VE, for example for developers using Proxmox VE as their primary workstation/desktop.
Proxmox VE is primarily used as virtualization platform with NO additional software installed. In some case it makes sense to have a full desktop running on Proxmox VE, for example for developers using Proxmox VE as their primary workstation/desktop.


For example, just install LXDE desktop and Chromium browser:
For example, just install XFCE4 desktop and Firefox/Iceweasel browser:
  apt-get install lxde chromium
  apt-get install xfce4 iceweasel lightdm


If you prefer XFCE4:
If you prefer LXDE desktop instead just do:
  apt-get install xfce4 chromium lightdm
  apt-get install lxde iceweasel


Make sure network-manager is not used, else pve-cluster will not start in some cases
Make sure network-manager is not used, else pve-cluster will not start in some cases
  apt-get purge network-manager
  apt-get purge network-manager


Don´t forget to install Oracle (Sun) Java, see [[Java_Console_(Ubuntu)]]
[[Category: Archive]][[Category: Installation]]
 
[[Category: HOWTO]][[Category: Installation]]

Latest revision as of 16:16, 18 July 2019

Yellowpin.svg Note: Article about the old stable Proxmox VE 3.x releases

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 Wheezy 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Wheezy ISO was used: debian-7.8.0-amd64-netinst.iso.

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

We recommend to use ext3 filesystem for best OpenVZ performance and stability.

Install a standard Debian Wheezy (amd64)

Install a standard Debian Wheezy (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 LVM backup with vzdump, OpenVZ containers only)

Check /etc/hosts

Please make sure that your hostname is resolvable via /etc/hosts, i.e you need an entry in /etc/hosts which assigns an IPv4 address to that hostname.

Note: Make sure that no IPv6 address for your hostname is specified in /etc/hosts

Example /etc/hosts file:

root@proxmox-6-177:~# cat /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.6.177 proxmox-6-177.proxmox.com proxmox-6-177 pvelocalhost

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

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 wheezy main contrib

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

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

NOTE: Due to a bug in debian/apt(?) it may be required to alter the above sources.list entry to say the following, if apt-get complains about not being able to find /binary-i386: "Unable to find expected entry 'pve/binary-i386/Packages'" (despite it being a 64bit debian install!)

deb [arch=amd64] http://download.proxmox.com/debian wheezy pve

If it does not work for apt-get of some files, then replace http:// with ftp:// especially in the first two urls above.

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:

apt-get update && apt-get dist-upgrade

Install Proxmox VE Kernel

apt-get install pve-firmware pve-kernel-2.6.32-26-pve

Optional - install Kernel headers:

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.

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-26-pve ... 

Remove the Debian kernel:

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

Check grub2 config by running:

update-grub

Install the Proxmox VE packages:

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

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

Note: Apache2 is not needed anymore as we use our own web server.

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

Configure apt to use the new packages repositories

In order to get latest updates, you need to add one of the new package repositories, see Package repositories

Optional: Developer Workstations with Proxmox VE and X11

Proxmox VE is primarily used as virtualization platform with NO additional software installed. In some case it makes sense to have a full desktop running on Proxmox VE, for example for developers using Proxmox VE as their primary workstation/desktop.

For example, just install XFCE4 desktop and Firefox/Iceweasel browser:

apt-get install xfce4 iceweasel lightdm 

If you prefer LXDE desktop instead just do:

apt-get install lxde iceweasel

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

apt-get purge network-manager