Last active
June 3, 2022 02:36
-
-
Save intlabs/1121af5e9d09b25233d5ff100fa5797f to your computer and use it in GitHub Desktop.
aods helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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