Virtual machines can be deployed to a VMware Edge Cloud Orchestrator host from the Git repository by including a YAML file that defines how to deploy the VM. The following code block shows an example of deploying a Photon Linux VM. You must not include http/https prefix in the imageName address to the OVA. It is detected automatically and is compatible with the container image naming specification.
apiVersion: vmoperator.vmware.com/v1alpha1 kind: VirtualMachine metadata: name: photon-vm namespace: default annotations: vmoperator.vmware.com/image-supported-check: disable spec: className: guaranteed-small imageName: packages.vmware.com/photon/4.0/GA/ova/photon-hw11-4.0-1526e30ba0.ova powerState: poweredOn networkInterfaces: - networkName: "VM Network" ethernetCardType: "vmxnet3" vmMetadata: configMapName: user-data-photon transport: CloudInit --- apiVersion: v1 kind: ConfigMap metadata: name: user-data-photon namespace: default data: user-data: | #cloud-config ssh_pwauth: true users: - name: root sudo: ALL=(ALL) NOPASSWD:ALL lock_passwd: false passwd: '$6$rounds=4096$g4hhnNzlgGol6ghX$E.Qu.vzMA.qzufAhwI84THkFSTjGCTognWAiSt8uioMKjKDUF1wPtIAiKaSyIaT/JuunlWk8pDetIgYLT81Nr0' shell: /bin/bash write_files: - content: | VMware Edge Cloud Orchestrator VM service says Hello World path: /helloworld