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

Add host filesystem files to tar and mount it #36

Open
pkit opened this issue Apr 22, 2014 · 2 comments
Open

Add host filesystem files to tar and mount it #36

pkit opened this issue Apr 22, 2014 · 2 comments

Comments

@pkit
Copy link
Member

pkit commented Apr 22, 2014

We need to mimic the behavior of host filesystem more closely.
For that I propose to create a tar file with all the host files mentioned on the zvsh command line. And then mount that tar. This way the paths to files will be the same on host and inside the session.
There are other features that will be added by implementing the above:

  • ability to target a directory (the contents of a directory will be added to tar and then all the files will be accessible from inside the session)
  • session will be able to create directories and multiple files on host (the resulting tar can be extracted on top of the host fs)
  • session can use O_TRUNCATE or any other file operations that cannot be applied to channels
@larsbutler
Copy link
Member

Seems like a good idea. How would you like to user interface to look? My initial thought is to implement it something like this:

$ zvsh --zvm-image=foo.tar --mount=/home/lars/bar,/usr/share myapp.nexe arg1 arg2

where /usr/share is optional mount point. I guess this could work for files or folders.

Thinking further, we could just use one command for everything; there is enough overlap between --mount and --zvm-image. Maybe we could deprecate --zvm-image?

@mgeisler
Copy link
Contributor

mgeisler commented May 8, 2014

I would like us to avoid introducing more foo,bar arguments — , is not a special character in character in filenames (CVS names files with ,).

larsbutler pushed a commit to larsbutler/zerovm-cli that referenced this issue Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants