diff --git a/pkg/machine/applehv/config.go b/pkg/machine/applehv/config.go index 91e5cc899a..250c27fcc5 100644 --- a/pkg/machine/applehv/config.go +++ b/pkg/machine/applehv/config.go @@ -60,7 +60,8 @@ func (v AppleHVVirtualization) IsValidVMName(name string) (bool, error) { if err != nil { return false, err } - if _, err := loadMacMachineFromJSON(configDir); err != nil { + fqName := filepath.Join(configDir, fmt.Sprintf("%s.json", name)) + if _, err := loadMacMachineFromJSON(fqName); err != nil { return false, err } return true, nil