ddelnano / packer-plugin-xenserver

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

Support changes of IP address on reboot of VM #61

Open Erik142 opened 1 year ago

Erik142 commented 1 year ago

When using packer in combination with this plugin, to create images of certain operating systems such as Debian, I am having the following issue:

I am using the Debian 11.6.0 netinst iso to install Debian via network mirrors. This means that the VM retrieves an IP address very early during the installation process, which this packer plugin notices. However, when the VM restarts after a successful installation of the OS, the IP address for the VM tends to change, since there is a change in the DHCP client ID. I am inclined to believe that Debian isn't the only OS that would have this issue.

Therefore, I think it would be beneficial for this plugin to be able to react to changes of the IP address for the VM. If the HTTP server is used to detect the IP address for the VM, it would be up to the user to perform an HTTP request to the HTTP server when the IP address has changed. Otherwise, the plugin should continuously check whether the IP address has changed by means of the xe-guest-utilities package on the VM.

ddelnano commented 1 year ago

@Erik142 thanks for the contribution! I'm traveling through April 23rd, but I'm hoping to have time to review your PR over the next week.

ddelnano commented 1 year ago

@Erik142 apologies for the delay on this. I'm hoping to get to it in the next week.

hoerup commented 8 months ago

@ddelnano any progress ?

Erik142 commented 5 months ago

@ddelnano just giving a friendly nudge 😄 Is there anything that I can provide in order to ease the review of #62 ? I recently force pushed my commit in the PR so that it builds again on the latest main branch. Is there anything that is missing from my side? Thanks! 👍🏻

mire3212 commented 4 months ago

I'm also experiencing this issue on Debian 12.5 netinst ISO