hashicorp / hashicorp/packer-plugin-hyperv
SSH timeout because IP address changes
- Dominant language
- Go
- Stars
- 27
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
_This issue was originally opened by @matthew-hickok as hashicorp/packer#5642. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._
- Packer version: v1.1.2
- Host platform: Hyper-V on Windows Server 2016
- Guest: CoreOS
I'm getting stuck creating a Hyper-V image for CoreOS. I've get everything working on VMware Workstation, but with Hyper-V I get stuck waiting for SSH to become available. I noticed that when Packer initially creates the VM, it boots to disc, has one IP address, and then when it reboots after the install to hard disk, the IP address is different. So it makes sense that SSH times out.
How do people typically get around this? And how does Packer normally detect the IP address of the guest?
Contributor guide
Assessment
This issue has not been assessed yet.