Manage vms running on the OpenBSD VMM hypervisor using vmctl(8).
New in version 2019.2.0.
codeauthor: | Jasper Lievisse Adriaanse <[email protected]> |
---|
Note
This module requires the vmd service to be running on the OpenBSD target machine.
Create a VMM disk with the specified name and size.
CLI Example:
salt '*' vmctl.create_disk /path/to/disk.img size=10G
Load additional configuration from the specified file.
CLI Example:
salt '*' vmctl.load path=/etc/vm.switches.conf
Remove all stopped VMs and reload configuration from the default configuration file.
CLI Example:
salt '*' vmctl.reload
Reset the running state of VMM or a subsystem.
CLI Example:
salt '*' vmctl.reset all=True
Starts a VM defined by the specified parameters. When both a name and id are provided, the id is ignored.
CLI Example:
salt '*' vmctl.start 2 # start VM with id 2 salt '*' vmctl.start name=web1 bootpath='/bsd.rd' nics=2 memory=512M disk='/disk.img'
List VMs running on the host, or only the VM specified by id
. When both a name and id are provided, the id is ignored.
CLI Example:
salt '*' vmctl.status # to list all VMs salt '*' vmctl.status name=web1 # to get a single VM
Stop (terminate) the VM identified by the given id or name. When both a name and id are provided, the id is ignored.
CLI Example:
salt '*' vmctl.stop name=alpine
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.vmctl.html