distribution icon indicating copy to clipboard operation
distribution copied to clipboard

Create Hyper-V Gen2 image for download

Open WSLUser opened this issue 5 years ago • 10 comments

Gen 2 for Hyper-V has been out for years now and increases performance drastically. See for differences: https://www.nakivo.com/blog/hyper-v-generation-1-vs-2/. There are steps to create a Gen2 VM from a Gen1 but it's much less user friendly for Linux VMs. It would be better instead for Clear Linux to simply offer a Gen2 image (vhdx) for download at https://clearlinux.org/downloads. I'm pretty sure even Azure is using Gen2 at this point for most distros (Actually Azure is upstream for Hyper-V changes).

WSLUser avatar Jan 08 '21 18:01 WSLUser

Agreed. Would be great for trying out before deciding to ditch Windows.

sala91 avatar Apr 23 '21 11:04 sala91

I would check out WSL2 before ditching Windows. Just import the docker image and add a user. I just want another option for cases in which a full VM may be needed.

WSLUser avatar Apr 23 '21 12:04 WSLUser

The team used to create Hyper-V Gen2 images. Release 32980 was the last release that included a Gen 2 image. I can't remember and can't find the reason that they stopped. The hyperv.vhdx files here are what you are looking for.

https://cdn.download.clearlinux.org/releases/32980/clear/

In theory you should be able to use that VHDX, bring it up to date with swupd and be gold.

I'm still using Gen 2 VMs for all of my server instances and they are still getting updates for everything including the kernel.

elektrolytik avatar Oct 27 '21 22:10 elektrolytik

Thanks for that link. I'll definitely test it out with WSL2 first, then try out Hyper-V the next time I need to mess with it.

WSLUser avatar Oct 28 '21 14:10 WSLUser

I'm unable to try Clear Linux on Azure due to a lack of Gen 2 image: Screen Shot 2022-02-13 at 10 19 22 AM

The DC "confidential compute" instances we're using support only Gen 2 images. Supporting Azure Gen 2 images would be greatly appreciated.

xanderdunn avatar Feb 13 '22 15:02 xanderdunn

For Azure, I think a better ask would be to be placed on the Azure Marketplace if they aren't already there but they'll still need to bump their VM build to Gen 2 anyways. If they at least made their build process more transparent for how they originally did Gen2, that would be very helpful. I did try the old Gen2 image before but appears to of been corrupted as I couldn't use it for WSL2 or Hyper-V. Makes me think some changes were made to the Gen2 VM generation, which isn't surprising.

WSLUser avatar Jun 28 '22 13:06 WSLUser

Any update on this? Pretty sad a Gen2 image isn't provided anymore... at least no up to date - currently trying the one from https://cdn.download.clearlinux.org/releases/32980/clear/

ThaDaVos avatar Oct 26 '24 14:10 ThaDaVos

The tooling was in pretty bad shape so we stopped, but we'll check again.

ephut avatar Nov 07 '24 18:11 ephut

I also notice that the kernel used with kernel-hyperv is pretty old: 5.6.7-285.hyperv

I am getting some errors when the image boots and found only that it may be because of an outdated kernel: afbeelding

ThaDaVos avatar Nov 09 '24 10:11 ThaDaVos

It seems the Hyper-V kernel is just outdated: afbeelding

ThaDaVos avatar Nov 09 '24 10:11 ThaDaVos