-
Notifications
You must be signed in to change notification settings - Fork 75
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
bootc install to-disk --via-loopback fails when pointing to file mounted over virtfs #485
Comments
Only briefly looking at this, the kernel stack includes One unfortunate variable here too is 9p vs virtiofs. We should really IMO try to hard switch podman-machine over to virtiofs on Linux as it's just better tested/supported than 9p. |
ah interesting. Switching to
none of them are ideal, wdyt? |
Yeah let's do this (although while we're here at least add an environment variable to make it configurable so we can easily A/B test) This would be a short term workaround but I think the right next step here is to try building a kernel with that patch series reverted. Or see whether using virtiofs fixes it.
That'd quickly run into RAM limitations for nontrivial images, plus we'd need to do a full physical copy back out to the host... |
When using a loopback device pointing to a file on a 9p filesystem (e.g. the home mount of a podman machine), using direct-io=on causes the partitioning via sgdisk to fail. This is a temporary fix until podman machine switches away from 9p or another fix is found. Direct IO can be enabled via the BOOTC_DIRECT_IO=on environment variable. Fixes containers#485 Signed-off-by: Chris Kyrouac <ckyrouac@redhat.com>
When using a loopback device pointing to a file on a 9p filesystem (e.g. the home mount of a podman machine), using direct-io=on causes the partitioning via sgdisk to fail. This is a temporary fix until podman machine switches away from 9p or another fix is found. Direct IO can be enabled via the BOOTC_DIRECT_IO=on environment variable. Fixes containers#485 Signed-off-by: Chris Kyrouac <ckyrouac@redhat.com>
Mounting a filesystem in libvirt via the virtiofs driver works. This is the relevant libvirt domain xml:
|
Until we have a fixed kernel, xref - containers/bootc#485 - https://bugzilla.redhat.com/show_bug.cgi?id=2277512 Signed-off-by: Colin Walters <walters@verbum.org>
I discovered this when using podman-bootc-cli on Fedora 40. The following bootc command fails because the
sgdisk
command to create the partitions silently fails, so the actual error happens when trying to list the created partitions.This command:
results in this bootc error:
These are the errors in the journal:
The problem only happens when using a file on the virtfs/9p mounted filesystem created by podman machine (i.e. the home directory). The
sgdisk
command works correctly when pointing it directly to a file on the virtfs filesystem. It only fails when pointed to a loopback device that is pointed to a file on the virtfs filesystem. I'm not sure what is unique to the virtfs mount that is causing this.The text was updated successfully, but these errors were encountered: