The virtual machine’s operating system has attempted to enable promiscuous mode on adapter ‘Ethernet0’. This is not allowed for security reasons.

Linux环境的VMware里跑了个win系统,运行一段时间后总是报错如下:

The virtual machine’s operating system has attempted to enable promiscuous mode on adapter ‘Ethernet0’. This is not allowed for security reasons.
Please go to the Web page “http://vmware.com/info?id=161” for help enabling promiscuous mode in the virtual machine.
在普通用户里运行VMware会遇到这个问题,root用户不会。

解决方法1:创建一个组,给这个组赋予读写权限,然后将/dev/vmnet0与/dev/vmnet8修改到这个组。

groupadd vmwaregroup
usermod -a -G vmwaregroup guest    //这里的guest是我跑VMware的用户
chgrp vmwaregroup /dev/vmnet0
chgrp vmwaregroup /dev/vmnet8
chmod g+rw /dev/vmnet0
chmod g+rw /dev/vmnet8
解决方法2:直接给足权限。

chmod a+rw /dev/vmnet0
chmod a+rw /dev/vmnet8

结束。

posted @ 2022-11-12 17:48  巴州夜雨  阅读(249)  评论(0编辑  收藏  举报