解決open-vm-tools安裝時Failed to get unit file state for run-vmblockx2dfuse.mount


不知道什么原因,在kali rolling安裝open-vm-tools時報以下錯誤:

Failed to get unit file state for run-vmblockx2dfuse.mount: No such file or directory
run-vmblock\x2dfuse.mount is a disabled or a static unit, not starting it.

我之后搜到這早被國外列為bug:

https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1513531

無奈的是我看得雲里霧里的,好像是Mounting shared Folder not working.

之后里面有人回復推薦了另一個網頁上的解決法子

https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1551558/comments/4

正如里面所說的“Not sure all of it is necessary, but at least it works. Also I think it should be mentioned in Ubuntu FAQ somewhere.”,不一定有用,但至少可以運行。反正我是試了試:)

1、我先卸載所有跟open-vm-tools有關的

apt-get autoremove open-vm-tools open-vm-tools-desktop open-vm-tools-dkms --purge
reboot

 

2、修改/etc/fstab,使其自動加載hgfs

vi /etc/fstab
#在最下面加入以下這句
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,users,defaults 0 0

記得這時候不要reboot重啟,因為還沒安裝open-vm-tools(如果這時候就重啟電腦,重啟后因掛載不了而進入emergency mode,那時候就需要再編輯/etc/fstab把上面新加入的那句話注釋掉重啟后才能進入機子)

 

3、安裝open-vm-tools

apt-get install open-vm-tools-desktop fuse
reboot

(如果你重啟后進入里面,發現跟物理機的復制粘貼功能不好,多試着重啟幾下,會好的吧。)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM