Control virtual machines via Salt
salt.runners.virt.
force_off
(name)¶Force power down the named virtual machine
salt.runners.virt.
host_info
(host=None)¶Return information about the host connected to this master
salt.runners.virt.
hyper_info
(hyper=None)¶Return information about the host connected to this master
salt.runners.virt.
init
(name, cpu, mem, image, hyper=None, hypervisor='kvm', host=None, seed=True, nic='default', install=True, start=True, disk='default', saltenv='base')¶This routine is used to create a new virtual machine. This routines takes a number of options to determine what the newly created virtual machine will look like.
salt.runners.virt.
list
(host=None, quiet=False, hyper=None)¶List the virtual machines on each host, this is a simplified query, showing only the virtual machine names belonging to each host. A single host can be passed in to specify an individual host to list.
salt.runners.virt.
migrate
(name, target='')¶Migrate a VM from one host to another. This routine will just start the migration and display information on how to look up the progress.
salt.runners.virt.
next_host
()¶Return the host to use for the next autodeployed VM. This queries the available host and executes some math the determine the most "available" next host.
salt.runners.virt.
next_hyper
()¶Return the host to use for the next autodeployed VM. This queries the available host and executes some math the determine the most "available" next host.
salt.runners.virt.
pause
(name)¶Pause the named VM
salt.runners.virt.
purge
(name, delete_key=True)¶Destroy the named VM
salt.runners.virt.
query
(host=None, quiet=False, hyper=None)¶Query the virtual machines. When called without options all hosts are detected and a full query is returned. A single host can be passed in to specify an individual host to query.
salt.runners.virt.
reset
(name)¶Force power down and restart an existing VM
salt.runners.virt.
resume
(name)¶Resume a paused VM
salt.runners.virt.
start
(name)¶Start a named virtual machine
salt.runners.virt.
vm_info
(name, quiet=False)¶Return the information on the named VM