File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -489,14 +489,16 @@ func (d *Driver) Start() error {
489489 log .Infof ("VM not in restartable state" )
490490 }
491491
492- // Verify that VT-X is not disabled in the started VM
493- vtxIsDisabled , err := d .IsVTXDisabledInTheVM ()
494- if err != nil {
495- return fmt .Errorf ("Checking if hardware virtualization is enabled failed: %s" , err )
496- }
492+ if ! d .NoVTXCheck {
493+ // Verify that VT-X is not disabled in the started VM
494+ vtxIsDisabled , err := d .IsVTXDisabledInTheVM ()
495+ if err != nil {
496+ return fmt .Errorf ("Checking if hardware virtualization is enabled failed: %s" , err )
497+ }
497498
498- if vtxIsDisabled {
499- return ErrMustEnableVTX
499+ if vtxIsDisabled {
500+ return ErrMustEnableVTX
501+ }
500502 }
501503
502504 log .Infof ("Waiting for an IP..." )
You can’t perform that action at this time.
0 commit comments