1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > VMware下ubuntu虚拟机和windows创建共享文件夹

VMware下ubuntu虚拟机和windows创建共享文件夹

时间:2021-01-15 19:01:37

相关推荐

VMware下ubuntu虚拟机和windows创建共享文件夹

一、在虚拟机设置要共享的windows文件夹

启动虚拟机选择菜单栏中的虚拟机选择设置中的选项设置共享文件夹

二、在ubuntu中进行设置

1、查看共享文件夹是否设置成功:

vmware-hgfsclient

若成功则会显示在windows下共享文件夹的名称

2、若失败

在一中设置之后,在命令行执行以下代码

//如果之前没有命令包则先执行sudo apt-get install open-vm-tools//更改账户的权限,只有在输入账户的密码之后才能够查看到.即执行sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other

设置完成之后在**/mnt/hgfs**查看共享文件夹

sky@ubuntu:~$ sudo apt-get install open-vm-tools[sudo] password for sky: Reading package lists... DoneBuilding dependency tree Reading state information... Doneopen-vm-tools is already the newest version (2:11.3.0-2ubuntu0~ubuntu20.04.2).The following packages were automatically installed and are no longer required:libfwupdplugin1 linux-headers-5.13.0-39-generic linux-hwe-5.13-headers-5.13.0-39 linux-image-5.13.0-39-generic linux-modules-5.13.0-39-genericlinux-modules-extra-5.13.0-39-genericUse 'sudo apt autoremove' to remove them.0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.sky@ubuntu:~$ sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_othersky@ubuntu:~$ cd /mnt/hgfs/ && lsvmsharesky@ubuntu:/mnt/hgfs$

之后就可以在windows和ubuntu之间共享文件

sky@ubuntu:~$ cp workspace/test/a.c /mnt/hgfs/vmshare/sky@ubuntu:~$ ls /mnt/hgfs/vmshare/a.c c_glib.rarsky@ubuntu:~$

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。