diff options
Diffstat (limited to 'extensions/virtualbox-ssh.write')
-rwxr-xr-x | extensions/virtualbox-ssh.write | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/virtualbox-ssh.write b/extensions/virtualbox-ssh.write index 95643a4a..86b813cc 100755 --- a/extensions/virtualbox-ssh.write +++ b/extensions/virtualbox-ssh.write @@ -96,10 +96,14 @@ class VirtualBoxPlusSshWriteExtension(writeexts.WriteExtension): 'dummy-argv0', 'vbox', vdi_path, str(st.st_size), ] - subprocess.check_call( + xfer_hole_proc = subprocess.Popen( ['python', xfer_hole_path, raw_disk], + stdout=subprocess.PIPE) + recv_hole_proc = subprocess.Popen( ['ssh', ssh_host] + map(writeexts.shell_quote, ssh_remote_cmd), - stdout=None, stderr=None) + stdin=xfer_hole_proc.stdout) + xfer_hole_proc.stdout.close() + recv_hole_proc.communicate() def virtualbox_version(self, ssh_host): 'Get the version number of the VirtualBox running on the remote host.' |