Debian – How to install only the proxmox kernel on Debian on Wheezy

debiandebian-wheezykernelopenvzproxmox

I'm going to run two servers with OpenVZ on Wheezy. Since there are sadly no OpenVZ kernels in debian anymore I want to use the Proxmox kernel instead.

I'm doing all replication with scripts I have already in place. What I don't want is all the pve cluster stuff which in my case only gets in the way.

But if I try to install vzctl I get the whole pve cluster stuff if I want it or not.

How can I install only the proxmox kernel without it?

EDIT:
Which packages do I need from proxmox and can I mix them with the wheezy packages? Does vzctl from Wheezy work with proxmox kernel? How can I make shure to only get the packages I need from proxmox and not the ones I don't?

Best Answer

This is untested, but seems like a fairly simple solution.

Add the repos:

nano /etc/apt/sources.list
+ deb http://download.proxmox.com/debian wheezy pve-no-subscription

Download the kernel image and header.

apt-get update
apt-get install pve-kernel-2.6.32-28-pve pve-headers-2.6.32-28-pve

Remove the repos:

nano /etc/apt/sources.list
- deb http://download.proxmox.com/debian wheezy pve-no-subscription

If you need to dig around for updates to the kernel, and forgot the naming convention they were using, you can just check the repos online, or use an apt-cache show.

ProxMox repo: http://download.proxmox.com/debian/dists/wheezy/pve-no-subscription/binary-amd64/