Skip to content

Commit 8e5c7be

Browse files
committed
Ignore virtualization check for arm64 for Linux platform
Looks like for arm64 hardware there is no `vmx|svm` flag which point out if virtualization is enabled from bios or not. There is another way to handle it using `virt-host-validate` command but that do more test which we might not required. As of now this pr is going to ignore the virtualization check on arm64 to unblock CI for arm.
1 parent facc771 commit 8e5c7be

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/crc/preflight/preflight_checks_linux.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"os/user"
1010
"path/filepath"
1111
"regexp"
12+
"runtime"
1213
"strings"
1314
"text/template"
1415

@@ -45,6 +46,10 @@ func checkRunningInsideWSL2() error {
4546
}
4647

4748
func checkVirtualizationEnabled() error {
49+
if runtime.GOARCH == "arm64" {
50+
logging.Debug("Ignoring virtualization check for arm64")
51+
return nil
52+
}
4853
logging.Debug("Checking if the vmx/svm flags are present in /proc/cpuinfo")
4954
// Check if the cpu flags vmx or svm is present
5055
flags, err := getCPUFlags()

0 commit comments

Comments
 (0)