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
| Node | Image | CPUs / memory | Addresses | Role |
|---|---|---|---|---|
tiny | debian-13 | 1 / 512MiB | mgmt 10.122.0.11; spare DHCP | 512MiB, headless, no console log, spare NIC unplugged |
desk | debian-13-generic | 2 / 2GiB | mgmt 10.122.0.12 | Display, sound in and out, clipboard |
store | debian-13 | 1 / 1GiB | mgmt 10.122.0.13 | Cached boot disk, shared read-only disk, fast scratch disk |
secure | debian-13 | 1 / 1GiB | mgmt 10.122.0.14 | UEFI Secure Boot, shares the read-only disk |
Before you start
bash
vz image pull disk debian-13
vz image pull disk debian-13-genericRun it
bash
cd examples/22-node-features
vz validate
vz up
vz node ls
ssh lab@10.122.0.11 # password: labTry 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.
| Feature | Node | Turn it on or off | See the effect |
|---|---|---|---|
displays: [] | tiny | Delete the line to get the default display | vz node display tiny |
consoleLog | tiny | Add consoleLog: true | vz node logs tiny |
NIC connected: false | tiny | At runtime: vz port up tiny/spare | ssh lab@10.122.0.11 ip -br link |
| memory balloon | any | At runtime: vz node memory tiny 384MiB | free -m in the guest |
clipboard | desk | Set clipboard: false | Copy and paste between the Mac and vz node display desk |
sound | desk | Change to { output: true } | arecord -l lists no capture device |
nestedVirtualization | desk | Uncomment the line (M3 or newer) | ls -l /dev/kvm |
rosetta | desk | Uncomment the line | sudo mount -t virtiofs rosetta /mnt && ls /mnt |
secureBoot | secure | Set it to false on a fresh node | mokutil --sb-state |
cache, caching | store | Remove them from disk 0 | Boot time and ls -lh ~/.vz/state/node-features/store |
sync: none | store | Change to sync: full | sudo dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=256 oflag=direct |
storage readOnly | store | Set disk 1 to readOnly: false, format it and write a file, set it back | Mount it read-only on secure and read the file |
usb | tiny | Uncomment the line with your device's ids | lsusb |
platform: apple | mac | Pull the IPSW (vz image pull ipsw macos), then uncomment the mac node | vz 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