Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 730 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 730 Bytes

a boot OnDefineDomain sidecar

domain.os.boot

apiVersion: kubevirt.io/v1
kind: VirtualMachine
spec:
  template:
    metadata:
      annotations:
+       hooks.kubevirt.io/hookSidecars: '[{"args": ["--version", "v1alpha3"],"image": "ghcr.io/go-bai/kubevirt-boot-sidecar:v1.2.0"}]'
+       os.vm.kubevirt.io/boot: '{"boot":[{"dev":"hd"},{"dev":"cdrom"}]}'

domain.os.bootmenu

apiVersion: kubevirt.io/v1
kind: VirtualMachine
spec:
  template:
    metadata:
      annotations:
+       hooks.kubevirt.io/hookSidecars: '[{"args": ["--version", "v1alpha3"],"image": "ghcr.io/go-bai/kubevirt-boot-sidecar:v1.2.0"}]'
+       os.vm.kubevirt.io/boot: '{"bootmenu":{"enable": "yes", "timeout": "10000"}}'