Skip to content

Harden VMCX support#8119

Merged
chrisroberts merged 1 commit intohashicorp:masterfrom
bbrala:check-vmcx-support
Jan 5, 2017
Merged

Harden VMCX support#8119
chrisroberts merged 1 commit intohashicorp:masterfrom
bbrala:check-vmcx-support

Conversation

@bbrala
Copy link
Contributor

@bbrala bbrala commented Dec 14, 2016

Vagrant now checks if your Windows version has support for VMCX and then uses the VMCX file.

The reason for this is because the support for HyperV in Packer is now merged, but, it always creates an XML file, I assume for backwards compatibility, which does make sense especially for Windows versions before 10 which are still used. Vagrant should prefer using the newer format when supported, even when the old XML format is available.

The check consists of checking if the Windows version is greater or equal to 10, since Windows 10, and Windows Server 2016 both use the binary format, and they won't change back to the old config in future releases I assume.

To test, I loaded up about 5 of the HyperV boxes on Atlas with 1.9.1 and with this branch. Everything went fine. In order to make possible future debugging easier I added the type of config that is loaded to the debug log.

…upport for vmcx and then uses the VMCX file.
Copy link
Member

@chrisroberts chrisroberts left a comment

Choose a reason for hiding this comment

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

👍 Thanks @bbrala !

@chrisroberts chrisroberts merged commit c9c942a into hashicorp:master Jan 5, 2017
@bbrala
Copy link
Contributor Author

bbrala commented Jan 6, 2017

Welcome back @chrisroberts , hope you a good holiday :)

@ghost ghost locked and limited conversation to collaborators Apr 4, 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.

2 participants