

While trying out a new Linux distribution in a virtual machine, you want to configure the desktop environment the exact same way as on your host OS.When you work with virtual machines, sooner or later you run into a situation where a file resides on the host OS and you want to access it on the guest OS, or the other way around. The guest operating system is the one you run inside a VirtualBox virtual machine. With the host operating system I mean the operating system, where you installed the VirtualBox program itself. As the name implies, a shared folder enables file sharing between the host and the guest operating systems. VirtualBox comes with a feature called shared folders. In this article you’ll learn how to configure and mount a shared folder on your Linux based VirtualBox virtual machine. Once configured, you can easily exchange files between the host and guest OS. Inside your VirtualBox virtual machine you can then mount this shared folder. Then press Ctrl-O to save and Ctrl-X to exit from the nano text editor.Ever needed to access a file inside your virtual machine, which resides on your host operating system? With the help of VirtualBox’s shared folders feature, you can select a folder on your host OS to share. To add the new directory as a share, we edit the file by running: sudo nano /etc/samba/smb.confĪt the bottom of the file, add the following lines: The configuration file for Samba is located at /etc/samba/smb.conf. The command above creates a new folder sambashare in our home directory which we will share later.

Now that Samba is installed, we need to create a directory for it to share: $ mkdir /home//sambashare/ We can install Samba on Ubuntu like this: $ sudo apt update How can I move data between the Ubuntu Host and MacOS Guest operating systems? Samba to the rescue! If you followed this article about hosting a MacOS High Sierra in VirtualBox you would face a big problem:
