Skip to content

Commit

Permalink
Fix added vMI configuration to support ARM
Browse files Browse the repository at this point in the history
Signed-off-by: hellocloudnative <[email protected]>
  • Loading branch information
hellocloudnative committed Nov 3, 2021
1 parent 0bef496 commit b3b51fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions examples/vmi-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
terminationGracePeriodSeconds: 0
volumes:
- containerDisk:
image: registry:5000/kubevirt/cirros-container-disk-demo:devel
image: registry:5000/kubevirt/cirros-container-disk-demo:devel
name: containerdisk
- cloudInitNoCloud:
userData: |
Expand All @@ -35,4 +35,3 @@ spec:
- emptyDisk:
capacity: 2Gi
name: emptydisk

1 change: 1 addition & 0 deletions tools/vms-generator/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,7 @@ func GetVMIMacvtap() *v1.VirtualMachineInstance {
return vmi
}

// The minimum memory for UEFI boot on Arm64 is 256Mi
func GetVMIARM() *v1.VirtualMachineInstance {
vmi := getBaseVMI(VmiARM)
vmi.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("256Mi")
Expand Down

0 comments on commit b3b51fc

Please sign in to comment.