Need to move files from your Ubuntu computer to a VirtualBox virtual machine? This guide provides simple and effective methods to transfer files between your host Ubuntu system and your guest VM, whether it’s running Windows, Linux, or another operating system.
We’ll cover two methods:
- Drag and Drop
- Shared Folders
Method 1: Drag and Drop
When you first install VirtualBox, the drag and drop function is not enabled by default. Here’s how to enable it:
Step 1: Settings
- Click “OK” to save the changes.
- Open VirtualBox and click the “Settings” button for your VM or press
Ctrl + S
.
- In the “General” tab, click “Advanced”.
- Change the “Drag and Drop” setting to “Bidirectional“. This allows you to drag and drop files both from the host to the guest and vice versa.
- Click “OK” to save the changes.
Step 2: Transfer Files
Now you can simply drag and drop files between your Ubuntu host and your VirtualBox VM.
Method 2: Shared Folders
Shared folders allow you to access files from your Ubuntu host within your VirtualBox guest. Here’s how to set up a shared folder:
Step 1: Create a Shared Folder on the Host
Create a folder on your Ubuntu host that you want to share with the guest. For example, /home/user/sharedfolder
.
Step 2: Configure the Shared Folder in VirtualBox
- Open the VM settings in VirtualBox.
- Go to the “Shared Folders” tab.
- Click the “+” icon to add a new shared folder.
- In the “Folder Path” field, select the folder you created on the host.
- Give the shared folder a name in the “Folder Name” field.
- Check the “Auto-mount” option to have the folder automatically mounted when the VM starts.
- Click “OK” to save the changes.
Step 3: Access the Shared Folder in the Guest
- Start the virtual machine.
- Depending on the guest operating system, you can find the shared folder in File Explorer (Windows) or the file manager (Linux). It’s usually mounted as a network drive.
Note: For optimal performance and features, you might need to install VirtualBox Guest Additions.
That’s it! Transferring files between your Ubuntu host and your VirtualBox VM is easier than you think. With these methods, you can seamlessly share files and enjoy a smooth workflow.