fixed message for vhci mode only linux. and changed readme

This commit is contained in:
2026-02-19 07:25:27 +01:00
parent 1c4ebddd05
commit 4d33063b82
7 changed files with 27 additions and 2 deletions
+9
View File
@@ -166,3 +166,12 @@ func IsVHCIAvailable() bool {
_, err := os.Stat(vhciBasePath)
return err == nil
}
// VHCIUnavailableError returns an error describing why VHCI is not available,
// or nil if VHCI is ready to use.
func VHCIUnavailableError() error {
if IsVHCIAvailable() {
return nil
}
return fmt.Errorf("vhci-hcd Kernel-Modul nicht geladen (ausfuehren: sudo modprobe vhci-hcd)")
}