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

No installation guidance for Hyper-V #1009

Closed
jrose-qualys opened this issue Apr 27, 2023 · 11 comments
Closed

No installation guidance for Hyper-V #1009

jrose-qualys opened this issue Apr 27, 2023 · 11 comments
Assignees
Labels
platform/new-platform linked to new platform addition (cloud provider, image type, architecture, etc.)

Comments

@jrose-qualys
Copy link
Contributor

Hello,
We need some details on the best practices for installation of Flatcar Container Linux on Hyper-V.

  • how to gain support for VHDX disks
  • how to support Hyper-V Live MIgration (in the same way that open-vm-tools will allow Flarcar to support VMWare Vmotion).

Hyper-V being a Microsoft product, and Kinvolk being bought by Microsoft, you should have direct access to Hyper-V developers who can help make Flatcar on Hyper-V a seamless proposition.

Regards
Joe

@fsdrw08
Copy link

fsdrw08 commented Jan 25, 2024

any updates? coreos had already support hyper-v

@jepio
Copy link
Member

jepio commented Mar 22, 2024

Just looked at this. The ignition support for Hyper-V is in alpha right now.

We need the following to make it work:

  • docs
  • We need to switch the generated img over to vhdx
  • We should consider using a different compression that is more Windows friendly.
  • We need the hv_utils module in the initramfs to get ignition to work
  • powershell script to make it easy for people to try this out

@jrose-qualys
Copy link
Contributor Author

jrose-qualys commented Mar 22, 2024 via email

@ader1990 ader1990 self-assigned this Mar 25, 2024
@ader1990
Copy link

Hello @jrose-qualys,

Adding the VHDX support would be rather easy, as it is just a quick fix.

An important question would be if you also still need the VHD image at the same time, or we can remove it the VHD and offer just VHDX?

Thank you.

@jrose-qualys
Copy link
Contributor Author

jrose-qualys commented Mar 25, 2024 via email

ader1990 added a commit to flatcar/scripts that referenced this issue Mar 25, 2024
Add support for Gen 2 Hyper-V VMs.

Partially-Fixes: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Mar 25, 2024
Add support for Gen 2 Hyper-V VMs.

Partially-Fixes: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Mar 26, 2024
Add support for Gen 2 Hyper-V VMs.

Partially-Fixes: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Mar 26, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
@ader1990
Copy link

Just looked at this. The ignition support for Hyper-V is in alpha right now.

We need the following to make it work:

  • docs
  • We need to switch the generated img over to vhdx
  • We should consider using a different compression that is more Windows friendly.
  • We need the hv_utils module in the initramfs to get ignition to work
  • powershell script to make it easy for people to try this out

We need the hv_utils module in the initramfs to get ignition to work - implemented by flatcar/bootengine#92
We need to switch the generated img over to vhdx - work in progress by flatcar/scripts#1791

ader1990 added a commit to flatcar/scripts that referenced this issue Mar 27, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Mar 27, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Mar 27, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to ader1990/scripts that referenced this issue Mar 27, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
@ader1990
Copy link

Hello @jrose-qualys,

You can find a .vhdx image built here: https://bincache.flatcar-linux.net/images/amd64/9999.9.9+ader1990-hyperv-vhdx-support/, using the PR code from flatcar/scripts#1791.

Image direct download link: https://bincache.flatcar-linux.net/images/amd64/9999.9.9+ader1990-hyperv-vhdx-support/flatcar_production_hyperv_vhdx_image.vhdx.bz2.

Please let us know if the image works in your environment.
Currently, the image is not secure boot signed and it needs Secure Boot to be disabled when used with a Gen2 Hyper-V VM.

Thank you.

ader1990 added a commit to ader1990/scripts that referenced this issue Mar 29, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Apr 9, 2024
Add support for Gen 2 Hyper-V VMs.

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Apr 9, 2024
Add support for Gen 2 Hyper-V VMs.

`./image_to_vm` tool has now a new supported format: `hyperv_vhdx`,
that produces .vhdx dynamic disks.

How to use:

```bash
 ./image_to_vm.sh --from ../build/images/amd64-usr/developer-latest/ --format hyperv_vhdx
```

See: flatcar/Flatcar#1009

Uses PR: flatcar/bootengine#92

Signed-off-by: Adrian Vladu <[email protected]>
@tormath1 tormath1 added the platform/new-platform linked to new platform addition (cloud provider, image type, architecture, etc.) label Apr 9, 2024
@ader1990
Copy link

ader1990 commented Apr 9, 2024

Just looked at this. The ignition support for Hyper-V is in alpha right now.

We need the following to make it work:

  • docs
  • We need to switch the generated img over to vhdx
  • We should consider using a different compression that is more Windows friendly.
  • We need the hv_utils module in the initramfs to get ignition to work
  • powershell script to make it easy for people to try this out

VHDX support is merged, as well as the introduction of the hv_utils module in initrd.
flatcar/scripts#1791
flatcar/bootengine#92

Docs will include the powershell script to try out Flatcar on Hyper-V:
flatcar/flatcar-website#315

@jrose-qualys
Copy link
Contributor Author

jrose-qualys commented Apr 9, 2024 via email

@dongsupark dongsupark moved this from 🪵Backlog to ⚒️ In Progress in Flatcar tactical, release planning, and roadmap Apr 10, 2024
ader1990 added a commit to flatcar/scripts that referenced this issue Apr 11, 2024
On Windows, the .bz2 compression format is not supported by native
tooling and external tools like 7zip need to be installed.

Switching to .zip compression, there will be no need for the extra step
of having external tools.

See: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Apr 11, 2024
On Windows, the .bz2 compression format is not supported by native
tooling and external tools like 7zip need to be installed.

Switching to .zip compression, there will be no need for the extra step
of having external tools.

See: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
ader1990 added a commit to flatcar/scripts that referenced this issue Apr 11, 2024
On Windows, the .bz2 compression format is not supported by native
tooling and external tools like 7zip need to be installed.

Switching to .zip compression, there will be no need for the extra step
of having external tools.

See: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
@ader1990
Copy link

ader1990 commented Oct 9, 2024

Hello, the Hyper-V images and the documentation have been created. Also, the hyper-v daemons are now included in the Hyper-V image too.

Please let us know if there are any issues or improvements required to close the issue.

Thanks,
Adrian

@ader1990
Copy link

Closing this issue, as the documentation and required improvements were merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/new-platform linked to new platform addition (cloud provider, image type, architecture, etc.)
Projects
None yet
Development

No branches or pull requests

5 participants