Skip to content

Instantly share code, notes, and snippets.

@johananl
Created February 17, 2023 10:14
Show Gist options
  • Save johananl/89b1f73187b15c997ce967891accc252 to your computer and use it in GitHub Desktop.
Save johananl/89b1f73187b15c997ce967891accc252 to your computer and use it in GitHub Desktop.
Build Flatcar CAPI images (OVA) for vSphere
# Generate a Packer var file
cat <<EOF > packer-ova.json
{
"vcenter_server":"vcenter.example.com",
"username":"me",
"password":"mypass",
"datacenter": "DC",
"datastore":"Datastore",
"folder": "foo",
"cluster": "10.1.2.3",
"network": "VM Network",
"insecure_connection": "true",
"kubernetes_semver": "v1.26.1",
"convert_to_template": "true"
}
EOF
# Build an image based on the latest stable Flatcar release (https://www.flatcar.org/releases)
PACKER_VAR_FILES=./packer-ova.json make build-node-ova-vsphere-flatcar
# Build an image based on a specific stable Flatcar release
PACKER_VAR_FILES=./packer-ova.json FLATCAR_VERSION=3374.2.0 make build-node-ova-vsphere-flatcar
# Build an image based on a specific Flatcar release in the beta channel
PACKER_VAR_FILES=./packer-ova.json FLATCAR_CHANNEL=beta FLATCAR_VERSION=3493.1.0 make build-node-ova-vsphere-flatcar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment