Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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