Install Vagrant on Arch Linux

For development, Vagrant is the best way to provide a development environment. On Arch Linux some preconditions are needed to be satisfied.

Preconditions

VirtualBox

First, you have to install VirtualBox and the host modules

If you use an custom kernel, you should use virtualbox-host-dkms instead. You can find more information in the official wiki.

Now the VirtualBox kernel modules have to be loaded. For auto loading on every start create the following file:

Also, you have load these modules with modprobe MODULNAME .

NFS

Many Vagrant boxes are configured to use NFS for sharing the data between host and guest system.  It’s a lot faster than the shared folder from VirtualBox. So install the following packages:

After that, you have to edit some files. First set the  Domain  in (i’ve choosed lan):

If you have a firewall, you have to set static ports, even if not it’s recommended. Modify the following files and add/modify options:

 

Enable and start rpcbind

Finally we have to start the services

(If you get some errors… try to restart the whole system)

rsync

Another option getting popular is rsync. Simply install it via:

 

Vagrant

Now we can install Vagrant:

 

Install Redis on Arch Linux

Installing a Redis server is really simple on Arch. First, you have to install the package via package manager

The package comes without an systemd service so you have to create one for your own. Create a new file

and add the following content

Now you’re able to enable and run the Redis server with

Really simple, isn’t it?