Skip to content

22 Node feature tour ​

Four nodes, each with a different set of node features switched on, plus the host-dependent ones ready to switch on.

What you practice ​

  • Every node key in one lab: memory, displays, consoleLog, clipboard, sound, secureBoot, disks, storages, and a commented macOS guest (platform: apple)
  • Switching features on and off, and what each one changes inside the guest
  • Runtime changes that need no restart: port, memory, pause

Topology ​

NodeImageCPUs / memoryAddressesRole
tinydebian-131 / 512MiBmgmt 10.122.0.11; spare DHCP512MiB, headless, no console log, spare NIC unplugged
deskdebian-13-generic2 / 2GiBmgmt 10.122.0.12Display, sound in and out, clipboard
storedebian-131 / 1GiBmgmt 10.122.0.13Cached boot disk, shared read-only disk, fast scratch disk
securedebian-131 / 1GiBmgmt 10.122.0.14UEFI Secure Boot, shares the read-only disk

Before you start ​

bash
vz image pull disk debian-13
vz image pull disk debian-13-generic

Run it ​

bash
cd examples/22-node-features
vz validate
vz up
vz node ls
ssh lab@10.122.0.11        # password: lab

Try it ​

Each row is one feature. Flip it in lab.yaml (or with the runtime command), then check the effect. Changes to lab.yaml apply on the next start: vz down && vz up.

FeatureNodeTurn it on or offSee the effect
displays: []tinyDelete the line to get the default displayvz node display tiny
consoleLogtinyAdd consoleLog: truevz node logs tiny
NIC connected: falsetinyAt runtime: vz port up tiny/sparessh lab@10.122.0.11 ip -br link
memory balloonanyAt runtime: vz node memory tiny 384MiBfree -m in the guest
clipboarddeskSet clipboard: falseCopy and paste between the Mac and vz node display desk
sounddeskChange to { output: true }arecord -l lists no capture device
nestedVirtualizationdeskUncomment the line (M3 or newer)ls -l /dev/kvm
rosettadeskUncomment the linesudo mount -t virtiofs rosetta /mnt && ls /mnt
secureBootsecureSet it to false on a fresh nodemokutil --sb-state
cache, cachingstoreRemove them from disk 0Boot time and ls -lh ~/.vz/state/node-features/store
sync: nonestoreChange to sync: fullsudo dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=256 oflag=direct
storage readOnlystoreSet disk 1 to readOnly: false, format it and write a file, set it backMount it read-only on secure and read the file
usbtinyUncomment the line with your device's idslsusb
platform: applemacPull the IPSW (vz image pull ipsw macos), then uncomment the mac nodevz node display mac after the install, or ssh lab@<address>. There is no serial console

Notes ​

secureBoot is enabled the first time the node starts: it enrolls Microsoft's keys into the node's UEFI variables. To turn it off again, also delete them: vz node reset secure.

Clean up ​

bash
vz down
vz destroy --yes   # deletes the overlays and state of this lab