Vmware hassles with vmnets and udev

Installing vmware creates a bunch of devices in /dev/ on installation. These devices are used for virtual networks (vmnets). If you're running udev, these devices will be created on install, and then the first time you reboot, they'll disappear.

for i in $(seq 0 9)
do [ -e /dev/vmnet$i ] || mknod /dev/vmnet$i c 119 $i

That's the little bash script you have to run as root to recreate those devices if they don't exist. I couldn't find this little gem anywhere, so I'm recording it here for future generations of vmware users.

'rati tags:

1 comment:

Anonymous said...

Thanks a lot - you saved me from getting angry :)