[ Solved ] Vagrant Folder Mount Issue

By default vagrant mounts the host folder to /vagrant directory of the Virtual machine where you have the vagrantfile. This allows us to share files and codebase to the virtual machine without dealing with file transfer utilities or SCP command.

But you might face error sometimes that it does not mount the host directory to the vagrant folder. This happens mostly due to os update. To resolve this follow the steps given below.

Solution 1

Step 1: Shh into the vagrant box.

step 2: execute the following command.

Step 3: Exit from VM

Step 3: Reload the configuration using the following command.

That’s it! Now the vagrant folder will be mounted to the host folder.

Solution 2

If the problem is not solved using slotion1, you should try the steps given below.

Step1: execute the following command.

Step 2: Setup VBoxGuestAdditions

Step 3: Exit VM

Step 4: Reload VM

Now ssh into the VM and try accessing /vagrant.

Related

Even though you can check the disk , directory information and usage using graphical user interface, it is important to…

Read more

When you do an ssh to a remote server, you might see a welcome message with the OS name, Team name or the Company name.…

Read more

If you are running mission critical applications on servers, it is important to monitor and notify the administrators…

Read more

Internet is huge! Help us find great content

Newsletter

Never miss a thing! Sign up for our newsletter to stay updated.

About

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.

​98
%

Off

Udemy Black Friday Offer Courses For $9.99 For Limited Time