Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created April 26, 2021 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zulhfreelancer/1ce85228499e69e1c707855bbbda1092 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/1ce85228499e69e1c707855bbbda1092 to your computer and use it in GitHub Desktop.
How to use Virsh command to interact with Kubevirt VMs running in Kubernetes cluster?
$ kubectl get pods
NAME                     READY   STATUS    RESTARTS   AGE
virt-launcher-vm-4sd8h   1/1     Running   0          2d13h



$ kubectl exec -it virt-launcher-vm-4sd8h -- bash
bash-5.0# virsh list
 Id   Name         State
----------------------------
 1    default_vm   running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment