Skip to content

Instantly share code, notes, and snippets.

@intlabs
Last active June 3, 2022 02:36
Show Gist options
  • Select an option

  • Save intlabs/1121af5e9d09b25233d5ff100fa5797f to your computer and use it in GitHub Desktop.

Select an option

Save intlabs/1121af5e9d09b25233d5ff100fa5797f to your computer and use it in GitHub Desktop.
aods helpers
root_vm() {
vm=$2
ns=$1
kubectl exec -n ${ns} $(kubectl get -n ${ns} pod -l vm.kubevirt.io/name=${vm} -o name) -- virsh set-user-password 1 root password
virtctl console -n ${ns} ${vm}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment