mbonsack
Contributor
Contributor

Making permission change on /dev/vmnet* permanent in Ubuntu 9.10

I have added the following to /etc/udev/rules.d/70-persistent-net.rules on my Ubuntu 9.10 setup:

  1. For VMnet devices

SUBSYSTEM=="net", KERNEL=="vmnet[18]", MODE="0666"

so that the VMs to cat set the virtual interface(s) to promiscous mode. However, the change does not take effect on a udev restart or at a reboot.

How do you change the permissions of /dev/vmnet* permanently in Ubuntu?

0 Kudos
4 Replies
AWo
Immortal
Immortal

Have you tried "MODE:="0666" instead "=", already?


AWo
VCP / VMware vEXPERT 2009

=Due to lack of employees, human beings work here. - Treat them carefully, they are rare.=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
mbonsack
Contributor
Contributor

Yup; no change. It looks like the vmware init script is tweaking the /dev/vmnet* devices after udev. I simply put a chmod in this section of the vmware init script:

  1. Start the virtual ethernet kernel service

vmwareStartVmnet() {

vmwareLoadModule $vnet

"$BINDIR"/vmware-networks --start >> $VNETLIB_LOG 2>&1

{color:#ff0000}chmod 666 /dev/vmnet*

}

I think it's a hack, but it worked Smiley Happy

-marrk

0 Kudos
sefsinc
Enthusiast
Enthusiast

I am trying to do the same thing in 9.10

Can anyone make heads or tails of this thread?

https://bugs.launchpad.net/ubuntu/source/udev/bug/461275

0 Kudos
sefsinc
Enthusiast
Enthusiast

Well thank you. It does work...

between you this link over at Archlinux

... and this vmware kb article

I did created the group like they said in the above kb, and then in /etc/init.d/vmware

I have

.

.

.

vmwareStartVmnet() {

vmwareLoadModule $vnet

"$BINDIR"/vmware-networks --start >> $VNETLIB_LOG 2>&1

chgrp vmnetzero /dev/vmnet0

chmod g+rw /dev/vmnet0

}

.

.

.

and this does seem to work in karmic. Can't wait to see the solution in Lazy Lark 10.04!!!

0 Kudos