vmwar挂载宿主机目录
2.在Linux中安装vm-tools:
yum install -y open-vm-tools open-vm-tools-desktop
3.挂载:
查看共享的目录
# vmware-hgfsclient
vmwar-soft
执行命令挂载目录
mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other,nonempty
修改数据令系统启动时自动挂载
vim /etc/fstab
#在末尾另起一行 添加:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
# :wq保存退出
再次挂载目录
vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other,nonempty
查看是否成功
ls /mnt/hgfs
软连接至目标根目录
ln -s /mnt/hgfs/html /var/www
已有 0 条评论