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

Issue an error message when trying to run on NFS #2329

Merged
merged 1 commit into from May 18, 2024

Conversation

afbjorklund
Copy link
Contributor

@afbjorklund afbjorklund commented May 7, 2024

Display an error message, when trying to put $LIMA_HOME on NFS network filesystem (instead of local filesystem)

Closes #2325

@AkihiroSuda AkihiroSuda added this to the v0.22.1 (tentative) milestone May 7, 2024
return err
}
if nfs {
return errors.New("must not run on NFS dir")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this should be just a warning?

It still may work on NFS with a future potential version of QEMU, vz, or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly, but I'm not sure if it is something that can be supported?

We can download/copy the "basedisk" from a remote location, such as ~/.cache, but keeping the "diffdisk" on a network file share could be a potential source of bugs and performance issues. Even if the bug here, regarding file locking with qemu-img, can be found and fixed? Something like iSCSI could work, but skeptical about NFS.

@afbjorklund
Copy link
Contributor Author

afbjorklund commented May 7, 2024

Apparently unix.NFS_SUPER_MAGIC is only defined on Linux (not Unix).

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 1f55c07 into lima-vm:master May 18, 2024
27 checks passed
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

Successfully merging this pull request may close these issues.

lima fails in a confusing way when the home directory is on NFS
2 participants