> ## Content Index
> Fetch the complete content index at: https://scriptcrunch.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# [ Solved ] Vagrant Folder Mount Issue
- URL: https://scriptcrunch.com/solved-vagrant-folder-mount-issue/
- Published: 2016-04-27T09:39:41.000Z
- Updated: 2026-06-23T08:56:19.000Z
- Author: Scriptcrunch Editorial
- Tags: Linux, Tutorials, Vagrant, #Migrated-1758801465347, #wp, #wp-post, #Import 2025-09-25 11:57, Troubleshooting

By default [vagrant](https://scriptcrunch.com/tag/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.

```bash
vagrant ssh
```

step 2: execute the following command.

```bash
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
```

Step 3: Exit from VM

```bash
exit
```

Step 3: Reload the configuration using the following command.

```bash
vagrant reload
```

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.

```bash
cd /opt/VBoxGuestAdditions-*/init 
```

Step 2: Setup VBoxGuestAdditions

```bash
sudo ./vboxadd setup
```

Step 3: Exit VM

```bash
exit
```

Step 4: Reload VM

```bash
vagrant reload
```

Now [ssh](https://scriptcrunch.com/ssh-concept/) into the VM and try accessing /vagrant.