Skip to main content

Creating a VirtualBox shared folder on Ubuntu 19.04 LTS


Follow the below steps to mount the VirtualBox shared folders on Ubuntu Server 19.04 LTS:

1) Open the VirtualBox

2) Do a Right-click your VM, then click Settings

3) Go to the "Shared Folders" section

4) Add a new shared folder

5) On Add Share prompt, select the Folder Path in your host that needs be accessible inside your VM.

6) In the Folder Name field, type shared

7) Uncheck Read-only and Auto-mount, and check Make Permanent

9) Start your VM

10) Once your VM is up and running, go to Devices menu -> Insert Guest Additions CD image menu

Use the following command to mount the CD:

1) sudo mount /dev/cdrom /media/cdrom

2) Reboot VM
sudo shutdown -r now

3) Create "shared" directory in your home
mkdir ~/shared

4) Mount the shared folder from the host to your ~/shared directory
sudo mount -t vboxsf shared ~/shared

5) The host folder should now be accessible inside the VM.
cd ~/shared

Make the mount folder persistent:

This directory mount we just made is temporary and it will disappear on next reboot. To make this permanent, we'll set it so that it will mount our ~/shared directory on system startup

1) Edit fstab file in /etc directory
sudo vi /etc/fstab

2) Add the following line to fstab (separated by tabs)
shared /home/<username>/shared vboxsf defaults 0 0

3) Edit modules
sudo vi /etc/modules

4) Add the following line to /etc/modules and save
vboxsf

5) Reboot the vm and log-in again
shutdown -r now

6) Go to your home directory and check to see if the file is highlighted in green.
cd ~
ls

Pankaj

Comments

Popular posts from this blog

Spring Cloud vs AWS/GCP/Azure Cloud - In the realm of Distributed Systems Development

The Scalability and High-Availability have become defacto standards for Distributed Systems development. The traditional applications are moving fast from the On-Prem model to the Cloud. With such requirements, it has become imperative to build an application with robust APIs or Cloud Services having fault-tolerant and graceful fallback functionality. Spring framework has emerged as a full-fledged, robust, feature-rich and mature ecosystem over time. It has been equipped with lots of features for rapid development. Spring Boot dominates the Cloud Native Software development. With the introduction of Spring Boot, the Microservices development has catapulted to a whole new level as it brings all sorts of dependencies in one place. Spring Cloud is an umbrella project under the Spring ecosystem. It consists of many sub-projects to build a robust distributed system. It was primarily developed by Netflix and open-sourced as part of Netflix OSS to create resilient, fault-tolerant and s...

Program "make" not found in PATH in Eclipse

In order to fix the error "Program "make" not found in PATH in Eclipse", follow below steps: Right Click on the Project -> Properties -> C/C++ Build ->Environment Check PATH, if it has C:\cygwin64\bin in the path or not. Sometimes path set in Environment variables is not reflected in the Eclipse, so you have to edit it here. Build/Restart the eclipse again, you should be able to get rid of the error. If it still persists, do right click on the Project -> Properties -> C/C++ Build ->Tool Chain Editor Current toolchain: ->Cygwin GCC Current builder: -> GNU Make Builder It should work now !! Pankaj

Create the Vsix package from a class library

A project that was created as a class library that contains numerous controls that can be used in windows forms applications. In order to create an installation package (*.vsix) that will embed these controls into the visual studio toolbox window. The controls are visible in the toolbox window when being in the solution that has this project within itself. I have created a vsix project and referenced the component project's dll as a Microsoft.VisualStudio.Assembly asset. The VS2017 build process creates the vsix file that I need. When I run it on a system with a fresh VS installation, it goes through the install process with no problems, but the components don't show up in the toolbox. When I try to register the asset as a Microsoft.VisualStudio.ToolboxControl, I get the error 'The target "PkgdefProjectOutputGroup" does not exist in the project.  To reslolve the below error which comes while adding reference of DLL application to VSIX project for Visual ...