Virtualbox is exteremly handy on a development server. As I don't manage Virtualbox through command line very often, I can never remember the command and therefore have created this cheatsheet.

Virutalbox command

# list instances
VBoxManage list vms

# start instance
VBoxManage startvm SERVER_NAME --type headless

# list running instances
VBoxManage list runningvms

# List snapshots
VBoxManage snapshot SERVER_NAME list

# Take a snapshot
VBoxManage snapshot SERVER_NAME take SNAPSHOT_NAME --description "OPTIONAL DESCRIPTION GOES HERE"

# Restore a snapshot
VBoxManage snapshot SERVER_NAME restore SNAPSHOT_NAME

# Delete a snapshot
VBoxManage snapshot SERVER_NAME delete SNAPSHOT_NAME