xenserver / packer-plugin-xenserver

A builder plugin for Packer.IO to support building Citrix Hypervisor images.
Mozilla Public License 2.0
101 stars 114 forks source link

Fix SSH handling in pool environment. #78

Closed tinkerborg closed 7 years ago

tinkerborg commented 7 years ago

This adds a new build step executed after StepStartVmPaused. This sets the "ssh_address" state variable to the IP of the host the VM was started on. This enables SSH commands to work correctly in a pool environment.

This also modifies SSH calls to use this address rather than config.HostIp

Fixes #47

rdobson commented 7 years ago

Thanks @tinkerborg for the fix!