Skip to content
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

hyper-v fix when management interface is not part of virtual switch #8017

Merged
merged 1 commit into from
Sep 3, 2019
Merged

hyper-v fix when management interface is not part of virtual switch #8017

merged 1 commit into from
Sep 3, 2019

Conversation

marcinbojko
Copy link
Contributor

hyper-v fix when management interface is not part of virtual switch
This PR resolves situation when VirtualSwitch used for VM creation is not set as 'management' - de facto doesn't have it's own IP.
Instead of defaulting to false let's get an IP from default non locahost interface and use it as IP for packer http server

Closes #5023

@marcinbojko marcinbojko requested a review from a team as a code owner August 21, 2019 11:37
@hashicorp-cla
Copy link

hashicorp-cla commented Aug 21, 2019

CLA assistant check
All committers have signed the CLA.

}
else {
return $false
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what's happened but could you fix the formatting here? The original code used an indent of four spaces rather than tabs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, don't know why my vscode formatted it this way.

@SwampDragons
Copy link
Contributor

This looks good, except for needing that indentation fix that Dan mentioned. I'm not sure why tests are failing -- I'm investigating now.

@marcinbojko
Copy link
Contributor Author

Hi guys, do I need to do something more?

@SwampDragons
Copy link
Contributor

Ah, sorry for dropping the ball on this!

@SwampDragons SwampDragons merged commit 9f04121 into hashicorp:master Sep 3, 2019
@SwampDragons SwampDragons added this to the 1.4.4 milestone Sep 3, 2019
@ghost
Copy link

ghost commented Mar 29, 2020

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.

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hyper-V builder assumes that host operating system shares network adapter with VMs
4 participants