- [[https://github.com/davidvossel/kubevirt-demo-manifests][davidvossel/kubevirt-demo-manifests]]

* Installation

export KV_RELEASE=v0.55.0
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${KV_RELEASE}/kubevirt-operator.yaml
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${KV_RELEASE}/kubevirt-cr.yaml

export CDI_RELEASE=v1.52.0
kubectl apply -f https://github.com/kubevirt/containerized-data-importer/releases/download/$CDI_RELEASE/cdi-operator.yaml
kubectl apply -f https://github.com/kubevirt/containerized-data-importer/releases/download/$CDI_RELEASE/cdi-cr.yaml

#+begin_src yaml
  apiVersion: kubevirt.io/v1
  kind: VirtualMachine
  metadata:
    name: testvm
  spec:
    running: true
    template:
      metadata:
        labels:
          kubevirt.io/size: small
          kubevirt.io/domain: testvm
      spec:
        domain:
          devices:
            disks:
              - name: containerdisk
                disk:
                  bus: virtio
              - name: cloudinitdisk
                disk:
                  bus: virtio
          resources:
            requests:
              memory: 1024M
        volumes:
          - name: containerdisk
            containerDisk:
              image: quay.io/kubevirt/fedora-cloud-container-disk-demo
          - cloudInitNoCloud:
              userData: |-
                #cloud-config
                password: fedora
                chpasswd: { expire: False }
            name: cloudinitdisk
#+end_src
