Share disk with virtual machine

From Klaus' wiki
Revision as of 12:31, 10 November 2016 by Klaus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Is it possible to share the hard disk on you laptop to the virtual machine? Luckely the answer is: Yes.

From Mads Halkjær Villadsen, E16, I have this instruction. The figures are in Danish, but the buttons and settings are placed on similar places in the English version of VirtualBox.

First on your host computer open the VirtualBox software.

Fig1.jpg

Click on Settings/Opsætning

Fig2.jpg

Click on Shared Folders/Delte mapper

Fig3.jpg

Click on Add new shared folder/Tilføj ny delt mappe

Fig4.jpg

Locate the folder on the host machine that shall be share with the virtual machine and click on Automount/Tilslut automatisk and Gør permanent

In the virtual Centos, when it is started open a file manager, e.g. Dolphin or Krusader. It is here shown for Dolphin.

Fig5.jpg

Your share folder is located in /media, i.e. go to the root of the file system and locate the media folder.

Fig6.jpg

Your share folder is called something that starts with sf_.

Fig7.jpg

In Dolphin you can add the folder to be a place you can see every time you open Dolphin.

In Krusader you can bookmark it.

Alternatively you can make a symbolic link to your home directory by issuing this command in your shell:

]$ cd 
]$ ln -s /media/sf_klaus .

and the folder now appears in your home folder.