windows-dv.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. apiVersion: kubevirt.io/v1
  2. kind: VirtualMachine
  3. metadata:
  4. labels:
  5. kubevirt.io/vm: vm-windows-datavolume
  6. name: vm-windows-datavolume
  7. spec:
  8. running: false
  9. template:
  10. metadata:
  11. labels:
  12. kubevirt.io/vm: vm-windows-datavolume
  13. spec:
  14. domain:
  15. cpu:
  16. cores: 1
  17. model: host-model
  18. sockets: 1
  19. threads: 1
  20. devices:
  21. disks:
  22. - disk:
  23. bus: virtio
  24. name: windows-volume-disk1
  25. interfaces:
  26. - masquerade: {}
  27. model: e1000
  28. name: default
  29. machine:
  30. type: q35
  31. resources:
  32. requests:
  33. memory: 2048M
  34. firmware:
  35. bootloader:
  36. efi:
  37. secureBoot: true
  38. features:
  39. acpi: {}
  40. apic: {}
  41. hyperv:
  42. relaxed: {}
  43. spinlocks:
  44. spinlocks: 8191
  45. vapic: {}
  46. smm: {}
  47. volumes:
  48. - dataVolume:
  49. name: windows-dv
  50. name: windows-volume-disk1
  51. networks:
  52. - name: default
  53. pod: {}
  54. dataVolumeTemplates:
  55. - metadata:
  56. name: windows-dv
  57. spec:
  58. pvc:
  59. accessModes:
  60. - ReadWriteOnce
  61. resources:
  62. requests:
  63. storage: 40Gi
  64. storageClassName: hostpath-csi
  65. source:
  66. http:
  67. url: http://iso.wugi.info/windows/windows_10.qcow2