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. --- CONTRIBUTORS | 1 + vm/qemu/qemu.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e3a7857a6..7bb381c12 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -77,3 +77,4 @@ Jouni Högander VMware Radoslav Gerganov Suraj K Suresh +Palash Oswal 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