WSL distro (Ubuntu) missing on the Windows Server 2022 Image created with Windows-2022.pkr.hcl #9779
Replies: 2 comments 1 reply
-
More Information: It seems the registry entry for the Lxss default Distribution went missing in the created image. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am new to the community and just started to work with Packer. I am currently trying to build a Windows-2022 image with Packer having WSL and Ubuntu as distribution installed. Surprisingly the image creation until the last step prints out that Ubuntu is installed as the default distro but somehow I cannot see the Ubuntu distro when I created the VM from the image although WSL is installed and working.
Edit: I updated the windows-2022.pkr.hcl template to install the WSL and ubuntu with the following custom scripts.
Ubuntu was downloaded from https://aka.ms/wslubuntu2004 to a folder installer and it was under Users and I could the installed files under this folder in the VM created from Image.
Logs from the image creation:
Does anyone have faced a similar issue or am I dumb to understand it, does someone have any idea how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions