Module for managing VMs on SmartOS
salt.modules.smartos_vmadm.destroy(uuid=None)¶Hard power down the virtual machine, this is equivalent to pulling the power
CLI Example:
salt '*' virt.destroy <uuid>
salt.modules.smartos_vmadm.get_macs(uuid=None)¶Return a list off MAC addresses from the named VM
CLI Example:
salt '*' virt.get_macs <uuid>
salt.modules.smartos_vmadm.init(**kwargs)¶Initialize a new VM
CLI Example:
salt '*' virt.init image_uuid='...' alias='...' [...]
salt.modules.smartos_vmadm.list_active_vms()¶Return a list of uuids for active virtual machine on the minion
CLI Example:
salt '*' virt.list_active_vms
salt.modules.smartos_vmadm.list_inactive_vms()¶Return a list of uuids for inactive virtual machine on the minion
CLI Example:
salt '*' virt.list_inactive_vms
salt.modules.smartos_vmadm.list_vms()¶Return a list of virtual machine names on the minion
CLI Example:
salt '*' virt.list_vms
salt.modules.smartos_vmadm.reboot(uuid=None)¶Reboot a domain via ACPI request
CLI Example:
salt '*' virt.reboot <uuid>
salt.modules.smartos_vmadm.setmem(uuid, memory)¶Change the amount of memory allocated to VM. <memory> is to be specified in MB.
Note for KVM : this would require a restart of the VM.
CLI Example:
salt '*' virt.setmem <uuid> 512
salt.modules.smartos_vmadm.shutdown(uuid=None)¶Send a soft shutdown signal to the named vm
CLI Example:
salt '*' virt.shutdown <uuid>
salt.modules.smartos_vmadm.start(uuid=None)¶Start a defined domain
CLI Example:
salt '*' virt.start <uuid>
salt.modules.smartos_vmadm.vm_info(uuid=None)¶Return a dict with information about the specified VM on this CN
CLI Example:
salt '*' virt.vm_info <uuid>
salt.modules.smartos_vmadm.vm_virt_type(uuid=None)¶Return VM virtualization type : OS or KVM
CLI Example:
salt '*' virt.vm_virt_type <uuid>
Current Salt release: 2014.1.7
Docs for previous releases on salt.rtfd.org.