-
Notifications
You must be signed in to change notification settings - Fork 90
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
podvm-mkosi: need allocate more space for "/run" to store large image data #1921
Comments
@genjuro214
Now for large images we would want the VM memory to be sufficient to hold the image content and correspondingly the fs size should be adjusted as needed. I think increasing the size of |
I'm not necessarily against this. But I remember that we had a discussion about the security implication before adding the |
The position remains the same. If the disk is encrypted then we put the sensitive data there. |
I attempted to run e2e tests on a Fedora s390x Pod VM image built using mkosi, and found the case
TestCreatePeerPodWithLargeImage
fails on the Fedora image but succeeds on an Ubuntu image built using Packer.The root cause is there is no enough space to store the image data.
The large test image exceeds
2GB
in size and is pulled into the directory "/run/kata-containers/image/layers". However, the mount point "/run" is only allocated1.6GB
of space via tmpfs:So it run out of space when pulling an image larger than
1.6GB
.There is no such problem for Ubuntu image built using Packer, because the mount service "run-kata\x2dcontainers.mount" will mount "/run/kata-containers" to hard disk "/kata-containers".
However, this mount service was removed for mkosi. I can find the related PR and commit:
#1606
c6ac908
Since "/" should be read only, should we allocate more space to "/run" for runtime data?
Based on my investigation, Fedora typically allocates 20% of physical RAM to "/run" via tmpfs by default. We can increase this allocation to
50%
or more in/etc/fstab
:Moreover, we can allocate an even larger size than physical RAM by enabling swap. However, we must prepare the swap file on the hard disk in advance.
I hope we can discuss the following options:
50%
or75%
The text was updated successfully, but these errors were encountered: