[英]How to share a directory between windows and virtualbox?
I recently installed virtualbox 6.1.4 on my windows 10.我最近在 Windows 10 上安装了 virtualbox 6.1.4。
I used the image ubuntu-18.04.4-server-amd64 as image.我使用图像 ubuntu-18.04.4-server-amd64 作为图像。
When I try to share a directory between windows and linux, It doesn't appear on linux virtual machine.当我尝试在 windows 和 linux 之间共享目录时,它没有出现在 linux 虚拟机上。
The image of configuration used is below:使用的配置图像如下:
The program is in portuguese, however, the shared area of transference and the drag and drop are set to biderectional该程序是葡萄牙语,但是,转移和拖放的共享区域设置为双向
The shared folder path is: C:\\Users\\my-user-name\\VirtualBoxVMs\\ubuntu_server\\share共享文件夹路径为:C:\\Users\\my-user-name\\VirtualBoxVMs\\ubuntu_server\\share
Folder name: share.文件夹名称:共享。 And It is set to automaticaly mounting.并且设置为自动挂载。
When I try the installed guest additions, this error appears:当我尝试安装的来宾添加时,出现此错误:
How can I create a shared folder between VM and Windows?如何在 VM 和 Windows 之间创建共享文件夹?
You have to install VBoxGuestAdditions manually!您必须手动安装 VBoxGuestAdditions! Start your virtual machine, open a terminal and type in this order those commands:启动您的虚拟机,打开终端并按以下顺序键入这些命令:
sudo apt-get install wget
wget http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_6.1.4.iso
sudo mkdir /media/VBoxGuestAdditions
sudo mount -o loop VBoxGuestAdditions_6.1.4.iso /media/VBoxGuestAdditions
sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run
rm VBoxGuestAdditions_6.1.4.iso
sudo umount /media/VBoxGuestAdditions
sudo rmdir /media/VBoxGuestAdditions
it may ask your root password, if your user does not belong to sudoers, just type su -
, insert root psswd and repeat all above command without sudo:它可能会询问您的 root 密码,如果您的用户不属于 sudoers,只需键入su -
,插入 root psswd 并在没有 sudo 的情况下重复上述所有命令:
apt-get install wget
wget http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_6.1.4.iso
mkdir /media/VBoxGuestAdditions
mount -o loop VBoxGuestAdditions_6.1.4.iso /media/VBoxGuestAdditions
sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run
rm VBoxGuestAdditions_6.1.4.iso
umount /media/VBoxGuestAdditions
rmdir /media/VBoxGuestAdditions
You just have to reboot now and you should be able to see you shared folder!你现在只需要重新启动,你应该能够看到你的共享文件夹!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.