Problems running vagrant on Arch Linux

1,921 views
Skip to first unread message

August Lilleaas

unread,
Jan 30, 2011, 12:50:44 PM1/30/11
to Vagrant
A few issues I've had running a vagrant box on Arch Linux, that I
created, and that works, on OS X.

1. There's no "nfsd" in Arch's nfs-utils package [1]. I have never
used nfs before, so I can't tell you what vagrant should look for
instead. Let me know if there's anything I can do to help you make nfs
work on Arch.

2. "vagrant up" at first complained about not finding "nfsd". The arch
package has the file /usr/sbin/rpc.nfsd, so just for laughs, I tried
to symlink it to /sbin/nfsd. That didn't work, though, so I removed
it. But now, "vagrant up" will no longer complain that it can't find
nfsd. Instead, it breaks when it tries to mount the nfs stuff. I
looked for caches and that not in ~/.vagrant, but couldn't find
anything.

3. vagrant up seems to have a hard-reference to Ubuntu/Debian stuff.
When vagrant asks "[default] Preparing to edit /etc/exports.
Administrator privileges will be required..." and I enter my password,
it immediately prints "sudo: /etc/init.d/nfs-kernel-server: command
not found". I don't have a /etc/init.d on my system, so that's odd. I
do have /etc/rc.d/nfs-server, though.

[1] http://www.archlinux.org/packages/core/x86_64/nfs-utils/

Mitchell Hashimoto

unread,
Jan 30, 2011, 1:50:10 PM1/30/11
to vagra...@googlegroups.com
On Sun, Jan 30, 2011 at 9:50 AM, August Lilleaas
<augustl...@gmail.com> wrote:
> A few issues I've had running a vagrant box on Arch Linux, that I
> created, and that works, on OS X.

Thanks. There are indeed a variety of things in Vagrant that are
hardcoded to specific host OS's and guest OS's, since things like NFS
simply aren't uniform across the various operating systems. I haven't
really worked towards Arch compatibility yet so this makes sense.

I have a close friend who uses Arch full time so I'll ask him to point
me in the right direction to get all this working, and I'll keep you
up to date.

Best,
Mitchell

Joshua Timberman

unread,
Jan 30, 2011, 6:01:45 PM1/30/11
to vagra...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jan 30, 2011, at 5:50 PM, August Lilleaas wrote:

>
> 1. There's no "nfsd" in Arch's nfs-utils package [1]. I have never
> used nfs before, so I can't tell you what vagrant should look for
> instead. Let me know if there's anything I can do to help you make nfs
> work on Arch.


The documentation for NFSv4 on ArchLinux is here:

https://wiki.archlinux.org/index.php/NFSv4

You're probably most interested on the "Starting the Server" section. Untested, but you should be able to get NFSv4 daemon running in a Chef Recipe with:


%w[ rpcbind nfs-common nfs-server ].each do |daemon|
service daemon do
action [:enable, :start]
end
end

- --
Joshua Timberman
http://twitter.com/jtimberman

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAk1F7dkACgkQTGP9Ng9XhV7FtwCfcBzCf+PaQo8ZNCvADCru/I0L
z/cAnRKUa7aIAEv3ctnQJ2aZEwekNnA5
=oe+g
-----END PGP SIGNATURE-----

Maciej Mazur

unread,
Nov 2, 2011, 9:53:04 AM11/2/11
to vagra...@googlegroups.com
is there any progress? How can i help? I have the same problem

Ryan Kois

unread,
Oct 21, 2013, 1:37:48 PM10/21/13
to vagra...@googlegroups.com, augustl...@gmail.com
I'm having the same issue. Manually mounting the share works, but it would be nice not to have to do that.

On Friday, May 17, 2013 2:57:16 PM UTC-6, Martin Dluhos wrote:
Hi,

Has anyone figured out this issue? I also get the same problem and can't start the vm when
NFS is enabled. When trying to start the vm, Vagrant just hangs at:

[default] Mounting NFS shared folders...

I would greatly appreciate any help with this.

Thanks,
Martin

David Parrish

unread,
Nov 4, 2013, 11:32:02 AM11/4/13
to vagra...@googlegroups.com, augustl...@gmail.com
I was also having this issue.  The only things I did which resolved the issue for me were:
  1. Delete the /etc/udev/rules.d/70-persistent-net.rules directory on the guest
  2. Ran 'vagrant provision' and then 'vagrant reload'
I don't know if either of those things helped, but I am no longer experiencing the problem.

David Parrish

unread,
Nov 6, 2013, 4:20:01 PM11/6/13
to vagra...@googlegroups.com, augustl...@gmail.com
Also, it is important to have net-tools installed.  I removed net-tools, thinking it wasn't important, but then I struggled with why I kept getting "[default] Mounting NFS shared folders..."

Tomáš Sušánka

unread,
Sep 20, 2014, 7:09:27 AM9/20/14
to vagra...@googlegroups.com
Installing net-tools fixed the problem for me (regarding freezing at Mounting NFS..)

Dne středa, 6. listopadu 2013 22:20:01 UTC+1 David Parrish napsal(a):
Reply all
Reply to author
Forward
0 new messages