Skip to content

Instantly share code, notes, and snippets.

@vincent-zurczak
Created November 21, 2019 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincent-zurczak/abc2a7e19c167adb010f7fd1cbc1b5a7 to your computer and use it in GitHub Desktop.
Save vincent-zurczak/abc2a7e19c167adb010f7fd1cbc1b5a7 to your computer and use it in GitHub Desktop.
A quick reminder about how to prepare a VMWare (OVF) export to Openstack
#!/bin/sh
# Let's assume you have an OVF image exported from VMWare
# (the *.ovf descriptor, *.vmdk, *.mf and *.nvram files)
# that you want to deploy on Openstack.
# An OVA file is a TAR archive that wraps all this file structure.
BASE_NAME="sample"
tar -cf "${BASE_NAME}.ova" "${BASE_NAME}.ovf" "${BASE_NAME}.mf" "${BASE_NAME}-1.vmdk"
# Verify the list of files
tar -tvf "${BASE_NAME}.ova"
# Upload the image on Openstack.
# See https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/image.html#image-create
openstack image create \
--disk-format vmdk \
--container-format ova \
--private \
--file "${BASE_NAME}" \
"your-image-name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment