Skip to content

Instantly share code, notes, and snippets.

@fabiand
Created June 29, 2020 12:17
Show Gist options
  • Save fabiand/baa13c12eb16f1f0f0ff8ce9025da54a to your computer and use it in GitHub Desktop.
Save fabiand/baa13c12eb16f1f0f0ff8ce9025da54a to your computer and use it in GitHub Desktop.
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
labels:
special: vmi-kernel-boot
name: vmi-kernel-boot
spec:
domain:
devices:
firmware:
kernelBoot:
volumeName: kernelbootimage # this is what is missing in the pr
kernelPath: vmlinuz # this path is relative to the root of volume volumeName
initrdPath: initrd
cmdline: console=ttyS0
resources:
requests:
memory: 1Gi
terminationGracePeriodSeconds: 0
volumes:
- containerDisk:
image: dockerhub.io/hritivi/my-container-withkernel-and-initrd
name: kernelbootimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment