간단한 VM 배포&실행

vm 배포

kubectl apply -f <https://kubevirt.io/labs/manifests/vm.yaml>

vm 실행

virtctl cli를 설치했을 경우

virtctl start testvm

krew virt ~ 를 통해 virtctl을 설치했을 경우

kubectl virt start testvm

vm에 접속

virtctl cli를 설치했을 경우

virtctl console testvm

krew virt ~ 를 통해 virtctl을 설치했을 경우

kubectl virt console testvm

id & password는 콘솔에 표시됨

image.png

콘솔을 종료하려면

ctrl + ]

vm에 중지

virtctl cli를 설치했을 경우

virtctl stop testvm