summaryrefslogtreecommitdiff
path: root/morphlib/exts/kvm.write
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2013-06-03 15:47:49 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2013-06-03 16:59:37 +0000
commitc70a8550b1ffdbf32bf2280d696d6a8ae79a8a25 (patch)
tree317adce65aa9757ba7a4614203589ee8032d166b /morphlib/exts/kvm.write
parent86cbc1bc8ef84dc9496d7723a15dec9b43eacb73 (diff)
downloadmorph-c70a8550b1ffdbf32bf2280d696d6a8ae79a8a25.tar.gz
kvm.write: use ssh_runcmd
Diffstat (limited to 'morphlib/exts/kvm.write')
-rwxr-xr-xmorphlib/exts/kvm.write7
1 files changed, 3 insertions, 4 deletions
diff --git a/morphlib/exts/kvm.write b/morphlib/exts/kvm.write
index ae287fe5..4bfff8c4 100755
--- a/morphlib/exts/kvm.write
+++ b/morphlib/exts/kvm.write
@@ -108,13 +108,12 @@ class KvmPlusSshWriteExtension(morphlib.writeexts.WriteExtension):
ram_mebibytes = str(self.get_ram_size() / (1024**2))
- cmdline = ['ssh', ssh_host,
- 'virt-install', '--connect qemu:///system', '--import',
+ cmdline = ['virt-install', '--connect', 'qemu:///system', '--import',
'--name', vm_name, '--vnc', '--ram=%s' % ram_mebibytes,
- '--disk path=%s,bus=ide' % vm_path] + attach_opts
+ '--disk', 'path=%s,bus=ide' % vm_path] + attach_opts
if not autostart:
cmdline += ['--noreboot']
- cliapp.runcmd(cmdline)
+ cliapp.ssh_runcmd(ssh_host, cmdline)
KvmPlusSshWriteExtension().run()