Here I share the experience with all of you.
Before installing vagrant, you should at least have the virtualbox installed. If not, following the official instructions.
There are two important steps here, which cannot be ignored:
Step 1.
Step 2.
Install vagrant
Vagrant is not available in Arch Linux official repository for the moment. However, it can be downloaded from AUR.
The repository provides rpm version, which means we cannot install the package directly by using pacman. As suggested by Peter, using AUR helper is a better way to install the package.
Crate or download your vagrant configuration file.
to download and/or start your guest.
vagrant up
To access the server you deployed.
vagrant ssh
NFS
If you use NFS to synchronize the files between host and guest, you need to install some extra packages in your host and guest.For arch host, the following packages should be installed.
pacman -S nfs-utils
pacman -S net-tools
To start nfs, the following services should be start
systemctl start rpc-idmapd.service
systemctl start rpc-mountd.service
To start nfs during the bootup.
systemctl enable rpc-idmapd.service
systemctl enable rpc-mountd.service
For arch guest, the following modules should be installed.
apt-get install nfs-common portmap