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

Share filesystem between Firecracker guest and Ubuntu host systems? #889

Closed
petermp79 opened this issue Jan 25, 2019 · 6 comments
Closed
Labels
Roadmap: New Request Type: Question Indicates that an issue, pull request, or discussion needs more information

Comments

@petermp79
Copy link

Hello,

Wonder if there are any guidelines for creating share filesystem between the guess and ubuntu host system?

@ad-m
Copy link

ad-m commented Jan 25, 2019

Do you think that a special approach to the Firecracker virtual machine is necessary in this case?

@dhrgit
Copy link
Contributor

dhrgit commented Jan 25, 2019

There's currently no way of sharing a filesystem between the microvm and the host. I.e. Firecracker requires exclusive access to the files it's using as disk devices.

This feature has been the topic of recent discussions, but its addition is not on the roadmap.

@petermp79
Copy link
Author

petermp79 commented Jan 25, 2019 via email

@raduweiss raduweiss changed the title Share filesystem between guess and ubuntu host systems? Share filesystem between Firecracker guest and Ubuntu host systems? Feb 3, 2019
@raduweiss raduweiss added Type: Question Indicates that an issue, pull request, or discussion needs more information Feature: IO Virtualization Roadmap: New Request labels Feb 3, 2019
@raduweiss
Copy link
Contributor

We currently think that, for Firecracker, the additional risk of exposing a complex file system virtualization attack surface is not really warranted by the use cases we've seen so far.

However, this may change as we understand more of what real-world container workloads actually need in order to seamlessly to within VM isolation. We're getting feedback there from the Kata Container & firecracker-containerd folks.

So real-world use-cases that don't have a simple alternative implementation will weight a lot in this discussion.

Finally, there's also the option of doing this via rust-vmm a new drive to build some common virtualization components in Rust. Eventually, most of Firecracker will be made up of rust-vmm crates, and then groups that want Firecracker + filesystem virtualization, could create / consume all appropriate rust-vmm crates and roll their own. But this is just a vision that the community is starting to work towards right now, it will take some time to come to fruition.

I'm closing the issue now, feel free to re-open if you want to continue the conversation 😄.

@raduweiss
Copy link
Contributor

We'll be looking at this as part of #1180.

@Mart-Bogdan
Copy link

For ones who are interested in this. SSH can be used to transfer viles in/out of vm using scp or rsync.

Also if really needed to have fs mounted inside, sshd on host can be set up and fuse-ssh used inside to create mount. Well you can mount internal to vm FS into host this way as well.

I for now just use KDE's built in sftp support in Dolphin ssh://123.11.11.11 . I guess Gnome has similar feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Roadmap: New Request Type: Question Indicates that an issue, pull request, or discussion needs more information
Projects
None yet
Development

No branches or pull requests

5 participants