Skip to content

Commit 9cf648d

Browse files
danmihai1Redent0r
authored andcommitted
Relax the StartVM timeout
Signed-off-by: Dan Mihai <[email protected]>
1 parent abfe959 commit 9cf648d

File tree

1 file changed

+3
-1
lines changed
  • src/runtime/virtcontainers

1 file changed

+3
-1
lines changed

src/runtime/virtcontainers/clh.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,9 @@ func (clh *cloudHypervisor) StartVM(ctx context.Context, timeout int) error {
688688
}
689689
clh.state.PID = pid
690690

691-
ctx, cancel := context.WithTimeout(ctx, clh.getClhAPITimeout()*time.Second)
691+
// TODO: revisit the value of this timeout. It currently allows a slower guest VM startup.
692+
// ctx, cancel := context.WithTimeout(context.Background(), clh.getClhAPITimeout()*time.Second)
693+
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
692694
defer cancel()
693695

694696
if err := clh.bootVM(ctx); err != nil {

0 commit comments

Comments
 (0)