Skip to content

Commit 27e7050

Browse files
committed
add solution message for socket_vmnet permission denied
1 parent 46bccc7 commit 27e7050

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

pkg/drivers/qemu/qemu.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ func cmdOutErr(cmdStr string, args ...string) (string, string, error) {
509509
if err != nil {
510510
if ee, ok := err.(*exec.Error); ok && ee == exec.ErrNotFound {
511511
err = fmt.Errorf("mystery error: %v", ee)
512+
} else {
513+
err = fmt.Errorf("%s: %v", strings.Trim(stderrStr, "\n"), err)
512514
}
513515
} else {
514516
// also catch error messages in stderr, even if the return code looks OK

pkg/minikube/reason/known_issues.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,16 @@ Alternatively, you can try upgrading to the latest hyperkit version, or using an
578578
},
579579
Regexp: re(`VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path`),
580580
},
581+
582+
// QEMU
583+
{
584+
Kind: Kind{
585+
ID: "PR_QEMU_SOCKET_VMNET_DENIED",
586+
ExitCode: ExProviderError,
587+
Advice: "socket_vmnet was installed with an incorrect group, delete this cluster 'minikube delete' and update the group 'sudo chown root:$(stat -f \"%Sg\" ~) /var/run/socket_vmnet' and try again.",
588+
},
589+
Regexp: re(`Failed to connect to "/var/run/socket_vmnet": Permission denied`),
590+
},
581591
}
582592

583593
// driverIssues are specific to a libmachine driver

0 commit comments

Comments
 (0)