-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kvm2: Cannot open boot2docker.iso: permission denied #5950
Comments
I suspect this may be an issue with how libvirt is configured on this machine: I suspect that it may be running qemu as another user that does not have access to your ISO. Do you mind sharing the output of the following command:
I am no KVM expert, but I suspect the solution will be:
Alternatively:
|
Thanks for your reply... Here's what I found... It seems that the permission error is due to our home dirs being auto-mounted from a central server via nfs. Looks like it does not like to write across NFS mounts even though that is the current config for all our processing (DNN training) Once I defined MINIKUBE_HOME to a local file system, everything started to work correctly So, the issue is considered resolved... Thanks! |
Similar case here. I believe same error caused by |
Error message was "Ensure that the user listed in /etc/libvirt/qemu.conf has access to your home directory" It is not always the home directory related issue: kubernetes#5950 I have not translated this correctly.
Error message was "Ensure that the user listed in /etc/libvirt/qemu.conf has access to your home directory" It is not always the home directory related issue: kubernetes#5950 I have not translated this correctly.
Error message was "Ensure that the user listed in /etc/libvirt/qemu.conf has access to your home directory" It is not always the home directory related issue: kubernetes#5950 I have not translated this correctly.
I have also tested this with a couple of previous releases, same results and also your latest beta. I own the .minikube dir under my home directory, so there should not be any permission issues downloading and placing files in the right dirs.
Seems that the boot2docker ISO never gets downloaded or placed in the correct place. Here's a listing of the dir structure after executing "minikube start":
lnicotra@tiger18 .minikube# du
16 ./certs
0 ./machines/minikube
0 ./machines
147212 ./cache/iso
341740 ./cache/images/k8s.gcr.io
500 ./cache/images/gcr.io/k8s-minikube
500 ./cache/images/gcr.io
342240 ./cache/images
489452 ./cache
0 ./config
0 ./addons
0 ./files
0 ./logs
14200 ./bin
4 ./profiles/minikube
4 ./profiles
503672 .
Deleting via "minikube delete" does not change the outcome...
Also, should you be providing a basic config.json file? That is also not being created. Please provide a link to a downloadable one if necessary so the user can at least start minikube.
Thanks.
The full output of the command that failed:
lnicotra@tiger18 ~# minikube start
minikube v1.5.2 on Centos 7.3.1611
Automatically selected the 'kvm2' driver (alternates: [none])
Downloading driver docker-machine-driver-kvm2:
> docker-machine-driver-kvm2.sha256: 65 B / 65 B [-------] 100.00% ? p/s 0s
> docker-machine-driver-kvm2: 13.87 MiB / 13.87 MiB [----] 100.00% ? p/s 0s
Downloading VM boot image ...
> minikube-v1.5.1.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
> minikube-v1.5.1.iso: 143.76 MiB / 143.76 MiB [-] 100.00% 42.13 MiB p/s 4s
Creating kvm2 VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
Retriable failure: create: Error creating machine: Error in driver during machine creation: error creating VM: virError(Code=1, Domain=10, Message='internal error: qemu unexpectedly closed the monitor: 2019-11-19T16:08:16.757609Z qemu-kvm: -drive file=/home/lnicotra/.minikube/machines/minikube/boot2docker.iso,format=raw,if=none,id=drive-scsi0-0-0-2,readonly=on: could not open disk image /home/lnicotra/.minikube/machines/minikube/boot2docker.iso: Could not open '/home/lnicotra/.minikube/machines/minikube/boot2docker.iso': Permission denied')
Deleting "minikube" in kvm2 ...
Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /home/lnicotra/.minikube/machines/minikube/config.json: no such file or directory
Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /home/lnicotra/.minikube/machines/minikube/config.json: no such file or directory
Retriable failure: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /home/lnicotra/.minikube/machines/minikube/config.json: no such file or directory
X Unable to start VM: Error loading existing host. Please try running [minikube delete], then run [minikube start] again.: filestore "minikube": open /home/lnicotra/.minikube/machines/minikube/config.json: no such file or directory
Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
The output of the
minikube logs
command:lnicotra@tiger18 ~# minikube logs
*
X api load: filestore "minikube": open /home/lnicotra/.minikube/machines/minikube/config.json: no such file or directory
*
The operating system version: CentOS 7.3.1611
The text was updated successfully, but these errors were encountered: