Technology: Kubevirt/Kubernetes/Containers/VNC
I have downloaded an 2K12 windows iso image, and imported it into CDI. It was successful, and we check the below output.
[root@instance-2]# ./virtctl image-upload --image-path=/windows/WIN.ISO --pvc-name=iso-win2k12 --access-mode=ReadWriteMany --pvc-size=5G --uploadproxy-url=https://10.101.147.11 --insecure
PVC default/iso-win2k12 not found
PersistentVolumeClaim default/iso-win2k12 created
Waiting for PVC iso-win2k12 upload pod to be ready...
Pod now ready
Uploading data to https://10.101.147.11
4.23 GiB / 4.23 GiB [===========================================================================================================================] 100.00% 33s
Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress
Processing completed successfully
Uploading /windows/WIN.ISO completed successfully
Now, I created a YAML definition for my VM as below.
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: winhd
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 15Gi
---
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
name: win2k12-iso
spec:
running: false
template:
metadata:
labels:
kubevirt.io/domain: win2k12-iso
spec:
domain:
cpu:
cores: 2
devices:
disks:
- bootOrder: 1
cdrom:
bus: sata
name: cdromiso
- disk:
bus: virtio
name: harddrive
- cdrom:
bus: sata
name: virtiocontainerdisk
machine:
type: q35
resources:
requests:
memory: 4Gi
volumes:
- name: cdromiso
persistentVolumeClaim:
claimName: iso-win2k12
- name: harddrive
persistentVolumeClaim:
claimName: winhd
- containerDisk:
image: kubevirt/virtio-container-disk
name: virtiocontainerdisk
My pod is up and running, and there are no errors.
Now, I want to access the Windows server on browser, So I am using NoVNC with below YAML definition .
https://raw.githubusercontent.com/wavezhang/virtVNC/master/k8s/virtvnc.yaml
It is correct, provided necessary cluster role permission to my service account, and assign it to my deployment
On Browser, when I click on it, I am observing the error. VNC
I have no clue have to go forward from here. Also, very few articles or documentation to follow.