01 Single VM
One Debian VM on a NAT switch. The smallest lab: start here to learn the vz workflow.
What you practice
- The lab lifecycle:
validate,up,node ls,down,destroy - The serial console and its saved log (
consoleLog: true) - Pausing, resuming and resetting a node
Topology
| Node | Image | CPUs / memory | Addresses | Role |
|---|---|---|---|---|
vm1 | debian-13 | 1 / 1GiB | mgmt 10.101.0.11 | Your first VM |
Before you start
bash
vz image pull disk debian-13Run it
bash
cd examples/01-single-vm
vz validate
vz up
vz node ls
ssh lab@10.101.0.11 # password: labFirst boot installs packages; give it a minute or two after vz up returns.
Try it
bash
vz node console vm1 # login: lab / lab; close the window to detach
vz node logs vm1 # the boot log, saved because of consoleLog: true
vz node pause vm1 # freeze it; SSH hangs
vz node resume vm1
vz node memory vm1 512MiB # shrink the memory balloon, then check `free -m` inside
vz down
vz node reset vm1 --yes # back to the clean base image on the next `vz up`Clean up
bash
vz down
vz destroy --yes # deletes the overlays and state of this lab