Konstantinos Antoniou.

← Projects

How I Built a Pi-KVM to Manage and Monitor My Proxmox Infrastructure

Project Overview

This project demonstrates the installation and configuration of Pi-KVM, a small and powerful KVM-over-IP solution using a Raspberry Pi, to enable remote access and management of my Proxmox virtualization server. Pi-KVM allows me to access the server’s keyboard, video, and mouse (KVM) over the network, offering a full console experience even when the server OS is unresponsive.


Objectives

  • Set up Pi-KVM on a Raspberry Pi to manage my Proxmox server remotely.
  • Enable secure and reliable remote access over the local network and VPN.
  • Demonstrate control over virtual machines, server BIOS, and boot processes.
  • Integrate Pi-KVM into my home-lab network for monitoring and maintenance.

Hardware Used

  • Raspberry Pi 4 Model B (4GB RAM) – Pi-KVM host.
  • Pi-KVM V3 HAT
  • MicroSD Card (32GB) – Operating system and Pi-KVM image.
  • DP – HDMI adapter – Capturing Proxmox server video output.
  • USB cable – For keyboard/mouse passthrough to the Proxmox server.
  • Ethernet connection – For stable network connectivity.

Screenshot 1: Hardware Used


Software & Tools

  • Pi-KVM official image – (on the project website)

  • Proxmox VE 9.x – Virtualization platform.

  • Home network with VLANs – For secure isolation of management traffic.

  • Zerotier VPN – For secure remote access outside the LAN.


Setup Process

1. Flashing the Pi-KVM Image

  1. Download the latest Pi-KVM image for Raspberry Pi 4 from the official website.
  2. Flash the image to the microSD card using Raspberry Pi Imager.
  3. Insert the microSD card into the Raspberry Pi and connect the power supply.

Screenshot 2: 1. Flashing the Pi-KVM Image

2. Hardware Connections

  1. Connect the HDMI output of the Proxmox server to the DP-to-HDMI adapter on the Pi-KVM.
  2. Connect the USB cable from the Pi-KVM to the Proxmox server for keyboard/mouse control.
  3. Connect the Pi-KVM to the LAN via Ethernet.

3. Initial Network Configuration

  1. Boot the Raspberry Pi with Pi-KVM.
  2. Access the Pi-KVM web interface via http:// from a web browser.
  3. Change the default password and configure a static IP for reliability.

4. Integration with Proxmox

  1. Ensure the Proxmox server is powered on and connected to the Pi-KVM.
  2. From the Pi-KVM web interface, open a remote console session to the Proxmox server.
  3. Test keyboard and mouse input, as well as video streaming.

Screenshot 3: 4. Integration with Proxmox

Screenshot 4: 4. Integration with Proxmox

5. Remote Access Configuration

  • Pi-KVM supports HTTPS and can be exposed via VPN for remote access.
  • For enhanced security:
    • Use a Zerotier VPN to access Pi-KVM remotely.
    • Disable default Pi-KVM accounts and use strong, unique credentials.

Usage Scenarios

  1. Proxmox BIOS Access – Reboot a VM or host server and modify BIOS settings remotely.
  2. Full Remote Console – Access the server’s console as if i were physically present.
  3. VM Rescue Operations – Troubleshoot VMs that fail to boot via the Pi-KVM console.
  4. Power Control – Combined with smart plugs, Pi-KVM allows power cycling of servers remotely.

Challenges & Solutions

  • Video lag over network: Optimized by connecting Pi-KVM via wired Ethernet rather than Wi-Fi.
  • Remote access security: Implemented VPN-only access and HTTPS encryption.
  • Compatibility with Proxmox: Verified HDMI-to-CSI capture supports Proxmox video output.

Benefits of Pi-KVM

  • True remote KVM access, even when Proxmox is unresponsive.
  • Lightweight and cost-effective compared to enterprise KVM solutions.
  • Full control over VMs and hardware without needing third-party remote tools.
  • Easy integration into home-lab setups for IT learning and management.

Conclusion

By deploying Pi-KVM, I enhanced my Proxmox server management capabilities, enabling secure and reliable remote access at any time. This project highlights my skills in hardware integration, network configuration, and remote system administration. Pi-KVM has become an essential part of my home-lab infrastructure, improving both maintenance efficiency and learning opportunities.