简体   繁体   English

如何在windows和virtualbox之间共享目录?

[英]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:当我尝试安装的来宾添加时,出现此错误:

Error 2错误 2

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.

相关问题 Virtualbox-如何在Virtualbox上安装的OS Windows上共享sybase数据库 - Virtualbox - how to share sybase db on OS Windows installed on Virtualbox 在Linux VirtualBox和Windows 7之间建立网络 - Setting up a network between linux VirtualBox and Windows 7 如何在 Windows 主机和 Ubuntu18.04 客户机之间创建 Virtualbox 共享文件夹 - How to create Virtualbox shared folder between Windows host and Ubuntu18.04 guest machine 如何在VirtualBox的Windows上运行Kivy应用程序? - How to run Kivy apps on Windows on VirtualBox? 如何在Mac OS X和Windows 10之间轻松共享文件 - How to share easily files between Mac OS X and Windows 10 如何在分布式 Windows 应用程序之间共享机密而不将其保存到程序集? - How to share a secret between distributed Windows applications without saving it to the assembly? 如何在本机C ++(Windows 7和更高版本)和通用C ++(Windows 8和更高版本)应用程序之间共享代码 - How to share code between native C++ (Windows 7 and previous) and universal C++ (Windows 8 and later) apps 如何使用Python / .NET在Windows上的Samba共享中设置文件/目录所有权/权限? - How to set file/directory ownership/permissions in a Samba share on Windows using Python/.NET? Windows 7上C和C $共享名之间的区别 - Difference between C and C$ Share Name on Windows 7 Windows中可以在PHP和C之间共享内存吗? - is it possible to share memory between PHP and C in Windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM