To install NixOS on Proxmox without surprises, settle three things before you touch the installer. You want OVMF with Secure Boot keys left out, a VirtIO SCSI disk, and the QEMU guest agent switched on at both ends. Skip any of them and you end up with a VM that won’t boot from its own disk, or one Proxmox can’t shut down or read an IP from. The rest is the stock NixOS manual install with parted and systemd-boot.
We’ll build a NixOS Proxmox VM from the minimal ISO with GPT partitioning, write a configuration.nix that suits a hypervisor guest, and then show how to upgrade NixOS 26.05 to 26.11 on a VM you already run. Every command below was run in November 2026 on NixOS 26.11 “Zokor” inside a Proxmox VE 9 node, and the 26.05 upgrade was done on a second VM on the same host, so every line of output comes from those two boxes.
Prerequisites
You need a working Proxmox VE 9 host with a bridge that hands out DHCP leases. If you are still setting up the node itself, start with installing Proxmox VE 9 on bare metal and work through the post-install tasks for Proxmox VE first, because the repository and storage changes there affect where the ISO and disks land.
- Proxmox VE 9 with
localstorage for ISOs and avmbr0bridge - 2 vCPUs, 4 GB RAM and a 32 GB disk for the VM (a lab floor, not a production size)
- An SSH key pair on your workstation for the admin user
Size the disk for the Nix store, not for the installed system. A fresh minimal install used 2.4 GB of the root filesystem, but every nixos-rebuild keeps the old generation around until you garbage collect, and a release upgrade pulls several hundred MB on its own. A VM that runs real services wants 40 GB or more, and the RAM follows whatever you run on it. The 4 GB used here was enough to evaluate and build the system without touching swap.
Download the NixOS ISO to Proxmox
Pull the ISO straight onto the Proxmox node so you don’t have to upload 1.6 GB through the browser. The channel URL below always points at the newest minimal ISO for the release, so the command keeps working as new point builds land. Run it as root on the node:
cd /var/lib/vz/template/iso
wget https://channels.nixos.org/nixos-26.11/latest-nixos-minimal-x86_64-linux.iso
wget https://channels.nixos.org/nixos-26.11/latest-nixos-minimal-x86_64-linux.iso.sha256
The .sha256 file names the versioned ISO rather than the latest- symlink, so sha256sum -c reports the file as missing. Compare the two hashes directly instead:
cut -d" " -f1 latest-nixos-minimal-x86_64-linux.iso.sha256
sha256sum latest-nixos-minimal-x86_64-linux.iso
Both lines must print the same hash. These are the values from our download:
322245629bf11f5c3e0624fdff8824bde3b2dabc16d26be989e1d9ddea5fd7a7
322245629bf11f5c3e0624fdff8824bde3b2dabc16d26be989e1d9ddea5fd7a7 latest-nixos-minimal-x86_64-linux.iso
Your hash will differ when a newer build replaces this one, because the latest- name moves with every channel update. What matters is that the two lines agree. If they don’t, delete the ISO and download it again, since a truncated file still boots far enough to fail in strange ways during the install.
Create the NixOS VM with UEFI
Most NixOS Proxmox UEFI problems trace back to the VM definition, so it pays to set it once from the shell rather than click through the wizard and miss a field. Each setting below has a job:
| Setting | Value | Why |
|---|---|---|
| Machine | q35 | PCIe chipset that OVMF expects |
| BIOS | OVMF with an EFI disk | UEFI boot, so systemd-boot can be used |
| Pre-enrolled keys | 0 | Keeps Secure Boot off; the NixOS boot loader is unsigned |
| SCSI controller | VirtIO SCSI single | One controller per disk, required for iothread=1 |
| Network | VirtIO | Paravirtual NIC, shows up as ens18 |
| QEMU agent | enabled=1 | Clean shutdown, IP reporting, filesystem freeze for backups |
Of those, the pre-enrolled keys flag is the one that bites. With keys enrolled, OVMF boots with Secure Boot on and refuses unsigned binaries, so neither the NixOS ISO nor the systemd-boot binary that nixos-install writes will start, and the NixOS manual tells you to disable Secure Boot before you boot the installer. If you do want Secure Boot later, that is a separate project with Lanzaboote, and our guide on Secure Boot certificates on Proxmox VMs covers how the OVMF key store behaves. Create the VM on the node:
qm create 200 --name nixos-2611 --ostype l26 --machine q35 --bios ovmf \
--efidisk0 local:1,efitype=4m,pre-enrolled-keys=0 \
--cpu host --cores 2 --memory 4096 \
--scsihw virtio-scsi-single --scsi0 local:32,iothread=1,discard=on,ssd=1 \
--net0 virtio,bridge=vmbr0 \
--ide2 local:iso/latest-nixos-minimal-x86_64-linux.iso,media=cdrom \
--boot "order=ide2;scsi0" --agent enabled=1
Proxmox creates the 528 KB EFI vars disk and the 32 GB system disk, and the EFI line echoes the key setting back so you can confirm it took:
efidisk0: successfully created disk 'local:200/vm-200-disk-0.raw,efitype=4m,pre-enrolled-keys=0,size=528K'
Formatting '/var/lib/vz/images/200/vm-200-disk-1.raw', fmt=raw size=34359738368 preallocation=off
scsi0: successfully created disk 'local:200/vm-200-disk-1.raw,discard=on,iothread=1,size=32G,ssd=1'
One catch with this command: local is directory storage, and on directory storage Proxmox can only snapshot qcow2 disks. The raw disks created above refuse a snapshot, as qm snapshot 200 pre-test on the finished VM showed:
snapshot feature is not available
If you want snapshots, and you will before any release upgrade, add format=qcow2 to both disks, or put them on local-lvm (LVM-thin) or local-zfs on a ZFS install, both of which snapshot natively. Internal qcow2 snapshots pause a running VM briefly while they are taken or deleted, so LVM-thin or ZFS is the better choice for a busy guest. On a scratch VM the qcow2 variant snapshotted both drives without complaint:
--efidisk0 local:1,format=qcow2,efitype=4m,pre-enrolled-keys=0 \
--scsi0 local:32,format=qcow2,iothread=1,discard=on,ssd=1
Everything else in this guide works the same with either disk format. Open the VM’s Hardware tab in the web UI to check the result. Our capture below was taken after the install, so the CD drive already reads none; yours still shows the ISO at this point. Two rows matter most and are easy to miss in a long list: the SCSI Controller: VirtIO SCSI single row (1) and the EFI Disk with pre-enrolled-keys=0 row (2).

- 1SCSI Controller: VirtIO SCSI single
- 2EFI Disk with pre-enrolled-keys=0
Then open Options and confirm the QEMU Guest Agent row reads Enabled. That flag only gives the VM a virtio serial port; nothing answers on it until NixOS runs the agent, which the configuration further down takes care of.

Start the VM with qm start 200 and open its console. The live ISO logs in as the nixos user on its own.
Connect to the live ISO over SSH
Typing partition commands into the noVNC console works, but pasting a full configuration.nix through it doesn’t. The live system runs sshd, and its welcome banner tells you the catch: the nixos and root accounts have empty passwords, so SSH refuses them until you set one. On the console, set a throwaway password:
passwd
The live ISO does not run the QEMU guest agent, so Proxmox can’t show you its IP yet. Read it with ip -4 addr show ens18 on the console, then log in from your workstation. Our VM got 10.0.1.50 from a DHCP reservation.
ssh [email protected]
The password only lives in the RAM of the live system and disappears on reboot, so a simple one is fine here. Nothing from the live session carries over to the installed system, which gets its own users and keys from configuration.nix.
Partition the disk with GPT
NixOS GPT partitioning follows the manual’s UEFI layout: a 511 MB EFI system partition, a root partition, and swap at the end of the disk. The VirtIO SCSI disk appears as /dev/sda, and lsblk confirms it is empty before you write to it:
lsblk
Only the ISO’s loop device and the CD drive are in use. sda has no partitions:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 1.5G 1 loop /nix/.ro-store
sda 8:0 0 32G 0 disk
sr0 11:0 1 1.6G 1 rom /iso
Create the GPT label and the three partitions. The ESP is created last but sits at the start of the disk, which is why it ends up as partition 3. We used 4 GB of swap to match the VM’s RAM; the manual uses 8 GB:
sudo parted /dev/sda -- mklabel gpt
sudo parted /dev/sda -- mkpart root ext4 512MB -4GB
sudo parted /dev/sda -- mkpart swap linux-swap -4GB 100%
sudo parted /dev/sda -- mkpart ESP fat32 1MB 512MB
sudo parted /dev/sda -- set 3 esp on
Each command prints “Information: You may need to update /etc/fstab.” That line is harmless on a live system with nothing mounted from the disk. Print the table to check the layout:
sudo parted /dev/sda -- print
Partition 3 carries the boot, esp flags and starts at 1 MB, the root partition takes the middle, and swap the last 4 GB:
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
3 1049kB 512MB 511MB ESP boot, esp
1 512MB 30.4GB 29.8GB root
2 30.4GB 34.4GB 3999MB swap swap
The File system column is empty because nothing is formatted yet. Check that partition 3 shows the esp flag before moving on, because that flag sets the ESP type GUID that bootctl looks for when it installs systemd-boot. If it is missing, rerun set 3 esp on now rather than debug a failed boot loader install later.
Format and mount the partitions
Label each filesystem as you format it. The mount commands and the generated config can then refer to nixos and boot instead of device names that change if you add a disk later:
sudo mkfs.ext4 -L nixos /dev/sda1
sudo mkswap -L swap /dev/sda2
sudo mkfs.fat -F 32 -n boot /dev/sda3
The current manual also adds -i 8192 to mkfs.ext4, which reserves more inodes for the Nix store’s many small files; it is a good idea on a VM that will build a lot, and the plain command above is what we ran. mkfs.fat warns “lowercase labels might not work properly on some systems”. The manual uses the lowercase label anyway, and OVMF and Linux both handle it fine, so you can ignore the warning. Now mount root, then the ESP with umask=077 so the random seed and boot loader files on it aren’t world readable:
sudo mount /dev/disk/by-label/nixos /mnt
sudo mkdir -p /mnt/boot
sudo mount -o umask=077 /dev/disk/by-label/boot /mnt/boot
sudo swapon /dev/sda2
lsblk -f /dev/sda
All three partitions should show their labels and mount points.
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 ext4 1.0 nixos 501a74ba-b61c-4b15-8e8b-8ef534c28748 25.8G 0% /mnt
├─sda2 swap 1 swap 4d728e28-44f7-4faf-a87b-f7c7e6f5fddf [SWAP]
└─sda3 vfat FAT32 boot ECB7-E52F 486M 0% /mnt/boot
Swap is on before the install for a reason: nixos-install evaluates the whole system in memory, and on a small VM swap is what stops the OOM killer from ending it halfway.
Generate the hardware configuration
nixos-generate-config probes the VM and writes two files under /mnt/etc/nixos. Run it against the mounted root:
sudo nixos-generate-config --root /mnt
It confirms both files were written.
writing /mnt/etc/nixos/hardware-configuration.nix...
writing /mnt/etc/nixos/configuration.nix...
For more hardware-specific settings, see https://github.com/NixOS/nixos-hardware.
Read hardware-configuration.nix before you go further, because it tells you whether the tool saw the VM correctly. On Proxmox it should import the qemu-guest.nix profile and load virtio_pci and virtio_scsi in the initrd. Without those two modules the kernel can’t find the root disk at boot:
cat /mnt/etc/nixos/hardware-configuration.nix
The generated file mounts root and /boot by UUID, with the ESP restricted to fmask=0077 and dmask=0077:
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/501a74ba-b61c-4b15-8e8b-8ef534c28748";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/ECB7-E52F";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4d728e28-44f7-4faf-a87b-f7c7e6f5fddf"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
Leave this file alone. It gets regenerated whenever you rerun the tool, so anything you add here is lost. Note that the generated configuration.nix already picked systemd-boot because the VM booted in UEFI mode, and set system.stateVersion = "26.11".
Write configuration.nix for a Proxmox guest
The generated configuration.nix is mostly commented examples. Replace it with a short file that does what a server VM needs: systemd-boot with boot counting, the guest agent, key-only SSH and one admin user in wheel. Open it:
sudo vim /mnt/etc/nixos/configuration.nix
Replace the contents with the file below, and put your own public key in place of the placeholder:
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
# systemd-boot on the OVMF EFI system partition
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 10;
boot.loader.systemd-boot.bootCounting.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos-pve";
time.timeZone = "UTC";
# Lets Proxmox read the IP, shut the VM down cleanly and freeze filesystems for backups
services.qemuGuest.enable = true;
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
users.users.admin = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAA...your-public-key admin@workstation"
];
};
environment.systemPackages = with pkgs; [ vim git curl ];
system.stateVersion = "26.11";
}
A few of these lines are there because of Proxmox. services.qemuGuest.enable is off by default in NixOS, and without it the Options toggle you set earlier does nothing: qm agent times out and a Shutdown click from the UI has to rely on ACPI, which can hang until the timeout. configurationLimit = 10 keeps the 511 MB ESP from filling up, since each generation copies its own kernel and initrd there. bootCounting.enable turns on systemd’s automatic boot assessment, which is new in 26.11 and covered below.
Password login over SSH is off, so the key has to be right before you install. If you lock yourself out anyway, the Proxmox console still accepts the admin password you set in the next step.
Install NixOS and set the admin password
Run the installer. It builds the system from your configuration, copies it into /mnt/nix/store and installs systemd-boot to the ESP. Without a flag it ends by asking for a root password. Root has no reason to log in on this VM, since admin is in wheel, so --no-root-passwd leaves the account locked:
sudo nixos-install --no-root-passwd
The tail of the run shows systemd-boot being copied to both the systemd path and the fallback BOOTX64.EFI path, and two EFI boot entries being created in the OVMF variable store:
installing the boot loader...
setting up /etc...
Not checking switch inhibitors (action = boot)
Running in a chroot, enabling --graceful.
Created directory "/boot/EFI".
Created directory "/boot/EFI/systemd".
Created directory "/boot/EFI/BOOT".
Created directory "/boot/loader".
Created directory "/boot/loader/keys".
Created directory "/boot/loader".
Created directory "/boot/loader/entries".
Created directory "/boot/EFI".
Created directory "/boot/EFI/Linux".
Copied "/nix/store/4hkhxjgvcdww7ahaiwnld5klv4m7f6py-systemd-262.2/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
Copied "/nix/store/4hkhxjgvcdww7ahaiwnld5klv4m7f6py-systemd-262.2/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
Random seed file /boot/loader/random-seed successfully written (32 bytes).
Successfully initialized system token in EFI variable with 32 bytes.
Created EFI boot entry "Linux Boot Manager".
Created EFI boot entry "Fallback Linux Boot Manager".
installation finished!
The fallback path is what makes this layout survive on Proxmox. If the EFI disk is ever recreated or the VM is restored without it, OVMF loses its boot entries but still finds \EFI\BOOT\BOOTX64.EFI on its own, so you no longer need the old GRUB efiInstallAsRemovable workaround.
The admin user has no password yet. It doesn’t need one for SSH, but sudo asks for it and the console login needs it. Set it inside the new system with nixos-enter:
sudo nixos-enter --root /mnt -c 'passwd admin'
Here is how that looked on the VM console. The second command also shows something you will hit if you poke around the ESP as a normal user, and the third shows the boot entry the installer wrote:

The Permission denied comes from the umask=077 mount, which is doing its job. The entry name ends in +3.conf, which is the boot counter with three tries left before systemd-boot stops trusting this generation.
Detach the ISO and boot from disk
Power the live system off with sudo poweroff and wait until the VM shows as stopped. Then remove the ISO and make the disk the only boot device:
qm set 200 --ide2 none,media=cdrom --boot order=scsi0
qm start 200
Proxmox confirms both changes in one line.
update VM 200: -boot order=scsi0 -ide2 none,media=cdrom
Wait for the VM to stop first. Run qm set against a live ISO that is still running and Proxmox ejects the disc from under it, which breaks the live environment in a confusing way (see the troubleshooting section).
Verify the guest agent and first boot
Once systemd-boot hands over and the system is up, the guest agent should answer from the Proxmox side. Check it from the node:
qm agent 200 ping && echo agent up
qm guest cmd 200 network-get-interfaces | grep -E "name|ip-address\""
Both answer, and the interface list carries the address the VM got on ens18. We left out the IPv6 link-local line you will also see under ens18:
agent up
"ip-address" : "127.0.0.1",
"ip-address" : "::1",
"name" : "lo",
"ip-address" : "10.0.1.50",
"name" : "ens18",
Ask the agent what it is running on. This confirms the release from outside the VM, which is handy for inventory scripts:
qm guest cmd 200 get-osinfo
The default kernel for 26.11 is the 6.18 LTS series:
{
"id" : "nixos",
"kernel-release" : "6.18.65",
"kernel-version" : "#1-NixOS SMP PREEMPT_DYNAMIC @1795419406",
"machine" : "x86_64",
"name" : "NixOS",
"pretty-name" : "NixOS 26.11 (Zokor)",
"version" : "26.11 (Zokor)",
"version-id" : "26.11"
}
The VM’s Summary page now fills in the IPs field, which stays blank on any VM without a working agent:

Now log in as admin with your key and check the parts of 26.11 that behave differently from older releases:
ssh [email protected]
systemctl is-active qemu-guest-agent sshd
ls /etc/ssh/ssh_host_*_key.pub
ssh-keygen -lf /etc/ssh/ssh_host_mldsa44_ed25519_key.pub
sudo journalctl -u systemd-bless-boot --no-pager | grep Marked
Three host keys exist on first boot, not two. The new one is a hybrid post-quantum ML-DSA-44/Ed25519 key, and the bless-boot line shows that boot counting accepted this generation as good:
active
active
/etc/ssh/ssh_host_ed25519_key.pub
/etc/ssh/ssh_host_mldsa44_ed25519_key.pub
/etc/ssh/ssh_host_rsa_key.pub
512 SHA256:qAPFaJQYn5XsCSkDS5aia/hzSySjhkUqSDvPEaKXEAM root@nixos-pve (MLDSA44-ED25519)
Nov 28 17:29:21 nixos-pve systemd-bless-boot[572]: Marked boot as 'good'. (Boot attempt counter is at 1.)
After that line, the +3 suffix is gone from the entry on the ESP, and sudo ls /boot/loader/entries/ lists a plain nixos-63c31c215d34...0ce0.conf. If a future generation fails to reach that point three times, systemd-boot falls back to the previous good entry without you picking it from the menu, which matters a lot on a VM you can only reach over SSH.
Before you start changing the system, take a Proxmox snapshot of this clean state if your disks are qcow2 or LVM-thin, or a vzdump backup if they are raw. Our guide to Proxmox VM snapshots covers the commands and the rollback. To stamp out more NixOS VMs like this one, the same settings work as the base for Proxmox VM templates.
Use Calamares or disko instead
The graphical ISO (nixos-graphical-26.11-x86_64-linux.iso on the same channel) boots into a desktop session with the Calamares installer. It partitions, picks a desktop and writes a configuration.nix for you, which is a fine route for a desktop VM you plan to use through the Proxmox console or SPICE. It needs more RAM than the minimal ISO, and what it writes still has no guest agent line, so add services.qemuGuest.enable = true; afterwards. If you are weighing NixOS against other desktop distros for that kind of VM, our list of the best Linux desktop distributions covers how it compares.
For servers you rebuild often, the manual steps above become a liability because the partition layout lives in your shell history, not in Git. The nix-community projects disko and nixos-anywhere fix that: disko describes the GPT layout, filesystems and mount options in Nix, and nixos-anywhere boots a running Linux machine into an installer over SSH with kexec, applies the disko layout and installs your flake. You still create the Proxmox VM the same way, with the same OVMF and VirtIO settings, but the disk work becomes one command you can repeat. If your Proxmox host is a plain KVM box instead, the same applies to KVM/QEMU on Ubuntu 26.04.
Troubleshooting
These are the errors we actually hit while building the two lab VMs, with what caused each one.
Error: “fsconfig() failed: /dev/disk/by-label/nixos: Can’t lookup blockdev”
This happened when we scripted the format and mount commands back to back. mkfs.ext4 had finished, but udev had not yet created the /dev/disk/by-label/nixos link when mount ran. Typing the commands by hand never shows it. In a script, run sudo udevadm settle after formatting, or mount /dev/sda1 directly.
Error: “lsblk: Input/output error” on the live ISO
Every command started failing with /run/current-system/sw/bin/lsblk: Input/output error, and mount reported “wrong fs type, bad option, bad superblock” on a partition that had just been formatted. The cause was a qm set --ide2 none that ran while the live system was still up. Proxmox ejected the ISO, and the live environment reads its whole Nix store from that disc. Attach the ISO again with qm set 200 --ide2 local:iso/latest-nixos-minimal-x86_64-linux.iso,media=cdrom, reset the VM, and only detach it once qm status 200 reports stopped.
Proxmox shows no IP and Shutdown hangs
On the live ISO, Proxmox shows “QEMU guest agent is not running” because the minimal image doesn’t start the agent. That is expected. On the installed system, the same message means services.qemuGuest.enable is missing from configuration.nix, or the Options toggle is off and the virtio port doesn’t exist. Fix whichever side is missing and run sudo nixos-rebuild switch. If you only just flipped the Proxmox toggle, stop and start the VM, because a reboot from inside the guest doesn’t add the new port.
VM drops to the OVMF screen after the install
Two causes cover nearly every case, and qm config 200 | grep -E "efidisk0|boot" tells you which one you have:
- The EFI disk was recreated with pre-enrolled keys (a restore or a template), so Secure Boot rejects systemd-boot
- The boot order still lists the empty CD drive before the disk
Fix the boot order with qm set 200 --boot order=scsi0. The quickest fix is to press Esc at the Proxmox boot logo and turn Secure Boot off in the OVMF setup menu, which keeps the existing EFI disk. To fix it in the VM definition instead, stop the VM, detach the EFI disk and create a new one without keys. The old disk stays attached as unused0 until you remove it:
qm set 200 --delete efidisk0
qm set 200 --efidisk0 local:1,efitype=4m,pre-enrolled-keys=0
The new EFI disk has no boot entries, but the fallback BOOTX64.EFI path on the ESP means the system boots again without any other change.
Upgrade an existing NixOS 26.05 VM to 26.11
If you already run 26.05 on Proxmox, you don’t reinstall. To upgrade NixOS 26.05 to 26.11, you point the nixos channel at the new release and rebuild. We did this on a second VM, host name nixos-old, installed from the 26.05 ISO with the same configuration apart from the host name and the boot counting line, which 26.05 doesn’t have. Snapshot the VM first, or back it up with vzdump if its disks are raw: the NixOS manual’s upgrade section warns that a newer Nix can upgrade its database schema, and that can’t be undone easily.
The system channel belongs to root, so work in a root login shell, as the manual does. Check where the system points today:
sudo -i
nix-channel --list
grep stateVersion /etc/nixos/configuration.nix
A 26.05 install tracks the 26.05 channel and carries the stateVersion it was installed with:
nixos https://channels.nixos.org/nixos-26.05
system.stateVersion = "26.05";
Replace the channel and run nixos-rebuild switch --upgrade, which fetches the new channel and switches to it in one step:
nix-channel --add https://channels.nixos.org/nixos-26.11 nixos
nix-channel --list
nixos-rebuild switch --upgrade
The first thing the rebuild does is fetch the new Nix and nixos-rebuild, about 100 MB, before it evaluates anything:
nixos https://channels.nixos.org/nixos-26.11
unpacking 1 channels...
these 76 paths will be fetched (100.0 MiB download, 315.9 MiB unpacked):
/nix/store/2vk2zh922p1zz1gpmpx7p57hn4pcmqgx-acl-2.4.0
/nix/store/ih4y7lkhm4wdygbw1fm87wg65r9gjzp0-aws-c-auth-1.0.0
It then built 253 derivations and fetched another 398 paths (388.6 MB download, 1.2 GB unpacked) for the system itself. The activation at the end is the part to read, because it tells you what restarted under you. We trimmed the long unit lists and the store path lines in between; note that qemu-guest-agent.service is stopped and started again, so Proxmox briefly loses the agent during the switch:
Checking switch inhibitors... done
Copied "/boot/EFI/systemd/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-boot-fallbackx64.efi".
Copied "/nix/store/4hkhxjgvcdww7ahaiwnld5klv4m7f6py-systemd-262.2/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
Copied "/nix/store/4hkhxjgvcdww7ahaiwnld5klv4m7f6py-systemd-262.2/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
Created EFI boot entry "Linux Boot Manager".
Created EFI boot entry "Fallback Linux Boot Manager".
stopping the following units: kmod-static-nodes.service, lastlog2-import.service, logrotate-checkconf.service, network-local-commands.service, nscd.service, qemu-guest-agent.service, resolvconf.service, systemd-boot-random-seed.service, systemd-fsck-root.service, systemd-modules-load.service, systemd-oomd.service, systemd-oomd.socket, systemd-sysctl.service, systemd-timesyncd.service, systemd-udev-trigger.service, systemd-update-done.service, systemd-vconsole-setup.service
activating the configuration...
setting up /etc...
removing obsolete symlink ‘/etc/fuse.conf’...
removing obsolete symlink ‘/etc/ssh/moduli’...
restarting systemd...
reloading user units for admin...
NOT restarting the following user units: systemd-tmpfiles-setup.service
restarting the following user units: nixos-activation.service
restarting sysinit-reactivation.target
reloading the following units: dbus-broker.service, firewall.service, reload-systemd-vconsole-setup.service, systemd-logind.service
restarting the following units: dhcpcd.service, sshd.service, systemd-journald.service, systemd-udevd.service
starting the following units: kmod-static-nodes.service, lastlog2-import.service, logrotate-checkconf.service, network-local-commands.service, nscd.service, qemu-guest-agent.service, resolvconf.service, systemd-boot-random-seed.service, systemd-fsck-root.service, systemd-modules-load.service, systemd-oomd.socket, systemd-sysctl.service, systemd-timesyncd.service, systemd-udev-trigger.service, systemd-update-done.service, systemd-vconsole-setup.service
real 1m21.945s
In total the upgrade took 1 minute 22 seconds of wall time on the lab VM, and the SSH session we ran it from survived the sshd restart. systemd-boot itself was upgraded on the ESP along the way. The kernel stayed on the same 6.18 series, but systemd and the initrd changed, so reboot to run everything from the new generation:
reboot
After the reboot, check the release, the stateVersion and the host keys:
grep -E "^(PRETTY_NAME|VERSION_ID)=" /etc/os-release
grep stateVersion /etc/nixos/configuration.nix
ls /etc/ssh/*_key.pub
systemctl --failed --no-legend | wc -l
Now the system reports 26.11 with no failed units, the stateVersion still reads 26.05, and the ML-DSA hybrid key appeared next to the existing two:
PRETTY_NAME="NixOS 26.11 (Zokor)"
VERSION_ID="26.11"
system.stateVersion = "26.05";
/etc/ssh/ssh_host_ed25519_key.pub
/etc/ssh/ssh_host_mldsa44_ed25519_key.pub
/etc/ssh/ssh_host_rsa_key.pub
0
If SSH doesn’t come back after the reboot, the Proxmox console is your fallback. Here is the output of the release, stateVersion, host key and uname -r checks run there after an admin login:

On the Proxmox side nothing about the VM changed. The guest agent came back after the rebuild restarted it, so the Summary page still reports the address and the memory use stays around 340 MB on the new release:

If the IPs field stays empty after an upgrade, check systemctl status qemu-guest-agent inside the VM before anything else, since the activation stops and starts that unit.
Leave system.stateVersion at 26.05. The channel decides which release you run, not this option. It records which defaults your stateful data was created under, such as the PostgreSQL major version or a database layout, and the option’s own description says most users should never change it after the install. Bumping it on an existing VM can switch a service to a new data format without migrating the data.
On a flake-based system the channel commands don’t apply. Change the nixpkgs input in flake.nix to the new branch, update the lock file and rebuild from the flake:
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.11";
Then, from the directory that holds the flake, run nix flake update nixpkgs followed by sudo nixos-rebuild switch --flake .#$(hostname), which picks the nixosConfigurations entry named after the machine. Commit the updated flake.lock so every machine built from that repository moves to 26.11 together.
What changes in 26.11 on a Proxmox VM
Most of the 26.11 release notes concern desktops and packages. These are the ones that touch a server VM, and the first two apply on upgrade whatever your stateVersion says. The security.unprivilegedUsernsClone option is also gone, so delete it from your config if you carried it over from the old hardened kernel days:
- New hybrid ML-DSA-44/Ed25519 SSH host key at
/etc/ssh/ssh_host_mldsa44_ed25519_key networking.firewall.checkReversePathnow defaults to"loose"- Optional systemd-boot boot counting via
boot.loader.systemd-boot.bootCounting - Boot entries renamed from
nixos-generation-N.conftonixos-<hash>.conf
The new host key changes nothing for existing clients, because the old ed25519 and RSA keys stay and known_hosts entries keep matching. The loose reverse path filter shows up in the firewall rules as -m rpfilter --loose --validmark in the nixos-fw-rpfilter chain; set networking.firewall.checkReversePath = "strict"; if your VM has a single interface and you relied on strict filtering. The default kernel stays on the 6.18 LTS series, the same as 26.05, so the upgrade doesn’t move you to a new kernel branch unless you pin one. Turn on boot counting after the upgrade, as in the fresh install above. A VM that can fall back to its last good generation on its own is the main reason to run NixOS on Proxmox in the first place.