Comments (10)
you could use a nfs mount.
from xhyve.
could you give more details @colby-swandale
from xhyve.
@gregory there are literally thousands of posts on how to do this.
from xhyve.
oh sorry. i thought you meant a clean way to do it.... dont want to setup nfs server just for that :(
i used nfs at the very beginning when guest addition was not in boot2docker yet. thx though
from xhyve.
yes, I'm looking for something like shared folder in VirtualBox with xhyve :D is there any way to do that?
from xhyve.
OK, Thank to @colby-swandale
Running NFS server is not a big deal, it's very simple with just 1 command line.
Here is the detailed note on how to mount host machine folder:
Host: Mac OS X
Client: TinyCore
Step 1: Enable network in xhyverun
If you are using xhyverun.sh
to boot the TinyCore, just delete the comment character (#
) before NET config
# NET="-s 2:0,virtio-net"
to
NET="-s 2:0,virtio-net"
Start the TinyCore VM with sudo
:
sudo ./xhyverun.sh
Step 2: Setup NFS Server on Host
- Create
/etc/exports
file
sudo touch /etc/exports
sudo vi /etc/exports
- Config the Exports file with the following syntax:
/Folder/on/host -mapall=501
Each folder in a line. The mapall
parameter indicate the ID of user that have permission to access that host folder.
To find your user ID, type:
id
This is important unless you want to get Connection refused
error when mounting from client.
For example, this is my /etc/exports
file:
/Users/huy/Shared -mapall=501
Step 3: Start and check NFS Server
- Start the NFS server with the following command:
sudo nfsd start
or restart it if it already started.
sudo nfsd restart
- Check the shared folder with the following command:
showmount -e
Your shared folder should displayed.
Step 4: Mount the host folder on guest machine
In TinyCore guest, create a folder somewhere to access the shared folder, for example:
mkdir ~/shared
Mount the host folder with the following command:
sudo mount -o nolock <host-ip>:/Users/huy/Shared/ ~/shared
Done!
from xhyve.
It would be cool if bhyve/xhyve had an implementation of VirtFS/virtio-9p
as a much more efficient way to support shared folders. u9fs might be a good starting point for a VirtIO implementation and seems to be license compatible.
from xhyve.
There's a fork which implements virtio-9p here: https://github.com/jceel/xhyve
UPDATE: Also have a look at #70. I successfully rebased it against the latest version and I am pretty happy with it stv0g/xyhve@virtio-9p
from xhyve.
Probably no news for most of you, but you could use https://syncthing.net/. Using it with alpine linux and OSX. Very easy to setup if you don't mind syncing is not instant thing.
from xhyve.
Status?
from xhyve.
Related Issues (20)
- building on Linux? HOT 3
- Port to AMD SVM HOT 2
- Incorrect SMBIOS type 17 table generation
- Use ASL compiler to build ACPI Tables
- Unable to create VM (22) vmx_set_ctlreg: cap_field: 2 bit: 20 unspecified don't care HOT 2
- Windows 10 fails to boot with rdmsr to register 0x3a on vcpu 0 error HOT 6
- Error on macOS aarch64 HOT 10
- Still doesn't work on Big Sur for me HOT 8
- com.apple.vm.hypervisor is deprecated HOT 1
- Best way to shutdown VM? HOT 2
- Alpine Linux boot hangs at "Mounting boot media: [ 0.750233] SCSI subsystem initialized"
- Success with NetBSD, DragonFly BSD or OpenSolaris?
- Challenges in porting Bhyve to Xhyve (MAC)? HOT 1
- AppleSilicon support
- virtio_9p? HOT 4
- Monterey: make returns atomic.h error
- signing xhyve
- New release? HOT 1
- Cluster provider for xhyve
- Is it possible to run macOS guests in xHyve? Hackintosh-like?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xhyve.