Clean up old and unused PVE kernels from your ProxmoxVE hypervisor
PVE Kernel Cleaner is a program to compliment the ProxmoxVE hypervisor environment. As the PVE kernels are upgraded, they aren't automatically uninstalled, and accumulate in your root or /boot partitions. Eventually this can cause storage space issues, filling up your partition with old kernel images.
PVE Kernel Cleaner was created to fix this problem, allowing you to easily purge the old kernels filling /boot.
- Removes old PVE kernels from your system
- Schedule PVE kernels to be automatically removed on a regular basis
- Run a simple pvekclean command for ease of access
- Checks health of boot disk based on space available
- Tested on ProxmoxVE 6.x
- v1.4
PVE Kernel Cleaner requires cron for scheduled kernel cleaning. This comes installed in PVE by default; however if you've removed it, you can reinstall it with:
# apt update && apt install cron
To install or update PVE Kernel Cleaner, simply download and run it:
wget https://raw.githubusercontent.com/rhyven/pvekclean/master/pvekclean.sh
chmod +x ./pvekclean.sh
./pvekclean.sh
Example of usage:
pvekclean [OPTION]
-f --force Remove all old PVE kernels without confirm prompts
-s --scheduler Have old PVE kernels removed on a scheduled basis
-v --version Shows the current version of pvekclean
-r --remove Uninstalls pvekclean from the system
-h --help Show these options
- Jordan Hillis - Original Developer
- Rhyven - Contributor, 2020
- PeterDaveHello - Contributor, 2019
This project is licensed under the MIT License - see the LICENSE.md file for details
- This program is not an official program by Proxmox Server Solutions GmbH