hashicorp / hashicorp/packer-plugin-hyperv

SSH timeout because IP address changes

Open
#17 3 comments 3 reactions 0 assignees View on GitHub
builder/hyperv question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.