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] Add optional step to the hyperv-iso builder to run Convert-VHD when using differencing_disk and skip_export #5813

Closed
ebjornset opened this issue Jan 24, 2018 · 2 comments

Comments

@ebjornset
Copy link

The new feature with differencing_disk and skip_export in #5631 is awesome for saving space and time when building Hyper-V VHD(X).

It has one minor downside, it only produces differencing disks, so you'll need to manage at least two VHD(X) files to use the build result.

My suggestion is to add one step to the hyperv-iso builder that runs Convert-VHD after the virtual machine is shut down and the disk is compacted.

This feature should be configured with a option, e.g. "output_vhdtype", with the possible values Fixed, Dynamic and Default.
Default should skip this step so the current VHD(X) file is the final output from the builder.
Fixed and Dynamic should perform the Convert-VHD step with the configured value as the -VHDType parameter.

The converted VHD(X) file should replace the original VHD(X) file after the Convert-VHD command is completed, so existing templates and build processes can use the new feature without further changes.

@ghost
Copy link

ghost commented Apr 21, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-hyperv#15 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-hyperv#15.

@ghost ghost closed this as completed Apr 21, 2021
@ghost
Copy link

ghost commented May 22, 2021

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 as resolved and limited conversation to collaborators May 22, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants