ddelnano / packer-plugin-xenserver

A builder plugin for Packer.IO to support building XenServer images.
Mozilla Public License 2.0
76 stars 37 forks source link

Fix XenServer tools guest IP address resolution #33

Closed liath closed 2 years ago

liath commented 2 years ago

There seems to be some kind of scope mismatch here as the IP is correctly retrieved but seems to have been stashed in a shadowed variable. Here's a screencap of the issue in action: image Note that the IP is correct at Got IP '192.168.207.159' from XenServer tools but then blank in Got IP address ''. This results in the connection never completing.

Here's a screencap after my patch showing the IP address shows in both log lines and the connection is established: image

ddelnano commented 2 years ago

I tested this as part of #32.