Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compute surface and networking modes

Every knob the community-scripts LXC/VM wizard asked for has a home in fleet.compute.<name> (see the fleet.compute reference). This page maps the two.

From the wizard to fleet.compute

community-scripts (build.func / vm-core.func)fleetkit
CT_TYPE / var_unprivilegedprivileged
CT_ID / VMIDvm_id
HNattribute name / name
DISK_SIZE, CORE_COUNT, RAM_SIZEroot_disk_gb, cpu_cores, memory_mb (+ swap_mb)
storage picker (var_container_storage)root_disk_datastore (default fleet.settings.providers.proxmox.defaultDatastore)
template storage (var_template_storage)fleet.settings.providers.proxmox.lxcTemplateDatastore
BRG / SDN vnetinterfaces[].bridge / interfaces[].vnet (+ sdn-zone/sdn-vnet resources)
NET dhcp / static / rangeinterfaces[].ipv4 = "dhcp" / "a.b.c.d/nn" (ranges are not declarative)
GATEinterfaces[].gateway
IPV6_METHOD auto/dhcp/static/none/disableinterfaces[].ipv6.method (disable ≡ none)
MTU, VLAN, MACinterfaces[].mtu, .vlan, .mac
NS, SDdns.servers, dns.domain
ENABLE_FUSE, ENABLE_NESTING, ENABLE_KEYCTL, ENABLE_MKNOD, ALLOW_MOUNT_FSfeatures.{fuse,nesting,keyctl,mknod,mount}
ENABLE_TUN, ENABLE_GPU, Coral, USB serialdevices (+ lxc_extra_conf for hot-plug cgroup rules)
PROTECT_CTprotection
TAGStags
var_post_install hookhook_script (PVE hook), or a NixOS activation script
CT_TIMEZONENixOS time.timeZone in the host’s hostsRegistry entry
PW, SSH, SSH_AUTHORIZED_KEYnot applicable: NixOS hosts are key-only (fleet.network.sysadmin_ssh_key), root has no password
APT_CACHER, HTTP_PROXY, INHERIT_HOST_CANixOS nix.settings.substituters, networking.proxy, security.pki
VM MACHINE, BIOS, CPU_TYPE, DISK_CACHE, scsihw, -tablet 0vm.machine, vm.bios (+ vm.efi), vm.cpu_type, vm.root_disk.cache, vm.scsi_hardware, vm.tablet
VM cloud-init on/offcloud_init.enable, cloud_init.datastore
VM cloud image (qm importdisk)image = "import:<datastore>:import/<file>" with a download resource
START_VM, -onboot 1start_on_create, onboot, startup

Network modes

network_mode = "declared" is the general form: interfaces lists every NIC with its bridge or VNet, IPv4 (dhcp, manual, or a CIDR with an explicit prefix), gateway, IPv6, VLAN, MTU, MAC and firewall flag; entry i becomes net<i> (LXC: eth<i>).

The fixed shapes (single-internal, single-external, dual, lxc-router, custom-*) predate it and remain for existing fleets. They append fleet.network.internal_prefix_len / lan_prefix_len (derived from the CIDRs, else 24) to the bare internal_ip / ip. New hosts should use declared; the legacy modes will be deprecated once the origin fleet has migrated.

Escape hatch

lxc_extra_conf writes raw lines into /etc/pve/lxc/<vmid>.conf inside a marker block through a terraform_data local-exec over root SSH to the node (fleet.providers.proxmox.<inst>.cluster.node_addresses). Use it only for what devices cannot express.