Skip to content

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 ​

NodeImageCPUs / memoryAddressesRole
vm1debian-131 / 1GiBmgmt 10.101.0.11Your first VM

Before you start ​

bash
vz image pull disk debian-13

Run it ​

bash
cd examples/01-single-vm
vz validate
vz up
vz node ls
ssh lab@10.101.0.11        # password: lab

First 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