Skip to content

Unable to access VM on browser #6

Description

@princesarvaiya

Hi,

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..

On Browser, when I click on it, I am observing the error https://i.stack.imgur.com/ptQxH.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions