If you're running a version of Proxmox with no packages available, or for some reason you don't/can't trust precompiled packages you can compile the kernel yourself using patches provided.
The easiest way to do it is to use a script provided in this repository, alongside this README.md
file
(build/proxmox/build.sh
)
This is mostly intended if you want to build & run on your Proxmox host. Jump to Docker-ized guide if you want to build packages in an isolated environment.
- Proxmox 6 install (recommended) or Debian Buster (it WILL fail on Ubuntu!)
- Root access
- ~30GB of free space
-
Download the build script (e.g. use
wget https://raw.githubusercontent.com/kiler129/relax-intel-rmrr/master/build/proxmox/build.sh
) -
Run the
build.sh
script from terminal:
RMRR_AUTOINSTALL=1 bash ./build.sh
You can also manually execute commands in the script step-by-step. To facilitate that the script contains extensive comments for every step. -
(OPTIONAL) Verify the kernel works with the patch disabled by rebooting and checking if
uname -r
shows a version ending with-pve-relaxablermrr
This process will leave precompiled *.deb
packages, in case you want to copy them to other Proxmox hosts you have.
This is mostly intended for building packages for later use (and/or when you don't want to mess with your OS).
TODO: Currently the script will always build the newest master
branch (so it's not suitable for CI).
- Docker installed (tested on macOS & Debian 10)
- ~30GB of free space
- Copy of
Dockerfile
frombuild/proxmox
(present alongside thisREADME
)
- Build the container image (this will build the kernel):
docker build -t build-img -f Dockerfile .
- Create dummy container from image:
docker create --name build-cont build-img
- Copy debs (it will give you
debs
folder):docker cp build-cont:/build/proxmox-kernel/debs ./
- Cleanup image & dummy container:
docker rm -f build-cont docker rmi -f build-img
Now you can install debs like you would premade packages.