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

Adding a per-instance generated vmname for Hyper-V #368

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

stuartpreston
Copy link

Fixes #367

This PR allows a VM instance created by kitchen-vagrant and the Hyper-V provider to be identified by its instance name. This makes it easier to identify the running VM when looking at the Hyper-V running configuration (either via UI or PowerShell).

The actual hostname (Linux) or NetBIOS name of the machine (if Windows) is not affected by this change, it only affects the display name in Hyper-V manager.

Given a base folder name of hypervtest, a default suite and a platform named windows2012r2, the generated name is as follows: kitchen-hypervtest-default-windows2012r2

image

Signed-off-by: Stuart Preston [email protected]

@cheeseplus cheeseplus merged commit ad1b969 into master Aug 13, 2018
@stuartpreston stuartpreston deleted the sp/hyperv-vmname branch August 13, 2018 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants