In this final part to creating an OVF template to deploy virtual machines for Nextcloud servers we export the VM we have created in the first two parts.

Export OVF

Back in the ESXi Host Client select the completed template VM, make sure it's shut down and of course you've completed all preparation steps. Go to the Actions menu and select Export.

Host client export VM

The Download File popup will open with a list of files to export:

  • The .ovf descriptor file with all the VM settings
  • The .mf manifest file
  • A .vmdk compressed disk image file for each disk
  • An additional .nvram file is listed but not selected, we don't need this.

Confirm files to export

Click on export, and providing you haven't blocked popups the download will then start through your browser.

OVF download

The files will end up in your default download directory so once all six have been downloaded move them to somewhere safe as we will be needing them later.

Deployment Workflow

Now that we've created our template, to deploy a new Nextcloud server the workflow will be as follows:

  1. Create a new virtual machine using the saved X_U2004-NC-1 OVF template and let it boot when ready
  2. Add details to the Ansible Inventory
  3. Run the playbooks

The Ansible Inventory configuration is covered in Ansible Inventory and creation of the Playbooks starts with Playbook 1 - OS & Ansible Preparation.

Washup

There's not a lot that needs changing on the VM definition. Maybe remove the CD/DVD drive once OS configuration is complete and possibly enable secure boot, but as this is an ESXi 7.0 U2 virtual machine created on an ESXi 7.0 U2 system this should be valid for several years yet assuming that I upgrade the host at reasonable intervals.

With regards to Ubuntu, at the time of writing 20.04 LTS has approximately 14 months before it reaches end of life in April 2025 (unless you take out an Ubuntu Pro subscription) so again that's still a useful lifetime and for non-production workloads you could argue it'll be relatively safe to keep using for a while after that.

By not installing any other applications into the template we avoid introducing limitations based on their lifetimes, even if it looks like it could significantly speed up the deployment process. But we're getting a bit ahead of ourselves here 'cos we've not even looked at the playbooks that'll do that work. Ugh, spoilers. I know...