Runner for SmartOS minions control vmadm
Return information for vms
filter vms, see the execution module.
return only one vm
Note
If the search parameter does not contain an equal (=) symbol it will be assumed it will be tried as uuid, hostname, and alias.
CLI Example:
salt-run vmadm.get 91244bba-1146-e4ec-c07e-e825e0223aa9
salt-run vmadm.get search='alias=saskia'
Return true if vm is running
filter vms, see the execution module.
Note
If the search parameter does not contain an equal (=) symbol it will be assumed it will be tried as uuid, hostname, and alias.
Note
If multiple vms are matched, the result will be true of ALL vms are running
CLI Example:
salt-run vmadm.is_running 91244bba-1146-e4ec-c07e-e825e0223aa9
salt-run vmadm.is_running search='alias=julia'
List all vms
filter vms, see the execution module
print additional information about the vm
CLI Example:
salt-run vmadm.list
salt-run vmadm.list search='type=KVM'
salt-run vmadm.list verbose=True
List all compute nodes
print additional information about the node e.g. platform version, hvm capable, ...
CLI Example:
salt-run vmadm.nodes
salt-run vmadm.nodes verbose=True
Reboot one or more vms
filter vms, see the execution module.
reboot only one vm
force reboot, faster but no graceful shutdown
Note
If the search parameter does not contain an equal (=) symbol it will be assumed it will be tried as uuid, hostname, and alias.
CLI Example:
salt-run vmadm.reboot 91244bba-1146-e4ec-c07e-e825e0223aa9
salt-run vmadm.reboot search='alias=marije'
salt-run vmadm.reboot search='type=KVM' one=False
Start one or more vms
filter vms, see the execution module.
start only one vm
Note
If the search parameter does not contain an equal (=) symbol it will be assumed it will be tried as uuid, hostname, and alias.
CLI Example:
salt-run vmadm.start 91244bba-1146-e4ec-c07e-e825e0223aa9
salt-run vmadm.start search='alias=jiska'
salt-run vmadm.start search='type=KVM' one=False
Stop one or more vms
filter vms, see the execution module.
stop only one vm
Note
If the search parameter does not contain an equal (=) symbol it will be assumed it will be tried as uuid, hostname, and alias.
CLI Example:
salt-run vmadm.stop 91244bba-1146-e4ec-c07e-e825e0223aa9
salt-run vmadm.stop search='alias=jody'
salt-run vmadm.stop search='type=KVM' one=False