Giter Site home page Giter Site logo

Mounting single files into the guest about lima HOT 4 OPEN

lima-vm avatar lima-vm commented on July 29, 2024 4
Mounting single files into the guest

from lima.

Comments (4)

AkihiroSuda avatar AkihiroSuda commented on July 29, 2024

Any hints of making single file mounts work with sshfs? And if not, will those be possible with samba?

Unlikely.

The straightforward way would be to just mount the directory of the file from macOS to Linux, and set up Linux bind-mount inside the guest.

from lima.

AkihiroSuda avatar AkihiroSuda commented on July 29, 2024

For small files like certificates, I'd suggest just copying the file rather than mounting.

from lima.

MnrGreg avatar MnrGreg commented on July 29, 2024

The certificate injection use case must be quite common. It would be great if a workable solution could be found to programmatically add certificates on start. nerdctl has a number of issue related to this:
containerd/nerdctl#427
containerd/nerdctl#278
containerd/nerdctl#363

Adding the below to the lima.yml has two issues:

mounts:
  - location: "/usr/local/share/ca-certificates"
    writable: false

provision:
  - mode: system
    script: |
      #!/bin/bash
      update-ca-certificates
  1. provisioning commands (update-ca-certificates) seem to execute before the mounts.
  2. mounts don't seem overwrite existing lima VM directories and /usr/local/share/ca-certificates exists in most OSs.

from lima.

jandubois avatar jandubois commented on July 29, 2024
  • provisioning commands (update-ca-certificates) seem to execute before the mounts.

This is #287

2. mounts don't seem overwrite existing lima VM directories and /usr/local/share/ca-certificates exists in most OSs.

I talked in #397 (comment) about wanting a mechanism to specify a different mount point inside the guest. Maybe that should have it's own top-level issue.

I guess all this is also somewhat stalled because we are not sure if we are going to stick with sshfs, or if we will switch to some other mechanism to share files. But I guess the basic requirements for 1. and 2. are independent of that.

from lima.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.