OpenBSD VMM Cheatsheet
#
OpenBSD VMM is a virtual machine monitor that provides tools to manage virtual machines on OpenBSD.
Virtual Machine Management
#
Command/Option | Example | Description |
---|
vmctl create | vmctl create -t 4G -s 20G -c 1 myvm | Create a new virtual machine with specified memory and disk size |
vmctl start | vmctl start myvm | Start a virtual machine |
vmctl stop | vmctl stop myvm | Stop a running virtual machine |
vmctl destroy | vmctl destroy myvm | Destroy a virtual machine and remove its configuration |
vmctl list | vmctl list | List all virtual machines and their status |
Virtual Machine Configuration
#
Command/Option | Example | Description |
---|
vmctl info | vmctl info myvm | Display detailed information about a virtual machine |
vmctl modify | vmctl modify myvm -t 8G | Modify the memory size of a virtual machine |
Network Management
#
Command/Option | Example | Description |
---|
vmctl set | vmctl set myvm -c "e1000" -n "bridge0" | Set network interface for a virtual machine |
vmctl network | vmctl network -a | Display network configuration for virtual machines |
Disk Management
#
Command/Option | Example | Description |
---|
vmctl disk | vmctl disk -a myvm | List disk devices attached to a virtual machine |
vmctl attach | vmctl attach -a disk.img myvm | Attach a disk image to a virtual machine |
Miscellaneous
#
Command/Option | Example | Description |
---|
vmctl snapshot | vmctl snapshot myvm -n snapshot1 | Create a snapshot of a virtual machine |
vmctl restore | vmctl restore myvm -n snapshot1 | Restore a virtual machine from a snapshot |
This cheatsheet covers essential OpenBSD VMM commands and options to help you manage and maintain virtual machines efficiently.