relative path for shared folders

Here you can provide suggestions on how to improve the product, website, etc.
Post Reply
Jocelyn Simard
Posts: 1
Joined: 17. Apr 2012, 19:55

relative path for shared folders

Post by Jocelyn Simard »

I'm moving my virtual machines sometimes - changing drives, directories sometimes. I'm using shared folders quite a lot.

=> Could that be possible to specify shared folders using relative paths instead of absolute paths?

For example, a machine created originally in the D:\VB\xyz could be easily move to F:\VB\xyz if we could specify that the shared folder is ".\shared" instead of D:\VB\xyz\shared (wich have to be changed to when moving the machine). The "." here could be replaced by the absolute path of the .vbox file.

Thank you for this great product!
Jocelyn Simard
Ravermeister
Posts: 2
Joined: 1. Jun 2012, 11:48
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Kubuntu 12.04 MS Windows 8 RC MS Windows XP

Re: relative path for shared folders

Post by Ravermeister »

I'd like to know that too, I have Portable Virtualbox and a Guest system on a USB drive,
I like to share a Folder from the USB stick, where it doesnt matter which drive letter the stick
gets, so specifying relative paths would be great.
Ravermeister
Posts: 2
Joined: 1. Jun 2012, 11:48
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Kubuntu 12.04 MS Windows 8 RC MS Windows XP

Re: relative path for shared folders

Post by Ravermeister »

any news if this is possible?
seems not much activity here :(
Akon
Posts: 6
Joined: 18. Sep 2018, 07:51

Re: relative path for shared folders

Post by Akon »

Is this feature implemented for now?

Does VirtualBox support environment variables in the shared folder's paths?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: relative path for shared folders

Post by socratis »

Akon wrote:Is this feature implemented for now?
No.
Akon wrote:Does VirtualBox support environment variables in the shared folder's paths?
No.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Akon
Posts: 6
Joined: 18. Sep 2018, 07:51

Re: relative path for shared folders

Post by Akon »

Sadly.

I have VirtualBox installed on both Windows and Linux dual OS PC. Then I use guest systems from both host systems more or less evenly. Shared folder (the same for both host systems) in VM settings looks like this:

Code: Select all

Windows: name: EVMsSharedFolder               path: E:\VMsSharedFolder
Linux:   name: CommonVMsSharedFolder          path: /mnt/Common/VMsSharedFolder
It would be nice to have one entry only, something like this:

Code: Select all

name: EVMsSharedFolder               path: ../EVMsSharedFolder (rel. path)
or

Code: Select all

name: EVMsSharedFolder               path: $EVMsSharedFolder (env. var.)
Of course, VirtualBox must support forward/back slashes in paths as well as both environment variables markers: $ for Linux and %% for Windows.

Does a way exist to specify the same shared folder per one entry somehow? Any tricks?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: relative path for shared folders

Post by socratis »

Akon wrote:Does a way exist to specify the same shared folder per one entry somehow?
No.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply