How to Master Remote KVM Control with a Proxmox 80-Gadget Setup
In this article
Remote KVM control doesn’t require a physical controller—this clever setup turns an 80-gadget architecture (one powerful host with multiple virtual machines) into a fully functional remote desktop and console experience. You’ll manage all your VMs directly from any device with internet access, as if you had a local KVM switch. Here’s how to build it yourself within hours.
What You'll Need
- The Proxmox VE host (must have at least 4 CPU cores, 8GB RAM, and storage for each VM; 16GB+ recommended for serious use)
- Multiple VMs (Windows, Linux, or any guest OS) running in Proxmox
- A web browser on any device (desktop, laptop, tablet, or phone)
- SSH access to the Proxoxm host (via terminal or GUI)
- Optional but recommended: VNC server on each VM (built into Proxmox)
- Optional: spice-vdagent plugin for better mouse/trackpad support
- Network stability: A wired Ethernet connection or stable Wi-Fi to the Proxmox host
Step-by-Step: Remote KVM Control Setup
- Enable Spice in Proxmox Open the Datacenter Configuration in the Proxmox web interface. Navigate to your host machine settings: Settings > Hardware > SPICE. Check the Enable SPICE option and save. Note: This must be done on the host, not inside individual VMs.
- Install the VNC Server in Each VM For Linux VMs: Install xorg-x11-server-Xvfb or virt-viewer via Proxmox’s package manager. For Windows VMs: Ensure Windows Remoting (WinRM) is enabled in the VM settings under Hardware > Virtual Console. Alternative for headless guests: Use Spice instead of VNC if you want better performance.
- Configure Remote Access via SSH
On the Proxmox host, open a terminal and run:
nano /etc/ssh/sshd_configFind the line PermitRootLogin—set it to yes (temporarily for testing). Add or uncomment these lines:AllowUsers your_username PasswordAuthentication yesSave and exit. Then restart SSH:service ssh restartSecurity note: Change this back to restrictive settings after testing. - Install a Remote Desktop Client (GUI Method) Use Remmina (Linux/macOS) or Microsoft Remote Desktop (Windows) to connect to the Proxmox host. For mobile users: Wanocka or AnyDesk work well for remote console access. Note: Some guests may require full-screen mode to work properly.
- Enable SPICE for Direct VM Management Open the VM configuration for each guest OS: VM Settings > Hardware > Virtual Console Select Spice as the console type (instead of VNC). Alternative: Use RDP for Windows VMs via xrdp installed on the Proxmox host.
- Test SPICE Connection
From your remote device, use a browser to connect to:
http://[PROXMOX_HOST_IP]:9090(Default port for SPICE clients). Select the VM you configured earlier. If enabled properly, you should see the virtual display. Troubleshooting tip: If Spice fails, check dmesg on the host for errors. - Automate with SSH Scripts (Advanced)
For deeper control, write a script to SSH into VMs and manage them remotely. Example:
#!/bin/bash for vm in vm1 vm2 vm3; do ssh user@proxmox_host "scp -r /path/to/$vm root@[VM_IP]:/" ssh user@[VM_IP] "reboot" doneSave asmanage_vms.sh, make executable, and test.
If That Did Not Work
- **No console display?** Check if SPICE is enabled on the host and VM. Runvirsh list on the host to verify VMs are running.
Ensure the VM’s network adapter is set to Bridged or NAT (not host-only).
- **Slower performance?**
Reduce guest resolution in VM settings. Close unnecessary tabs in the remote browser.
- **Permission denied?**
Recheck SSH settings. If using a firewall, allow ports 22 (SSH) and 9090 (SPICE).