From 59db073eb15a11cda7a24a0c43730e06ea47be5e Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Tue, 14 Apr 2020 09:31:14 +0000 Subject: [PATCH] change default vmx version and update doc --- doc/image.md | 14 ++++++++++++++ packer/example.json | 5 ++++- roles/rocketchat/defaults/main.yml | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/image.md b/doc/image.md index 7ee677bc..54bc9831 100644 --- a/doc/image.md +++ b/doc/image.md @@ -74,3 +74,17 @@ Build the OVA: ```sh make image build=packer/mymediaserver.json ``` + +## Troubleshoot + +### Hypervisor version incompatibility + +If the produced OVA is not compatible with the hypervisor, try to change the "VM compatibility mode" by changing the value of `version` option. + +More infromation: + +- <https://packer.io/docs/builders/vmware-iso.html#version> + +### Build failed + +If a build fail at one of the Ansible steps, you can set to `true` the `keep_registred` and `skip_export` options, then connect to the VM on the hypervisor and do some diagnostics. diff --git a/packer/example.json b/packer/example.json index fd1539a1..16af3774 100644 --- a/packer/example.json +++ b/packer/example.json @@ -15,6 +15,7 @@ "builders": [ { "type": "vmware-iso", + "version": 11, "vm_name": "ubicast-{{ user `name` }}", "display_name": "ubicast-{{ user `name` }}", "output_directory": "output", @@ -54,7 +55,9 @@ "ssh_password": "ubicast", "ssh_timeout": "15m", "headless": false, - "shutdown_command": "shutdown -P now" + "shutdown_command": "shutdown -P now", + "keep_registered": false, + "skip_export": false } ], "provisioners": [ diff --git a/roles/rocketchat/defaults/main.yml b/roles/rocketchat/defaults/main.yml index 23410fc1..a98a54aa 100644 --- a/roles/rocketchat/defaults/main.yml +++ b/roles/rocketchat/defaults/main.yml @@ -34,7 +34,7 @@ rc_npm_packages: rc_node_version: 12.14.0 # version & archive url -rc_version: 3.0.12 +rc_version: 3.1.0 rc_url: https://releases.rocket.chat/{{ rc_version }}/download # where to install -- GitLab