Linux下VMware虚拟机网卡不能运行在混杂模式解决办法
转自: http://blog.csdn.net/henulwj/article/details/50347489
- 问题描述
在Linux如果以普通用户运行VMware Workstations,创建虚拟机后提示如下:
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.
-
解决办法
- 创建一个组,给这个组赋予读写权限,然后将/dev/vmnet0或/dev/vmnet8修改为这个组
groupadd vmwaregroup
usermod -a -G vmwaregroup netseclab
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