Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

Linux 3.13 9pfs - #89

Closed
kainz wants to merge 7 commits into
boot2docker:masterfrom
kainz:linux-3.13-9pfs
Closed

kainz wants to merge 7 commits into
boot2docker:masterfrom
kainz:linux-3.13-9pfs

Conversation

@kainz

@kainz kainz commented Jan 21, 2014

Copy link
Copy Markdown

Upgrade to linux 3.13 kernel, and also add 9PFS support to allow folder sharing with DIOD (github.com/kainz/diod, my port from chaos's DIOD 9PFS server)

Also, enable make_iso.sh to use a custom docker-bin if you want to build a boot2docker using docker HEAD or whatnot.

@aheissenberger

Copy link
Copy Markdown
Contributor
  1. What kind of network configuration do you use to run boot2docker in your VM?
    Have you changed from from NAT and port forwarding to host only?

  2. do you plan to offer a brew recipe or a binary for the DIOD 9PFS server?

@kainz

kainz commented Jan 21, 2014

Copy link
Copy Markdown
Author

I am still using NAT/port forwarding with this setup.

I can work up a brew recipe, once I'm a have a bit more confidence in DIOD's stability. I just fixed up the bits to compile it on OSX yesterday.

@aheissenberger

Copy link
Copy Markdown
Contributor

👍

@schickling

Copy link
Copy Markdown
Contributor

Very excited about this. How will the folder sharing process will look like afterwards?

@aheissenberger

Copy link
Copy Markdown
Contributor

does 9PFS support inotify?
e.g. I change a file on the host and an app runnning in the vm using inotify will get informed about the file change.

NFS and many others do not support inotify on mounted volumes.

@kainz

kainz commented Jan 23, 2014

Copy link
Copy Markdown
Author

I don't think v9fs or p9fs in general supports inotify. As for a folder sharing process, you'll need to use a script similar to rectifier to start DIOD on the host, and then SSH into your boot2docker instance to call the lxc-attach -- mount stuff.

@kainz

kainz commented Jan 28, 2014

Copy link
Copy Markdown
Author

So I've been doing a bit more digging in this, and ran into docker bugs which required me to update my docker binary again, maybe by the end of the week I'll have an update to this PR with a practical folder sharing example.

Conflicts:
	rootfs/Dockerfile
	rootfs/make_iso.sh
@SvenDowideit

Copy link
Copy Markdown
Contributor

@kainz ?

@kainz

kainz commented Jun 2, 2014

Copy link
Copy Markdown
Author

@SvenDowideit Been backburnered on this for a bit due to other responsibilites. I should be able to revisit this by next week maybe? A lot has also changed in docker since I last touched this, so I'll need some time to catch up on the environment as well.

@SvenDowideit

Copy link
Copy Markdown
Contributor

k :)

@shoaibkamil

Copy link
Copy Markdown

jpetazzo wrote up a guide for using 9pfs here: https://gist.github.com/jpetazzo/5668338

This isn't quite right for OS X/boot2docker, though (he seems to be using lxc-attach, for example).

The working flow looks like, on the host, to do:

diod --foreground --export $DIR --listen 127.0.0.1:$PORT --no-auth --allsquash

and in the guest

sudo mount -t 9p -o port:$PORT,trans=tcp,version=9p2000.L,aname=$DIR $HOST_IP_FROM_GUEST $PATH_TO_MOUNT

This works if I use an Ubuntu VM on my Mac, with the following caveats:

  • I can't get the right incantation to make the mounted directory read/write for all users (only root works)
  • some FS operations don't work (e.g. doing 'ls -l' will spit out errors about unsupported FS calls)

I'd be happy to test a boot2docker iso that has 9pfs support built in.

@shoaibkamil

Copy link
Copy Markdown

I built a boot2docker ISO to test this with, but I'm seeing lots of errors doing simple operations such as mv with non-intuitive messages (e.g. mv is getting ENETRESET). Setting this aside for now until @kainz has a chance to test the diod port more extensively.

@SvenDowideit

Copy link
Copy Markdown
Contributor

@kainz I'm going to close this, we've not moved on it, sorry.

If you, or someone else wants to add doid & 9PFS, please make a much more minimal PR :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants