-
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
Add use_fixed_vhd_format Hyper-V ISO option #6101
Conversation
Thanks for the PR! I like this idea a lot, but I don't like the name you've given the feature; azure_compatible is not explicit and would be confusing to anyone who doesn't want to have to read source code. Can we name it something like use_vhd_format instead? We can talk in the docs about how this makes the VMs compatible with Azure. (While we're on the subject, this new feature could use some docs, too, and maybe a test or two checking the logic you've added to the config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start; See my previous comment for some change requests.
-- docs
-- tests for config logic
-- more explicit feature name.
@SwampDragons Its funny you don't like the name. I had originally named the feature use_legacy_vhd, but I didn't like that name as Azure also needs a VHD file that is fixed size and not dynamic (which is the default if -Fixed is not passed to New-VHD). This made me wonder if use_fixed_disk should be a separate option, but then that would need to be implemented for vhdx as well? I'm going to rename it to use_fixed_vhd_format for now and work on the other requested changes. |
7420c76
to
44e9ecc
Compare
b33d5f1
to
057965d
Compare
@SwampDragons I have made the requested changes. I'm much more familiar with PowerShell and Python than Go so look extra hard at the tests I added. I also realized that a VHD has a different maximum size than a VHDX so I added a check for that. |
Thanks! This is definitely on my TODO list to review. |
2e9bfe5
to
25158d8
Compare
25158d8
to
3aebd5f
Compare
@SwampDragons I rebased this in light of all the recent Hyper-V changes. |
Good idea, thanks. |
this review was stale, so dismissing it.
Thanks for this PR! |
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. |
I have added an option to the Hyper-V ISO builder named "azure_compatible". This will instruct the builder to create a VM with a VHD that is compatible with Azure.
Azure needs a Fixed size VHD, the default is a dynamic VHDX.
Closes #5617