-
Notifications
You must be signed in to change notification settings - Fork 354
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
Is NFS/Samba the only way to share files between host and guest? #70
Comments
Network based solutions are probably the only options right now. I suggested |
@johanneswuerbach Good point... osxfuse requires root and a codesigned kext. So I'll venture a different "no" answer — there's also afp (netatalk/avahi), http/webdav, ftp, scp, netcat... 😉 . |
Well, I just read about VirtFS. Seems enough. @geoff-codes mentioned mount R/W for a disk image with write locks, I wonder whether the "write locks" means it can make both the virtual machine and host to write on same disk image ? |
Hi guys, I'm working on virtio-9p (so-called VirtFS) support for bhyve/xhyve. Right now I have almost complete 9p2000.u protocol support (except atime/mtime modification in Twstat). You can check it out here: https://github.com/jceel/xhyve Here's how to use it:
Using 9p as root filesystem should work too. This code is of course totally experimental and untested - I'm looking forward to your feeback! |
@jceel Awesome, great work!!! |
Hi @jceel great work!! |
@ailispaw: You can try the following mount options: Here's mount -t 9p options reference: https://www.kernel.org/doc/Documentation/filesystems/9p.txt |
@jceel Thank you for the reply. |
@ailispaw: yes, it should refer to the host UID. |
Kernel version: 4.4.1 with
Something missing?
|
Ah, I see what you're trying to do. There's no UID/GID translation mechanism (yet) and it turns out
So, a very poor man's solution would be to use 9P2000 and map everything to uid specified by
but with that approach, you'll lose ability to create symlinks/pipes/devices and ability see/modify file ownerships - basically everything in shared filesystem will be shown as owned by UID 1000. on the host side, newly created files and directories will be owned by root. (to use It seems to me that there are two ultimate solutions:
|
@jceel Thank you so much for the explanation. |
@jceel I would like to let you know the result of
|
@jceel Oh, I'm sorry I didn't update xhyve. I will test it again. |
@jceel
Thanks. :) |
Do you plan to push those changes to @mist64's repo? |
I tried jceel/xhyve with sysresccd which provides
And My
|
9p2000.L is not supported yet - try 9p2000.u. |
I keep get this in
I googled to https://bugs.launchpad.net/qemu/+bug/648128 and find 2 patch for How can I check whether My % lspci
00:00.0 Host bridge: Network Appliance Corporation Device 1275
00:02.0 Ethernet controller: Red Hat, Inc Virtio network device
00:03.0 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI mode]
00:05.0 SCSI storage controller: Red Hat, Inc Virtio filesystem
00:1f.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] |
What did you pass to xhyve command line? |
|
@jceel Would you update a kernel binary in your repo for testing ? If my CLI was correct, it should due to the systemrescuecd kernel cannot support even after |
I was wondering if I am missing something. Can I somehow mount the disk image both on guest and host? I suspect that this would cause concurrency issues even if it is possible.
The text was updated successfully, but these errors were encountered: