Page 1 of 1

How to follow soft links (win 10 quest side) for links which are defined in the linux host

Posted: 31. Mar 2019, 19:06
by jcdole
Hello.
The host is running opensuse 42.3 ( and soon leap 15.1 )
On the linux root files system side there is a main folder for some windows vm ( XP, WIN7, WIN10 ) and a main folder folder for some linux vm ( opensuse 13.2, leap 42.2, 42.3, 15.0 )
My question is about the guest win 10 vm.
The main folder is named

Code: Select all

/virtual_WIN
and for my question the guest vm folder is

Code: Select all

WIN10_G755VW_2019
The VM have a folder organized like that :

Code: Select all

/virtual_WIN/WIN10_G755VW_2019
/virtual_WIN/WIN10_G755VW_2019/CURRENT_CONFIG
/virtual_WIN/WIN10_G755VW_2019/PREVIOUS_CONFIG
/virtual_WIN/WIN10_G755VW_2019/SHARED_FOLDERS/win_echange
/virtual_WIN/WIN10_G755VW_2019/SHARED_FOLDERS/win_temp
/virtual_WIN/WIN10_G755VW_2019/SHARED_FOLDERS/win_work
/virtual_WIN/WIN10_G755VW_2019/SNAPSHOTS
/virtual_WIN/WIN10_G755VW_2019/VDI
To run faster as possible, the main folder 'virtual_WIN' is on a SSD disk.
Because the ssd disk have limited space, I would like to use soft link for the shared folders.
To do so i would like to create a secondary main linux folder like

Code: Select all

/virtual_src_WIN
With the same organization :

Code: Select all

/virtual_src_WIN/WIN10_G755VW_2019/SHARED_FOLDERS/win_echange
/virtual_src_WIN/WIN10_G755VW_2019/SHARED_FOLDERS/win_temp
/virtual_src_WIN/WIN10_G755VW_2019/SHARED_FOLDERS/win_work
/virtual_src_WIN/WIN10_G755VW_2019/SNAPSHOTS
And put all the corresponding stuff there.
So I can now remove these folders from the 'virtual_WIN' folder

Code: Select all

/virtual_WIN/WIN10_G755VW_2019
/virtual_WIN/WIN10_G755VW_2019/CURRENT_CONFIG
/virtual_WIN/WIN10_G755VW_2019/PREVIOUS_CONFIG
/virtual_WIN/WIN10_G755VW_2019/
/virtual_WIN/WIN10_G755VW_2019/
/virtual_WIN/WIN10_G755VW_2019/
/virtual_WIN/WIN10_G755VW_2019/
/virtual_WIN/WIN10_G755VW_2019/VDI
Then add soft links to the stuff to get :

Code: Select all

/virtual_WIN/WIN10_G755VW_2019
/virtual_WIN/WIN10_G755VW_2019/CURRENT_CONFIG
/virtual_WIN/WIN10_G755VW_2019/PREVIOUS_CONFIG
/virtual_WIN/WIN10_G755VW_2019/[b][i]SHARED_FOLDERS[/i][/b]
/virtual_WIN/WIN10_G755VW_2019/[b][i]SNAPSHOTS[/i][/b]
/virtual_WIN/WIN10_G755VW_2019/VDI
It seems that is is not working.
Any help is welcome

Re: How to follow soft links (win 10 quest side) for links which are defined in the linux host

Posted: 31. Mar 2019, 20:29
by Martin
From the manual, chapter 4.3:
Oracle VM VirtualBox shared folders also support symbolic links, also called symlinks, under the following conditions:
The host operating system must support symlinks. For example, a Mac OS X, Linux, or Oracle Solaris host is required.
Currently only Linux and Oracle Solaris Guest Additions support symlinks.