Monday, February 28, 2011

RHEL/CentOS on ESX4i Udev Unknown Key

While you may or may not get the following error message, but still since it's most likely that it will, and in some cases it might just prevent your virtual machine from progressing any further:

*********************************************************************************
Starting udev: udevd[572]: add_to_rules: unknown key 'SUBSYSTEMS'
udevd[572]: add_to_rules: unknown key 'ATTRS{vendor}'
udevd[572]: add_to_rules: unknown key 'ATTRS{model}'
udevd[572]: add_to_rules: unknown key 'SUBSYSTEMS'
udevd[572]: add_to_rules: unknown key 'ATTRS{vendor}'
udevd[572]: add_to_rules: unknown key 'ATTRS{model}'
*********************************************************************************

This seemed to have been caused by the installation of the new vmware tools, pressing the Ctrl+C might just work when you encounter this message.

To fix this, simply edit the file "/etc/udev/rules.d/99-vmware-scsi-udev.rules" and comment out the lines as shown below:

----------------------------------------------------------------------------------
# Redhat systems
ACTION=="add", BUS=="scsi", SYSFS{vendor}=="VMware, " , SYSFS{model}=="VMware Virtual S", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"

# Debian systems
#ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware " , ATTRS{model}=="Virtual disk ", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"

# SuSE / Ubuntu systems
#ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware, " , ATTRS{model}=="VMware Virtual S", RUN+="/bin/sh -c 'echo 180 >/sys$DEVPATH/device/timeout'"
----------------------------------------------------------------------------------
Reboot, and voila !

1 comment:

Coffee Girl said...

Err... you lost me there...