proxmox: bake xrdp into the Kali template

KALI_XRDP=1 installs xrdp while the template is still a VM, so every clone
and every kali reset keeps it. The lab has no Internet, so the host runs a
temporary squid bound to 10.10.10.1 and restricted to the probe address
(10.10.10.249); it is stopped and disabled afterwards. A ~/.xsession is
written for kali so the xfce session starts under xrdp.

Docs cover exposing one RDP port per seat with socat (3381..3385).
This commit is contained in:
2026-10-26 19:40:57 -04:00
parent e08731bf37
commit 6bb7758709
4 changed files with 114 additions and 0 deletions
+4
View File
@@ -86,6 +86,10 @@ KALI_IP_BASE=41 # 10.10.10.41 .. .4N, outside the DHCP pool
KALI_VMID_BASE=1300 # template at +90 (windows templates use 1200+)
KALI_LINKED_CLONE=1 # 0 = full copies (needs more disk)
KALI_ARCHIVE_URL="https://cdimage.kali.org/kali-2026.3/kali-linux-2026.3-qemu-amd64.7z"
# Bake xrdp into the Kali template (GUI over RDP, port 3389 inside the seat).
# Needs Internet on the PVE host for one apt install, done through a temporary
# squid that only accepts the probe address. Set to 0 to skip.
KALI_XRDP=1
# ---------------------------------------------------------------- participants
# WireGuard endpoint for the router VM option; peers/ writes configs here.