vmnet 内核模块黑名单不起作用

vmnet 内核模块黑名单不起作用

我正在尝试完全卸载 VMware Workstation,以便将其重新安装在我的 Debian 系统上(由于我遇到的一个问题vmnet,阻止我的 NAT 或桥接网络连接到我的虚拟机)。我vmware-installer -u vmware-workstation已经跑了,但注意到组件仍然存在:

# vmware-installer -t
Component Name                 Component Long Name                               Component Version   
============================== ================================================= ====================
vmware-installer               VMware Installer                                  3.1.0.22583795      
vmware-player-setup            VMware Player Setup                               17.5.0.22583795     
vmware-usbarbitrator           VMware USB Arbitrator                             20.10.0.22583795    
vmware-network-editor          VMware Network Editor                             17.5.0.22583795     
vmware-vmx                     VMware VMX                                        17.5.0.22583795     
vmware-tools-linuxPreGlibc25   VMware Tools for legacy Linux                     12.3.0.22583795     
vmware-tools-linux             VMware Tools for Linux                            12.3.0.22583795     
vmware-tools-netware           VMware Tools for NetWare                          12.3.0.22583795     
vmware-tools-solaris           VMware Tools for Solaris                          12.3.0.22583795     
vmware-tools-winPre2k          VMware Tools for Windows 95, 98, Me and NT        12.3.0.22583795     
vmware-tools-winPreVista       VMware Tools for Windows 2000, XP and Server 2003 12.3.0.22583795     
vmware-tools-windows           VMware Tools for Windows Vista or later           12.3.0.22583795     
vmware-player-app              VMware Player Application                         17.5.0.22583795     
vmware-ovftool                 VMware OVF Tool component for Linux               4.6.2.22583795      
vmware-network-editor-ui       VMware Network Editor User Interface              17.5.0.22583795     
vmware-vix-core                VMware VIX Core Library                           1.17.0.22583795     
vmware-vix-lib-Workstation1700 VMware VIX Workstation-17.0.0 Library             1.17.0.22583795     
vmware-vprobe                  VMware VProbes component for Linux                17.5.0.22583795 

参考KB,我尝试手动执行卸载并尝试卸载所有模块,但收到vmnet未卸载的警告:

# /etc/init.d/vmware stop
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine monitor                                             done
modprobe: FATAL: Module vmnet is in use.
rmmod: ERROR: Module vmnet is in use

# lsmod | grep vm
vmnet                  77824  1
vmw_vsock_vmci_transport    45056  0
vsock                  61440  1 vmw_vsock_vmci_transport
vmw_vmci              110592  1 vmw_vsock_vmci_transport
kvm_intel             413696  0
vmwgfx                438272  0
drm_ttm_helper         12288  1 vmwgfx
kvm                  1368064  1 kvm_intel
iwlmvm                589824  0
irqbypass              12288  1 kvm
mac80211             1396736  1 iwlmvm
videobuf2_vmalloc      20480  1 uvcvideo
iwlwifi               544768  1 iwlmvm
videobuf2_memops       16384  1 videobuf2_vmalloc
cfg80211             1339392  3 iwlmvm,iwlwifi,mac80211
videobuf2_common       77824  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
rfkill                 40960  7 iwlmvm,bluetooth,dell_laptop,cfg80211
nvme                   57344  3
nvme_core             196608  4 nvme
t10_pi                 20480  1 nvme_core
ttm                   106496  3 vmwgfx,drm_ttm_helper,i915
drm_kms_helper        270336  4 vmwgfx,drm_display_helper,nvidia_drm,i915
drm                   765952  27 vmwgfx,drm_kms_helper,drm_display_helper,nvidia,drm_buddy,drm_ttm_helper,nvidia_drm,i915,ttm

因此,我还无法完全删除文件等。我试过:

  1. 添加blacklist vmnet/etc/modprobe.d/blacklist.conf
  2. 添加modprobe.blacklist=vmnet/etc/default/grub

完成这些更改后,我确实运行了sudo update-grubsudo update-initramfs -u,但是重新启动后,该vmnet模块仍然被加载,我似乎无法摆脱它。

知道如何摆脱vmnet模块吗?

相关内容