桌面应用安全如何保障?
2293
2022-09-09
问题解决:虚拟机无法复制粘贴文件
首先,vmware的增强工具是:open-vm-tools和open-vm-tools-desktop。复制字符没问题,就是复制文件和拖拽文件有问题。
拖拽和复制、粘贴文件,需要挂载一个特殊的文件系统:vmblock-fuse,先查看这个文件系统挂载服务的情况:
[root@k8s-master wlf]# systemctl status run-vmblock\\x2dfuse.mount● run-vmblock\x2dfuse.mount - VMware vmblock Fuse Mount Loaded: loaded (/usr/lib/systemd/system/run-vmblock\x2dfuse.mount; disabled; vendor preset: disabled) Active: inactive (dead) Where: /run/vmblock-fuse What: vmware-vmblock-fuse Docs: 开机自启systemctl enable run-vmblock\\x2dfuse.mount 2. 启动服务systemctl start run-vmblock\\x2dfuse.mount
再看:
[root@k8s-master wlf]# systemctl status run-vmblock\\x2dfuse.mount● run-vmblock\x2dfuse.mount - VMware vmblock Fuse Mount Loaded: loaded (/usr/lib/systemd/system/run-vmblock\x2dfuse.mount; disabled; vendor preset: disabled) Active: inactive (dead) Where: /run/vmblock-fuse What: vmware-vmblock-fuse Docs: wlf]# systemctl enable run-vmblock\\x2dfuse.mount Created symlink from /etc/systemd/system/multi-user.target.wants/run-vmblock\x2dfuse.mount to /usr/lib/systemd/system/run-vmblock\x2dfuse.mount.[root@k8s-master wlf]# systemctl start run-vmblock\\x2dfuse.mount[root@k8s-master wlf]# systemctl status run-vmblock\\x2dfuse.mount● run-vmblock\x2dfuse.mount - VMware vmblock Fuse Mount Loaded: loaded (/usr/lib/systemd/system/run-vmblock\x2dfuse.mount; enabled; vendor preset: disabled) Active: active (mounted) since Sat 2022-06-25 23:04:53 PDT; 14s ago Where: /run/vmblock-fuse What: vmware-vmblock Docs: Process: 9874 ExecMount=/bin/mount vmware-vmblock-fuse /run/vmblock-fuse -t fuse -o subtype=vmware-vmblock,default_permissions,allow_other (code=exited, status=0/SUCCESS) Tasks: 3 Memory: 2.5M CGroup: /system.slice/run-vmblock\x2dfuse.mount └─9880 vmware-vmblock-fuse /run/vmblock-fuse -o rw,subtype=vmware-vmblock...
活的,是吧。 接下来重启 vm-tools 服务:
[root@k8s-master wlf]# systemctl restart vmware-toolsFailed to restart vmware-tools.service: Unit not found.
没这个服务,是吧。
搜一下:
[root@k8s-master wlf]# ls /usr/lib/systemd/system
找到了吧,重启它。
不要说找不到,除非你的屏幕就是小框。
有没有一种感觉,网上搜这个解决方案的,几乎都是让你重装 vm-tools 的,重装了还是不行。而且重装之后,连文本复制粘贴都不行了,查状态确是 active。。。
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~