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

diskless image #36

Open
aep opened this issue Apr 26, 2023 · 4 comments
Open

diskless image #36

aep opened this issue Apr 26, 2023 · 4 comments

Comments

@aep
Copy link

aep commented Apr 26, 2023

Hi,
would it be possible to build a diskless (read only) image?

@jirutka
Copy link
Member

jirutka commented Sep 12, 2023

Hi, I don’t understand your question, what exactly do you wanna achieve?

@em-ily-dev
Copy link

em-ily-dev commented Nov 18, 2024

I'd like this too.

Hi, I don’t understand your question, what exactly do you wanna achieve?

For background, when installing alpine manually, the resulting installation can use one of three modes: diskless mode, data disk mode, and system disk mode.

Currently, all images produced by alpine-make-vm-image function as if they had been installed in system disk mode. It would be helpful if this tool could produce images that function as if they had been installed in diskless mode. Assuming OP means the same thing I do, this is what we're trying to achieve.

It means that the resulting image file should not need to be writable on the host in order to boot successfully. That's because, in diskless mode, the guest system first copies the boot filesystem to memory, then boots from there.

(IMO it would also be nice if alpine-make-vm-image could produce functional images in ISO format, but maybe that should be a separate issue.)

@em-ily-dev
Copy link

In case it's helpful, the reason I want this is that I want to guarantee that no changes will ever be made to the image. I'd also like to be able to boot more than one VM instance from the same image file concurrently.

@em-ily-dev
Copy link

I wonder if it's possible to achieve the same result using a combination of alpine-make-rootfs and setup-bootable (instead of alpine-make-vm-image).

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

No branches or pull requests

3 participants