Closed zimmnik closed 1 year ago
I need recheck this issue, because stock openwrt image have only one preconfigured interface
updated issue description
Hi @zimmnik,
I'm a little bit torn over this, as setting up an address manually via ssh_host
is prone to user errors, but in the meantime, it shouldn't be silently ignored for sure.
You can find in the plugin's documentation that there is an option to use other methods to obtain the IP address of the VM. In your case, I think you can use the arp
method. The benefit of this is packer will wait until there is an IP address present on the interface. The downside is that if there is no communication coming from that interface, there is no way for the host machine to learn the IP-MAC pairing on it's interfaces.
However, After giving it some thoughts, I must acknowledge that there could be a need (like in your case) where explicitly specifying the SSH address is necessary and I will look into a way to support that.
Thank you for bringing up this issue
Mission: install package from public repo to openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img image.
Conditions: Backed-in root password empty, qemu-agent absent. Image have one preconfigured interface
Problem: Packer ignores ssh_host key and trying to find dynamic IP address via qemu_agent
TIP Bridge interface on host can be quickly created via NetworkManager
Code: