Cannot run start an VM using KubeVirt with GKE

3/19/2020

Currently I try to use KubeVirt with GKE cluster.

What I have done (follow the official document):

  1. Create a GKE cluster with 3 nodes via GCP console
  2. Install kubectl locally and connect to this cluster
  3. Install kubevirt via kubectl
  4. Install virtctl locally
  5. set debug.useEmulation to true
  6. create the testvm (follow the demo) All the steps above work fine.

But now I have troubles to start the vm

  1. If I try to start it via "virtctl start testvm", I get the following error message:

"Error starting VirtualMachine the server has asked for the client to provide credentials"

  1. If I try to modify the VM template to set it running by default, it doesn't work either.In the virt-launcher pod, the compute container starts successfully but the volumecontainerdisk fails, with the following log:
standard_init_linux.go:211: exec user process caused "permission denied"

Any help is appreciated, thanks.

-- chen lin
google-kubernetes-engine
kubernetes

0 Answers