From eafbf0c3456ba8d59abc88830116a64282e5ff2e Mon Sep 17 00:00:00 2001 From: Palash Oswal Date: Sat, 3 Oct 2020 18:05:55 +0530 Subject: vm/qemu/qemu.go: update SCP Timeout for Slower devices/Nested Virtualisation Increased the timeout for SCP of the initial binaries after boot to 10 minutes to allow more time in a slow environment. This was causing timeouts often in a nested virtualised environment on a slower hardware. --- vm/qemu/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index 13716d48e..3034382ce 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -522,7 +522,7 @@ func (inst *instance) Copy(hostSrc string) (string, error) { if inst.debug { log.Logf(0, "running command: scp %#v", args) } - _, err := osutil.RunCmd(3*time.Minute, "", "scp", args...) + _, err := osutil.RunCmd(10*time.Minute, "", "scp", args...) if err != nil { return "", err } -- cgit mrf-deployment