VMWare's 'vmnet' module won't unload, how to unload or determine what's using it?

VMWare's 'vmnet' module won't unload, how to unload or determine what's using it?

Post by Stewart Honsberg » Sat, 19 Aug 2000 11:40:40

[Note: Followup set to the group I read most frequently]

As the subject indicates, I'm having trouble unloading a module that
just won't go away. I've got VMWare installed (version 2.0.2 currently),
and since upgrading to the latest set of Linux 2.4-test* kernels, I can
no longer unload the vmnet module, thus I can not upgrade versions of
VMWare or re-configure VMWare without removing the VMWare start entries
from /sbin/init.d/rc2.d and re-booting. I just hate re-booting Linux,
especially when my uptime starts to climb again (damned power failures),
so I'd like to find a solution to remove this module from the running

When I attempt to run vmware-config.pl, it first calls '/sbin/init.d/vmware
stop' which returns this output;

blackdeath:~ # /sbin/init.d/vmware stop
Stopping VMware services:
   Virtual machine monitor                                            done
   Bridged networking on /dev/vmnet0                                  done
   DHCP server on /dev/vmnet1                                         done
   Host-only networking on /dev/vmnet1                                done
   Virtual ethernet                                                   failed

I assume it's related to this problem;

blackdeath:~ # rmmod vmnet
vmnet: Device or resource busy

For the life of me, I have no idea what could be using this module. I've
tried shutting down any daemons or applications that could have anything
to do with VMWare, but to no avail.

What tool(s) are available to determine what's using a particular module,
and is there any way to force the removal of a module?

Thanks in advance!


Humming along under SuSE 6.4, Linux 2.4.0-test5


1. Orinoco_cs module won't unload in 2.5.70

Kernel 2.5.70 (and 2.5.69-mm8 before it) on my Dell Latitude C840 is
unable to unload the orinoco_cs driver.

I get the following message over and over again while the rmmod hangs:
unregister_netdevice: waiting for eth1 to become free. Usage count = 1

Even after ifconfig downing the interface..

This is quite annoying because the driver doesn't survive suspend and I
can't cleanly shutdown. :)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. HD probs

3. CLUE NEEDED: modules won't auto-unload!

4. Lilo causes problem

5. How to 'unload' LILO ??

6. AIX 4.3, Just ordered a 7248-132...

7. 2.4.2-ac25 error: Malformed setting 'kernel.printk' after cs46xx load/unload

8. 'useradd' always generating password

9. Can't unload STREAMS module ??

10. bttv module doesn't unload

11. Redhat 7.1 'eepro100' and 'e100' drivers won't see 10BaseT network

12. kerneld doesn't unload sound modules

13. 'make' won't work w/o '-f Makefile', which sucks.