-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error getting WinRM host: No ip address #8341
Comments
Are you running integration services? |
I checked the VM and found following integration services enabled:
Am I supposed to run integration services? |
I'd just noticed in some of those issues that people said this issue occurred if they weren't running integration services, so I thought I would ask. I'm not terribly familiar with HyperV so I'll have to do some research to determine which, if any, we need in order to get the VM IP. |
Thank you for your reply. I think I found the issue. The root cause is not from Packer, but from my template. I didn't set However, since operating system installation takes time, especially sometimes we will run windows update, if I wonder if we can add a |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Overview of the Issue
When running my win10_template.json, the VM can be successfully created, but I was stuck at
Waiting for WinRM to become available
and the detailed error log wasError getting WinRM host: No ip address
. It seems Packer can retrieve the MAC address, but there's no ip address with that MAC. However, when I ranarp -a
, I can not see the MAC address as shown in Hyper-V Manager. This is wired. I am guessing whether the MAC address Packer got was wrong. I found similar issues such as #4352, #4404, #5642, #5049, but I didn't find a workaround. Any help will be appreciated.Packer version
From
1.4.5
Simplified Packer Buildfile
packer template
Operating system and Environment details
HostOS: Windows10 Pro 1903
ISO used: Windows10 business edition 1903
Hypervisor: Hyper-V
Log Fragments and crash.log files
packerlog.txt
Let me know if more information needed.
The text was updated successfully, but these errors were encountered: