Posted on July 24, 2019 at 3:37 pm
Lets say you have created a shared folder in your Linux Debian host, i.e:
/vms/shared_folder |
Now you want to add that shared folder on VM named “Win7-64-bit-VM1”:
VBoxManage sharedfolder add Win7-64bit-VM1 --name srv --hostpath "/vms/shared_folder" --transient |
The “–transient” makes sure the mapping will not persist over the VM restart.
If you want the mapping to persist over the VM restart, type:
VBoxManage sharedfolder add Win7-64bit-VM1 --name srv --hostpath "/vms/shared_folder" |
Use “–automount” to automatically mount the share:
VBoxManage sharedfolder add Win7-64bit-VM1 --name srv --hostpath "/vms/shared_folder" --automount |
References:
VirtualBox VBoxManage add/remove shared folders on the fly
VBoxManage sharedfolder add/remove
Other Posts
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
Updated Posts
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens