diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-06-03 15:49:53 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-06-03 16:59:41 +0000 |
commit | 480aea39aa2b9298e0828bff1c2b1a2ec61a2124 (patch) | |
tree | b8150d860649aa4a11538c10dc551025ae8c4b1a /kvm.write | |
parent | 7412ca5200695a99983c0bfb98a708808be6d639 (diff) | |
download | definitions-480aea39aa2b9298e0828bff1c2b1a2ec61a2124.tar.gz |
kvm.write: Set VM to autostart if specified
Diffstat (limited to 'kvm.write')
-rwxr-xr-x | kvm.write | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -115,6 +115,9 @@ class KvmPlusSshWriteExtension(morphlib.writeexts.WriteExtension): cmdline += ['--noreboot'] cliapp.ssh_runcmd(ssh_host, cmdline) + if autostart: + cliapp.ssh_runcmd(ssh_host, + ['virsh', '--connect', 'qemu:///system', 'autostart', vm_name]) KvmPlusSshWriteExtension().run() |