Installing Proxmox VE v1.9 post Lenny retirement

From Proxmox VE
Jump to: navigation, search

Introduction

On Dec 6th, 2011, Debian Lenny users were given notice of impending retirement of the distribution. Promptly, on Feb 6th, 2012, the Lenny distribution was moved to http://archive.debian.org from the hitherto location at http://ftp.debian.org. Lenny does not directly support Hard Drives exceeding 2TB. It however supports Logical Volumes bigger than 2TB as can be seen in Extending Local Container Storage

March 24th, 2012 saw the last Point Release of Lenny - Debian v5.0.10.

Generic equivalents for the /etc/apt/sources.list file

deb http://archive.debian.org/debian/ lenny main non-free contrib
deb-src http://archive.debian.org/debian/ lenny main non-free contrib
# Security:
deb http://archive.debian.org/debian-security/ lenny/updates main contrib non-free
deb-src http://archive.debian.org/debian-security/ lenny/updates main contrib non-free
# Volatile:
deb http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free
# Backports:
deb http://archive.debian.org/debian-backports lenny-backports main contrib non-free

Fresh Installs of Proxmox VE v1.9

A plain vanilla install of Proxmox VE v1.9 will need to be updated only after the above changes have been done to the /etc/apt/sources.list file to reflect the new location of the lenny repository

Debian Appliance Builder is still available for Proxmox VE v1.9 and can be installed only after the above changes have been done.

A pre-modified version of the sources.list file is available here in zipped form and can be used to overwrite the existing one - /etc/apt/sources.list.

A listing of the sources.list file after modification is:

# File modified to reflect lenny retirement to archive
# For use on and after Feb 6th, 2012 - Ap.Muthu

deb http://archive.debian.org/debian lenny main contrib

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

# security updates
deb http://archive.debian.org/debian-security/ lenny/updates main contrib

Update and install useful packages

apt-get update
apt-get dist-upgrade
apt-get install zip unzip bzip2 screen dab

The kernel will have been upgraded as well. Hence reboot the machine now. Upload the Wheezy capable DAB perl module overwriting the existing one at /usr/share/perl5/PVE.

Remove old kernels

Remove all old kernels in one command on Proxmox systems with:

apt-get remove $(dpkg -l|egrep '^ii  pve-kernel-'|awk '{print $2}'|grep -v `uname -r | cut -d- -f1,2`)

Potential Use Cases

  • Awaiting DAB for ProxmoxVE 2.0 - for appliance creation
  • Proxmox VE v1.9 servers being used exclusively in trusted intranets and properly firewall-ed
  • Mock testing of upgrade from v1.9 to 2.0 before risking the process on production servers (thanks alain)
  • OpenVZ appliances that need the old sauce (conf files and lenny host specifics) till new ones are available for ProxmoxVE 2.0.
  • Use till the too many hacks done to the good ole php based pve-manager get integrated into the new django based one.

Caveat

Ordinarily, nobody should be doing new installs of Proxmox 1.9, it is end of life. Any new/old servers are just sitting around waiting for some security bug/flaw/hack to appear in postfix/apache2/etc, point releases notwithstanding owing to it's delayed appearance on the archive repos.

Updating to squeeze is recommended.

The upgrade script 'pve-upgrade-1.9-to-2.0' does not handle correctly the archive repository path. You will see errors like this :

Err http://ftp.debian.org squeeze/updates/main Packages

 404 Not Found [IP: 130.89.148.12 80]

The script replaces 'archive' by 'ftp' wich gives :

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

But the correct path is something like that (added here .fr) :

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

You must fix the path manually (also for security updates) in /etc/apt/sources.list, and execute again the script.

ProxmoxVE v2.0 now (circa April 12th, 2012) has it's very own DAB - dab v1.2-1 - Debian Appliance Builder