vmware下的ubuntu与主机实现文件共享
时间: 2023-12-12 07:03:14 浏览: 49
要在 VMware 中的 Ubuntu 和主机之间实现文件共享,需要进行以下步骤:
1. 在 VMware 中安装 VMware Tools,这将提供共享文件夹的支持。
2. 在主机中创建一个文件夹,用于与 Ubuntu 共享文件。
3. 在 VMware 中的 Ubuntu 中安装 open-vm-tools 和 open-vm-tools-desktop,这将提供对共享文件夹的支持。
4. 在 Ubuntu 中创建一个文件夹,用于挂载共享文件夹。
5. 在 Ubuntu 终端中执行以下命令:
```
sudo mount -t vmhgfs .host:/ /mnt/hgfs/
```
这将将主机中的共享文件夹挂载到 Ubuntu 中的 /mnt/hgfs 目录下。
6. 现在,您可以在 Ubuntu 中的 /mnt/hgfs 目录下访问主机中的共享文件夹。
请注意,如果您使用的是最新版本的 VMware,则可能需要使用 vmhgfs-fuse 命令来挂载共享文件夹。您可以在 Ubuntu 终端中执行以下命令来安装 vmhgfs-fuse:
```
sudo apt-get install open-vm-tools-dkms
sudo apt-get install open-vm-tools-desktop
sudo apt-get install open-vm-tools
sudo apt-get install fuse
sudo mkdir /mnt/hgfs
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
```
希望这能帮助到您实现文件共享。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)