Windows VM is going to Stopped state after creation using catalog and Yaml

Posted on

HI All,

We are trying to create Windows 2019 server VM from Virtual machine -> catalog option. Just after creation, VM is going to Stopped state.

We have used below options to create VM,
CD Source Image URL - "http://192.168.x.x/ignition/win2019.qcow2"
Disk Source - Blank and PVC(clone PVC).
PVC Claim project - default

Alternatively we used below yaml file also to cretae this VM but seeing same issue.
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
labels:
kubevirt.io/vm: vm-app
name: vm-app
spec:
dataVolumeTemplates:
- metadata:
name: app-dv
spec:
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 580Gi
storageClassName: hostpath-provisioner
source:
http:
url: "http://192.168.x.x/ignition/win2019.qcow2"
secretRef: ""
certConfigMap: ""
status: {}
running: true
template:
metadata:
labels:
kubevirt.io/vm: vm-app
spec:
nodeSelector:
kubernetes.io/hostname: "ocp412-node-2.ocp412.xxx.com"
domain:
devices:
disks:
- disk:
bus: virtio
name: datavolumedisk41
machine:
type: ""
resources:
requests:
memory: 16Gi
cpu: 4
terminationGracePeriodSeconds: 180
volumes:
- dataVolume:
name: app-dv
name: datavolumedisk41
status: {}
~

Responses