You are not logged in.

#1 2019-12-12 09:02:20

botto
Member
Registered: 2015-03-25
Posts: 5

Vagrant NFS Share

I'm trying to run a vagrant box where the

Vagrantfile

is located within my home folder.
I know that running NFS server on archlinux means you have to put it under

/srv

Is there any way to make it possible to share a folder from my home directory through NFS as this is what vagrant tries to mount when bringing up the box?

Last edited by botto (2019-12-12 09:02:34)

Offline

#2 2020-02-18 03:41:14

gps1539
Member
From: Los Gatos, CA
Registered: 2013-11-06
Posts: 134

Re: Vagrant NFS Share

You can export any directory you want.

You can bind mount a directory to /srv as discribed here https://wiki.archlinux.org/index.php/NFS#Configuration
or simply add the directory you want to export to /etc/exports e.g.

/home/user1/vagrant  192.168.1.0/24(rw,sync)

exportfs -rav (to update the exports.)

Offline

Board footer

Powered by FluxBB