Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

VMware-Specific Directories Not Removed When Booting Red Hat Enterprise Linux Host (1717)

Details

When I boot my RedHat Enterprise Linux host, I see one or more instances of the following message:
rm: cannot remove '/var/run/vmware//' is a directory

Solution

If you see these messages when booting a Red Hat Enterprise Linux 2.1 or 3 host, you should modify /etc/rc.d/rc.sysinit:

On a Red Hat Enterprise Linux 3 host, search for the line that contains:
*/sudo|*/vmware) rm -f $afile/*/* ;;

Replace it with the following:
*/sudo|*/vmware) rm -rf $afile/*/* ;;

On a Red Hat Enterprise Linux 2.1 host, search for the following lines:

[ "`basename $afile`" != "news" -a "`basename
$afile`" != "sudo" -a "`basename
$afile`" != "mon" ]&& rm -f $afile/*
[ "`basename $afile`" = "sudo" ]&& rm -f
$afile/*/*

Replace the lines with the following:

[ "`basename $afile`" != "news" -a "`basename
$afile`" != "sudo" -a "`basename
$afile`" != "mon" -a "`basename $afile`" !=
"vmware" ]&& rm -f $afile/*
[ "`basename $afile`" = "sudo" -o "`basename
$afile`" = "vmware" ]&& rm -rf
$afile/*/*

The next time you boot this host, these messages should not appear.

Keywords

1717; gsx320; RHEL

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 0 Ratings
Actions
KB: