Simple Proxmox Setup on Old Hardware

How to set up Proxmox on old hardware

Proxmox is a Type 1 Hypervisor that is Open Source and free to use but one of the greatest benefits to this software is that while it is commercial in it’s ability, it is still compatible with many computers and even laptops that are built within the last 10 years or so.

Type 1 Hypervisors are great for spinning up virtual machines giving you the best of both worlds with only a 1-3% performance drop from running a VM in Proxmox as in Bare Metal Hardware.

That said, this short guide will give you the essential commands and tools needed to setup and run Proxmox on old hardware. I will be using an old Lenovo T440s with an i7, 8GB of RAM and a 120GB Kingston SSD.

We will begin by completing the basic install which is extremely short, complete it by flashing to USB stick. Once complete you should be presented with something that looks like the picture below.

Part 1 – Reclaim Space

Now first we need to enter some commands and get some space back from our root hard drive. Then we will remove our subscription warning notice and clean up our packages.

First go to the Proxmox GUI and Delete the local lvm.

Datacenter –> Storage –> Delete local lvm

Now to enter commands to delete the LV from the system and reclaim the space.

Click on the node and then click “shell”.

shell instructions

You will be presented with the console for the main node.

shell

Enter the commands, one at a time to delete and reclaim the space

lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
resize2fs /dev/mapper/pve-root

Reclaimed! One last step to enable iso images on the main drive. Go to

Datacenter --> Storage --> Local--> Edit -->content
edit directory

Enable the content types you want. Generally you can just choose them all but backups may fill the drive quick.

Part 2 – Removing Subscription Warning.

Removing the subscriptrion nag screen error popup can be annoying so this simple oneliner will disable it permanently. Open up the node shell again and type

sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

Reboot the machine and voila, nag pop up is gone.

Part 3 – Bonus Content

If you have installed onto a laptop you can stop the machine from hibernating or sleeping when you close the lid. From the node shell, edit the service login file

nano /etc/systemd/logind.conf

Uncomment the following settings

HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

CTRL+X then ENTER to save the edited file.

ANOTHER BONUS – SAVE YOUR SCREEN!

If when you close the lid the screen stays on you can fix that by editing the grub file

nano /etc/default/grub

Find the line GRUB_CMDLINE_LINUX and replace with

GRUB_CMDLINE_LINUX="consoleblank=300"

Now you can close the lid and turn off the screen power without shutting down the system!

Hello there! My name is Darren and i am a hobbyist/homelab/crypto enthusiast. If you liked this post please consider signing up for a Digital Ocean account using my link and you will receive $100 in free credit while at the same time helping me to cover the costs of my servers. Thank you!

XCH: xch1hrumdza9u6slw5hz343p3yh954wvjs4rqnqdkq6huanctf0vytzqqkahxk
BTC: 1BVwmPMt6kxRe88EKhThJviFp3M4MhubTA
ETH: 0xa958d40518d76168BB795947Bf96AafD6bccc177
LTC: MBJdCsnZXDuXBYme6Ur7VFAeYw4LTFM9CP
BAT: 0xab574A09fFf2aa391658D3D048265ad1401cA7AF
DOGE: DBCchyovcTXSioWM392kKydJxY5nyECYFB
SCP: 9f2feed9f29f3f8035e4ae2a33837ae4affa0a5b5773bcc5a33a4abb041e82e2cccb318c78ef
Share This Guide!