Turn Your Old Laptop Into a Perfect Proxmox Server
Author: Yaroslav Koisa
Created on 10 November 2020
Last edit commited on 5 July 2023
This should be a quick reference to our YouTube video, so you don’t have to do a whole lot of typing.
Link to our YouTube video:https://www.youtube.com/watch?v=EfIfoWAV_g8
Pros and Cons of this setup
Pros:
Portability – laptops are small and portable, storing them is no issue compared to a desktop PC or a rack mounted server.
Energy consumption – laptops use less power on average, this will help to keep the energy bill down, and it’s overall good for our environment.
Built in UPS – power backups are expensive, so a built in laptop battery is a huge plus. In case of a power outage, it can last for a really long time.
Noise levels – laptop is a much quieter option compared to other alternatives. You can probably run one next to your bed during the night, without ever noticing it’s there.
Built in keyboard, screen and mouse – there is no need to purchase a KVM or something like that, laptop already has it all.
Cons:
Performance per dollar spent – when you compare an older i7/16GB RAM laptop to an enterprise HP G8 server with up to 128GB RAM and double socket motherboard with Xen CPUs, they would cost nearly the same, but performance they offer is much different.
Expandability – there are next to no options to improve the machine you’ve purchased, CPU and GPU are integrated, there are 1 or 2 RAM slots in most cases, no support for PCI cards, and the storage… well, you probably know.
Single ethernet port (in most cases) – compared to an enterprise server with at least 4 NICs or more, this is far from optimal.
Steps to take, if you'd like to install ProxMox on the laptop
Remove the ProxMox enterprise repos and add the ProxMox non-sub repos
I assume you wouldn’t buy a license for this kind of deployment, but if you did, skip this step.
Install the software that will help you in the future
You will need this software sooner or later. Better install it now, to not waste any time later down the road, for example ifupdown2 will keep your host from rebooting, when you change the network config.
apt-get install -y ifupdown2 bmon iftop tmux mc htop
Laptop specific tuning
TLP will help with better power management and battery monitoring. Systemd/logind file entries will keep the laptop from going to sleep when the lid is closed.
You can check your battery status with the next commands:
tlp-stat -s
tlp-stat -b
Tune ZFS to use a small amount of RAM, 512Mb in this case (the maths behind the number is very simple: 512x1024x1024). I am running my testing box for a year now, with no issues or data loss. As far as I am concerned, this is safe to do, but “smart” people on the internet will definitely tell you otherwise.