kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
28.79k stars 4.81k forks source link

Unable to start VM with `kvm2` driver on a remote system #18542

Open dnaeon opened 3 months ago

dnaeon commented 3 months ago

What Happened?

Hey there,

I'm creating a test cluster using kvm2 driver and pointing it to a remote system by passing the --kvm-qemu-uri, e.g.

minikube start --driver=kvm2 --kvm-qemu-uri=qemu+ssh://user@example.org/system  

Above command successfully creates the VM on the remote KVM host, however it fails to start it because it looks like the minikube.rawdisk was downloaded on the local system instead of the remote one.

$ minikube start --driver=kvm2 --kvm-qemu-uri=qemu+ssh://user@example.org/system
πŸ˜„  minikube v1.32.0 on Arch
✨  Using the kvm2 driver based on user configuration
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”₯  Creating kvm2 VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
πŸ”₯  Deleting "minikube" in kvm2 ...
🀦  StartHost failed, but will try again: creating host: create: Error creating machine: Error in driver during machine creation: error creating VM: virError(Code=38, Domain=18, Message='Cannot access storage file '/home/user/.minikube/machines/minikube/minikube.rawdisk': No such file or directory')
πŸ”₯  Creating kvm2 VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
😿  Failed to start kvm2 VM. Running "minikube delete" may fix it: creating host: create: Error creating machine: Error in driver during machine creation: error creating VM: virError(Code=38, Domain=18, Message='Cannot access storage file '/home/user/.minikube/machines/minikube/minikube.rawdisk': No such file or directory')

❌  Exiting due to GUEST_PROVISION: error provisioning guest: Failed to start host: creating host: create: Error creating machine: Error in driver during machine creation: error creating VM: virError(Code=38, Domain=18, Message='Cannot access storage file '/home/user/.minikube/machines/minikube/minikube.rawdisk': No such file or directory')

The minikube.rawdisk was downloaded on the local system (the one from which I've used minikube start ...) instead on the remote system on which the VM was created.

Is this a known issue?

Attach the log file

Logs: logs.txt

Operating System

Other

Driver

KVM2

afbjorklund commented 3 months ago

This feature is unfortunately not supported by minikube, or by the underlying "kvm" driver for docker-machine.

afbjorklund commented 3 months ago
k8s-triage-robot commented 1 week ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale