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

Support VS2019 on Windows 2022 #1146

Open
dduportal opened this issue Apr 24, 2024 · 7 comments
Open

Support VS2019 on Windows 2022 #1146

dduportal opened this issue Apr 24, 2024 · 7 comments
Labels
enhancement New feature or request windows

Comments

@dduportal
Copy link
Contributor

dduportal commented Apr 24, 2024

What feature do you want to see added?

Since #1143, VS2019 is now part of our Windows 2019 images.

But the installation fails on Windows 2022: stuck at the step

azure-arm.windows: Preparing: C:\Users\packer\AppData\Local\Temp\907b86a749f6598117\vs_bootstrapper_d15\System.Runtime.CompilerS

(ref. #1143 (comment)).

cc @slide

@dduportal dduportal added the enhancement New feature or request label Apr 24, 2024
@slide
Copy link
Collaborator

slide commented Apr 27, 2024

The weird thing is that I did most of my prototyping for this with the Windows 2022 Docker Image. Is it difficult to run the packer process locally to debug?

@dduportal
Copy link
Contributor Author

The weird thing is that I did most of my prototyping for this with the Windows 2022 Docker Image. Is it difficult to run the packer process locally to debug?

It should not be difficult OOB if you have an Azure subscription allowing you to spin up VMs. Otherwise you can try only the provision ps1 script inside a container (or whatever windows server VM) but we never had the time to spend on such case.

Note : as we would like to shift the Windows containers from the current Dockerfile to packer-images, supporting Windows container should be accessible easily. It was working well a few month ago

@slide
Copy link
Collaborator

slide commented May 1, 2024

It should not be difficult OOB if you have an Azure subscription allowing you to spin up VMs. Otherwise you can try only the provision ps1 script inside a container (or whatever windows server VM) but we never had the time to spend on such case.

Ok, I will give this a shot. I don't have any Azure subscriptions available I don't think. I'll have to look.

@lemeurherve
Copy link
Member

For reference, there is an example of a Dockerfile to build a Windows Server Core ltsc2022 containing these build tools, if it can help:

https://github.com/MicrosoftDocs/visualstudio-docs/blob/9050b8dfd09f242fed9bcc893762eca61e1b2b8b/docs/install/build-tools-container.md#create-and-build-the-dockerfile

@lemeurherve
Copy link
Member

Found out the difference between their ltsc2019 and ltsc2022 Dockerfiles:

- vs_buildtools.exe https://aka.ms/vs/16/release/vs_buildtools.exe
+ vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe

PR incoming.

@slide
Copy link
Collaborator

slide commented Jun 17, 2024

16 is VS 2019, 17 is VS 2022. I think we want to remain on 2019. Or we may need to change the install config file to install the 2019 libraries.

@lemeurherve
Copy link
Member

Oh you're right, thanks, closing my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request windows
Projects
None yet
Development

No branches or pull requests

3 participants