If it is then congratulations! You successfully linked the directory within your VM with your host folder. Go to your home directory and check to see if the directory is highlighted in green. Reboot the VM and log-in again sudo shutdown -r now To make this permanent, we'll set it so that it will mount our ~/shared directory on system startupĮdit fstab file in /etc directory sudo nano /etc/fstabĪdd the following to fstab projects /media/projects vboxsf defaultsĐĐĪdd the following line to /etc/modules and save vboxsf This directory mount we just made is temporary and it will disappear on next reboot. The host folder should now be accessible inside the VM. Mount the shared projects folder from the host sudo mount -t vboxsf projects /media/projects sudo /media/cdrom/./nĬreate projects directory in your home mkdir -p /media/projects Run the installation script for the guest additions. Sudo apt-get install -y build-essential linux-headers-`uname -r` Click the + (plus) icon to add the shared folder/directory. Or simply, from VM interface menu, click on Devices > Shared Folders > Shared Folders Settings. Install dependencies for VirtualBox guest additions sudo apt-get update To access VirtualBox Shared Folder settings, highlight the vm on VirtualBox interface and press Ctrl+s to launch the VM settings. Sudo mount -t iso9660 /dev/cdrom /media/cdrom Use the following command to mount the CD sudo mkdir /media/cdrom Once your VM is up and running, go to Devices -> Insert Guest Additions CD image Then click OK.īoot and wait a few minutes for all the /latest/meta-data/instance-id pings to timeout Make sure that Read-only and Auto-mount are unchecked and Mount point is blank. ![]() On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM. Ubuntu 14, exported from an AWS EC2 instance, as the guest OSĪdd an optical drive as Secondary Slave, left empty.Oracle VM VirtualBox version 6.0.10 with Extension Pack installed.This guide assumes that you are using the following setup: This guide will walk you through the steps on how to setup a VirtualBox shared folder inside an Ubuntu VM that has been exported from an AWS EC2 instance. Mounting VirtualBox shared folders on an Ubuntu guest
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |