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

Max size of image #3926

Open
muhmud opened this issue May 17, 2023 · 4 comments
Open

Max size of image #3926

muhmud opened this issue May 17, 2023 · 4 comments

Comments

@muhmud
Copy link

muhmud commented May 17, 2023

Is there a maximum size for a kernel+initrd format image?

I'm having problems creating an image larger than 4GB, and was interested to know whether this was a limitation.

@deitch
Copy link
Collaborator

deitch commented May 22, 2023

Not that I am aware of. What error messages are you getting?

@muhmud
Copy link
Author

muhmud commented May 22, 2023

So, using version 0.8, the image builds OK, and also boots OK, but has files missing.

I inspected the image by running gunzip, and then cpio on the decompressed image, which then gave me messages about garbage data at the start of the file. The type of cpio image is SVR4, which has a maximum size of 4GB. I'm thinking maybe this is the problem?

I'm planning to try this with the latest version of linuxkit in the next few days.

@muhmud
Copy link
Author

muhmud commented Jun 2, 2023

I tried using the latest version of linuxkit and got the same issue.

@polarroyo
Copy link

polarroyo commented Aug 23, 2023

I have been able to reproduce the same issue with v1.0.1. I build with formats:

  • kernel+initrd (size: 432MB)
    kernel loads, but one of my container service (docker image is ~900MB) errors that can not start because can not mount folder because it does not exist on host fs.
    I checked with command lz4cat [initrd.img] | cpio -tiv | grep [missing_folder] and the folder and files are present in the host fs.
    The files are injected as per sshd example

  • iso-bios (size: 1,2GB)
    all works fine.

Lowering my container service (~150MB) and thus reducing the final image of the build to:

  • kernel+initrd (size: 132MB)
  • iso-bios (size: 403MB)
    Fixed my issue and both outputs works fine.

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