人若无名,便可专心练剑

 error 标签

debian vmware 网络设置异常问题解决

  |   0 评论   |   2,093 浏览

问题:

Unable to load host network configuration. Are you root?
描述:

    已在root下操作,各种google似乎成了死结。然后各种重装粗暴动作轮番上,似乎仍然不得解。

 看日志:

 tail -f /var/log/vnetlib
如下:
Apr 06 11:54:53 VNLNetCfgUnload - Requested cache is not loaded
Apr 06 11:54:50 VNLNetCfgLoad - Failed to lock config database file, error: Success
Apr 06 11:54:50 VNL_Load - Error loading the vnet configuration, file used: /etc/vmware/networking
Apr 06 11:54:50 VNLNetCfgUnload - Requested cache is not loaded
Apr 06 11:54:50 VNLNetCfgGetAnswerString - Database cache is not loaded
Apr 06 11:54:50 VNLNetCfgGetAnswerString - Database cache is not loaded

似乎看到点了什么,fuck “Failed to lock config database file, error: Success”

进入配置目录查看

root@c2y2:/etc/vmware# ls -al
total 60
drwxr-xr-x   5 root root  4096 4月   6 11:59 .
drwxr-xr-x 214 root root 12288 4月   6 11:39 ..
-rw-r--r--   1 root root   226 4月   6 11:39 bootstrap
-rw-r--r--   1 root root   894 4月   6 11:53 config
drwxr-xr-x   3 root root  4096 4月   6 11:40 hostd
lrwxrwxrwx   1 root root    19 4月   6 11:39 icu -> /usr/lib/vmware/icu
lrwxrwxrwx   1 root root    69 4月   6 11:40 installer.sh -> /usr/lib/vmware-installer/@@VMIS_VERSION@@/vmware-uninstall-downgrade
-rw-r--r--   1 root root   556 4月   6 11:40 license-ws-120-e2-201505
-rw-r--r--   1 root root    54 4月   6 11:40 locations
-rw-r--r--   1 root root    85 4月   6 11:40 netmap.conf
-rw-r--r--   1 root root    12 4月   6 11:54 networking
drwxrwxrwx   2 root root  4096 4月   6 11:59 networking.lck #这里,这里 
drw-------   2 root root  4096 4月   6 11:40 ssl
-rw-r-----   1 root root    33 4月   6 11:30 usbarb.rules
呵呵,networking.lck,应该是上次异常推出,导致文件句柄锁没有释放

解决方法仍然粗暴:

mv networking.lck networking.lck.bak #或者干脆删除