LAN-Only Windows Automation VM on Proxmox: Full Build
The requirement: A Windows VM that automation tooling can fully control over the LAN — SSH, WinRM, guest agent, Git, Python, Node — that must never be reachable from the WAN under any circumstance. No public NIC, RDP restricted to private ranges only, hardware tuned before first boot. Here's the full build.
The order matters more than any individual setting here: change the hardware while the VM is off, start it, configure IP and firewall, install tooling, then tighten WAN access last. Doing any of this live under load turns a 20-minute build into a much longer troubleshooting session.
Hardware, Set Before First Boot
# Stop the VM if it's already running
qm stop <VMID>
qm set <VMID> --cpu host --cores 8 --sockets 1
qm set <VMID> --memory 16384 --balloon 4096
qm set <VMID> --machine pc-q35-11.0
qm set <VMID> --agent enabled=1,fstrim_cloned_disks=1
qm set <VMID> --onboot 1 --startup order=20,up=90
# Fast disk path
qm set <VMID> --virtio0 <storage>:<VMID>/vm-<VMID>-disk-0.qcow2,cache=writeback,discard=on,iothread=1
# LAN-only NIC — delete any WAN-bridged interface first
qm set <VMID> --delete net0
qm set <VMID> --net0 virtio=<MAC>,bridge=vmbr2,firewall=1
SettingValue usedWhy
Machine typepc-q35-11.0Older pc-q35-5.1 is deprecated — avoid resurrecting it on new builds
CPUhost, 8 coresMax guest performance for automation workloads
Balloon4096 min / 16384 maxHost can reclaim idle RAM without starving the guest — see the companion balloon-behavior post
NICOne VirtIO, LAN bridge only, firewall=1No WAN NIC is a stronger guarantee than "firewall configured correctly" — there's simply no path out
UEFI 2023 Certificates — Do This While Stopped
qm enroll-efi-keys <VMID>
# efidisk should now show: ms-cert=2023k
See our dedicated write-up on why this matters before the 2011 certificates expire. One side effect worth knowing: jumping machine types (e.g. from an old 5.1 build to 11.0) can make Windows re-detect the VirtIO NIC as a new "Ethernet N" adapter — re-apply the static IP via the guest agent if ping dies after the first boot on the new machine type.
LAN IP, Assigned From Inside the Guest
New-NetIPAddress -InterfaceAlias "Ethernet X" -IPAddress 172.20.60.11 -PrefixLength 24 -DefaultGateway 172.20.60.5
Set-DnsClientServerAddress -InterfaceAlias "Ethernet X" -ServerAddresses 172.20.60.5,1.1.1.1
Locking It Down at Two Layers
Proxmox-level firewall (/etc/pve/firewall/<VMID>.fw) drops everything by default, then allows only what's needed from trusted private ranges:
[OPTIONS]
enable: 1
policy_in: DROP
policy_out: DROP
[RULES]
IN ACCEPT -p icmp -source 172.20.0.0/16
IN ACCEPT -dport 22,3389,5985,5986 -source 172.20.0.0/16,10.50.0.0/8
OUT ACCEPT -dest 172.16.0.0/12,10.50.0.0/8 # private ranges only
Inside Windows, default inbound/outbound is Block, with explicit allows for RDP/SSH/WinRM/ICMP from private ranges — and critically, the built-in "any source" RDP rule Windows creates by default is disabled, replaced with the scoped one.
Verify the lockout actually works before calling it done:
Invoke-WebRequest http://1.1.1.1 # should fail — no WAN path
Test-Connection 172.20.60.1 # should succeed — LAN path intact
Toolchain for Automation Control
Minimum viable agent-controllable host: QEMU Guest Agent (for qm guest exec), OpenSSH Server, WinRM, Git, Python, Node, PowerShell 7. Install any Python packages that need outbound access while outbound is still temporarily allowed during the build, then re-lock WAN before considering the VM done.
Lessons From This Build
Hardware first, then power on — avoids fixing configuration live under whatever load the automation is already generating.
No WAN NIC beats "firewall only." A firewall rule is one misconfiguration away from a hole; a genuinely absent network path isn't.
balloon: 0 makes Proxmox show 100% RAM forever, even on an idle VM — see the companion post on what that percentage actually means.
Enroll UEFI 2023 keys now, not after the 2011 certificates expire.
Re-check the static IP after any machine-type jump — Windows may present a "new" NIC.
FAQ: Why not just rely on the Windows firewall alone?
Defense in depth — a single misconfigured Windows Firewall rule (or a future update that resets one) shouldn't be the only thing standing between this VM and the internet. The Proxmox-level firewall and the absence of a WAN-bridged NIC are two independent layers that don't depend on the guest OS behaving correctly.
FAQ: Can this VM still receive software updates?
Only during a deliberately-widened window — outbound is opened temporarily for tooling/update installs, verified, then closed again. It's not permanently airgapped, just default-closed rather than default-open.
Related: what Proxmox's memory percentage actually means once ballooning is involved. Need a hardened, LAN-only automation host built out for your own fleet? Get in touch.