How do ubuntu and VirtualBox implement Shared Settings

  • 2020-05-24 06:36:21
  • OfStack

VirtualBox implements sharing Settings under ubuntu:

Using system VirtualBox and installing another Ubuntu, I want to let the two systems realize the sharing setting. After searching the information online, it can be realized. Here are the specific steps:

1. VirtualBox is virtual ubuntu under winxp

The following error occurred when accessing win's Shared folder under winxp and ubuntu under ubuntu:

/sbin/mount.vboxsf: mounting failed with the error: No such device

1. To use the Shared folder function, you must install linux guest additions and install the enhanced functions
2, lsmod | grep vboxvfs, make sure the vboxvfs module is loaded, if not, use sudo modprobe vboxvfs to load
3. Create a new folder, sudo mkdir /home/js/dxn
4, sudo mount-vboxsf xuni /home/js/dxn sudo mount-t vboxsf "Shared folder name" "virtual machine Shared folder directory"
5, cd/home/js/dxn

2. VirtualBox virtual win xp under winxp

1. Install the enhancement program
2. Set the allocation of data space in the virtual machine, for example, I usually set it to F: \xunixt\xuni
3. Start the virtual machine (in this case, Windows XP), click "run" in the start menu, enter cmd, and then execute the following instructions:
4, net use F: \\vboxsvr\dxn
net use Shared file: \\vboxsvr\ Shared folder name
5, restart the virtual machine, done!

3. VirtualBox virtual win xp under ubuntu8.10 (host linux

1. Install the enhancements and restart

2. Execute at ubuntu8.10 terminal

VBoxManage sharedfolder add "XP" -name "dxn" -hostpath "\home\js\dxn"

VBoxManage sharedfolder add "VM name "-name" Shared folder name "-hostpath" host Shared folder path"

3. Start the virtual machine (in this case, Windows XP), click "run" in the start menu, enter cmd, and then execute the following instructions:

net use Z: (note the space Z)
net use Z: \\vboxsvr\ Shared folder name

VirtualBox virtual ubuntu under ubuntu8.10 (host linux) this is a bit boring

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: