ls1519

Vmware中Linux虚拟机挂载主机共享文件夹方法,vbox一般选择自动挂载,Linux开机之后就会自动挂载相关共享目录,但是Vmware不能自动挂载。

1. 首先要安装Vmware-tools,安装方法简单,./vmware-install.pl

2. vmware-hgfsclient可以显示主机共享的文件夹名称。如果没有,添加共享目录即可

3.挂载共享目录。以下两种方法

a. CentOS7之前

# 将所有共享文件夹挂载到/mnt/hgfs

sudo mount -t vmhgfs .host/ /mnt/hgfs

# 将指定的共享文件夹挂载到/mnt/hgfs

sudo mount -t vmhgfs .host/sharedfolder /mnt/hgfs

  

b. CentOS7之后

# 将所有共享文件夹挂载到/mnt/hgfs

sudo vmhgfs-fuse .host:/mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

# 将指定的共享文件夹挂载到/mnt/hgfs

sudo vmhgfs-fuse .host:/sharedfolder mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

  

 

分类:

技术点:

相关文章:

  • 2022-02-13
  • 2022-12-23
  • 2021-06-25
  • 2021-06-10
  • 2022-12-23
  • 2022-01-08
  • 2021-08-13
猜你喜欢
  • 2021-12-14
  • 2022-01-08
  • 2022-01-08
  • 2021-07-01
  • 2021-04-11
  • 2021-12-04
相关资源
相似解决方案