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

Self build base OS images #257

Open
alphagocc opened this issue Aug 5, 2022 · 41 comments
Open

Self build base OS images #257

alphagocc opened this issue Aug 5, 2022 · 41 comments
Assignees
Labels
question Further information is requested

Comments

@alphagocc
Copy link

What is your question?
I'm wondering how to make a windows base OS image. My OS version is Windows 11 22H2, but there isn't any suitable image for the system. Images with low version prevents me from using process isolating containers on my PC.

@alphagocc alphagocc added the question Further information is requested label Aug 5, 2022
@ghost ghost added the triage New and needs attention label Aug 5, 2022
@vitaliy-leschenko
Copy link

You have to use Windows Server 2022 images. Windows 11 supports to run it in hyperv and process isolation level.

@alphagocc
Copy link
Author

I've tried both Windows Images and Windows Server image. With some hacks (change the version in the mainifest to a higher version) I successfully started a nanocore:ltsc2022 container, but I am still unable to start any other images.
For more specific, my windows version is 22622.436

So I decide to ask if there is any way to produce a base os image by myself and there won't be any compatibility issues.

@fady-azmy-msft
Copy link
Contributor

Hey @alphagocc, can you explain what you mean by changes to the manifest? And can you share the errors you're seeing?

@alphagocc
Copy link
Author

@fady-azmy-msft
Error is no match for platform in manifest: not found (by nerdctl)

Edit platform>os.version to host os version can successfully start the nanoserver container

@alphagocc
Copy link
Author

By the way, I also support this guy #222 (comment)
I think we need a tool to remove container image dependency from Microsoft

@fady-azmy-msft
Copy link
Contributor

I see. Can you share the repro steps you took that caused the error?

@ghost
Copy link

ghost commented Oct 1, 2022

This issue has been open for 30 days with no updates.
, please provide an update or close this issue.

@alphagocc
Copy link
Author

I see. Can you share the repro steps you took that caused the error?

nerdctl.exe run --rm mcr.microsoft.com/windows/nanoserver:ltsc2022 windows-test cmd /c "echo Hello World!"

@smallmodel
Copy link

smallmodel commented Oct 22, 2022

About the author question of making a base OS image, it would be great if one could generate a container image from the host. I made a POC that does this (process isolation mode only, tested on Windows 11 - 10.0.22000) : https://github.com/Ley0k/wincon
it's not usable in production, and I didn't try with Docker, but actually a proof that it could work by just generating registry hives and linking host files.

@ohault
Copy link

ohault commented Nov 20, 2022

This is a very good and strategic question, see also #291

@fady-azmy-msft
Copy link
Contributor

@Juarezhm, any thoughts on this?

@fady-azmy-msft fady-azmy-msft removed the triage New and needs attention label Nov 23, 2022
@ghost
Copy link

ghost commented Dec 24, 2022

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

7 similar comments
@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@ohault
Copy link

ohault commented Jul 21, 2023

For clarification, I guess here we are talking about Windows container base image sizes in MB and not in GB.

How to create such minimal base image from witch all larger images could be created by adding components and configurations ?

This should provide a way to create the same exact images currently provided by Microsoft like Nano Server, Server Core, Windows and Windows Server, but in full transparency according to good compliance practices.

This is basically a lean approach, as existing in the embedded industry for decades.

@slonopotamus
Copy link

all larger images could be created by adding components and configurations

I doubt anything will happen here given that Windows itself is not modular.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

2 similar comments
@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@ohault
Copy link

ohault commented Oct 23, 2023

This is a very good and important question. So far, we have seen so few blog posts about what is going on with Windows Containers. Windows Containers are also still facing huge architectural challenges and very poor technical documentations in term of software design and almost no public roadmap! It's time to wake up!

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@ohault
Copy link

ohault commented Nov 23, 2023

Despite the fact that the Ignite 2023 conference was one of the best Microsoft conferences since PDC 2000, it can be found very unfortunate that Microsoft has still not been able to clearly communicate a technical roadmap for the future Windows containers!

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

5 similar comments
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

@smallmodel
Copy link

Anything new? Is there any plan for Microsoft to support generating OS images (from host at least)?

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

5 similar comments
Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@Juarezhm, please provide an update or close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants