Skip to content

Latest commit

 

History

History
 
 

example-hook-sidecar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

KubeVirt SMBIOS hook sidecar

To use this hook, use following annotations:

annotations:
  # Request the hook sidecar
  hooks.kubevirt.io/hookSidecars: '[{"image": "registry:5000/kubevirt/example-hook-sidecar:devel"}]'
  # Overwrite base board manufacturer name
  smbios.vm.kubevirt.io/baseBoardManufacturer: "Radical Edward"

Example

# Create a VM requesting the hook sidecar
cluster/kubectl.sh create -f cluster/examples/hook-with-sidecar-hook.yml

# Once the VM is ready, connect to its display and login using name and password "fedora"
cluster/virtctl.sh vnc vm-with-sidecar-hook

# Install dmidecode
sudo dnf install -y dmidecode

# Check whether the base board manufacturer value was successfully overwritten
sudo dmidecode -s baseboard-manufacturer