Userbie

Topic Progress:

Bonus: Copying Files To and From the VM

If you’ve installed the recommended version of Debian, copying files to and from the virtual machine is going to be super-easy as well. Files in the directory on the host machine where the Vagrantfile is located will be automatically visible in the /vagrant directory in the virtual machine.

So if you want to share a file from the host to the VM, just put it in the same directory as the Vagrantfile. And if you want to share a file from the VM to the host, just put it in the /vagrant directory.

Wondering how to copy files inside the virtual machine? Read the remaining chapters, which will tell you all you need to know about it 🙂