Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macmacmacr

macrumors regular
Original poster
Dec 23, 2014
152
5
When I perform the command kextstat -l it reveals all running kext. Two of the kext on my High sierra workstation is as follows.

191 2 0xffffff7f83577000 0xf1000 0xf1000 org.virtualbox.kext.VBoxDrv (6.1.4) A45D7366-1795-31A8-94A2-99A0EE7C88E4 <7 5 4 3 1>
192 0 0xffffff7f8366b000 0x8000 0x8000 org.virtualbox.kext.VBoxUSB (6.1.4) C11F34A0-3FA8-3868-901F-3A4736209000 <191 178 56 7 5 4 3 1>
194 0 0xffffff7f83675000 0x5000 0x5000 org.virtualbox.kext.VBoxNetFlt (6.1.4) A30F158C-26AF-3122-812C-AAF76610D33D <191 7 5 4 3 1>

My latest version of Virtual box will not install and I would like to remove the above kext. How do I identify the appropriate kext?
 
If they are not in /Library/Application Support/VirtualBox/, you can search their location with
system_profiler SPExtensionsDataType | grep -A 8 "virtualbox"
then you have to unload each one with
sudo kextunload "/Library/Application Support/VirtualBox/VBoxUSB.kext"
or
sudo kextunload /Library/Application\ Support/VirtualBox/VBoxUSB.kext
then remove each one with
sudo rm -r /Library/Application\ Support/VirtualBox/VBoxUSB.kext
or all at once with
sudo rm -rf /Library/Application\ Support/VirtualBox/VBox*
 
  • Like
Reactions: macmacmacr
When I perform the command kextstat -l it reveals all running kext. Two of the kext on my High sierra workstation is as follows.

191 2 0xffffff7f83577000 0xf1000 0xf1000 org.virtualbox.kext.VBoxDrv (6.1.4) A45D7366-1795-31A8-94A2-99A0EE7C88E4 <7 5 4 3 1>
192 0 0xffffff7f8366b000 0x8000 0x8000 org.virtualbox.kext.VBoxUSB (6.1.4) C11F34A0-3FA8-3868-901F-3A4736209000 <191 178 56 7 5 4 3 1>
194 0 0xffffff7f83675000 0x5000 0x5000 org.virtualbox.kext.VBoxNetFlt (6.1.4) A30F158C-26AF-3122-812C-AAF76610D33D <191 7 5 4 3 1>

My latest version of Virtual box will not install and I would like to remove the above kext. How do I identify the appropriate kext?
Use the VirtualBox uninstaller script, documented here: https://www.virtualbox.org/manual/ch02.html#install-mac-uninstall
 
If they are not in /Library/Application Support/VirtualBox/, you can search their location with
system_profiler SPExtensionsDataType | grep -A 8 "virtualbox"
then you have to unload each one with
sudo kextunload "/Library/Application Support/VirtualBox/VBoxUSB.kext"
or
sudo kextunload /Library/Application\ Support/VirtualBox/VBoxUSB.kext
then remove each one with
sudo rm -r /Library/Application\ Support/VirtualBox/VBoxUSB.kext
or all at once with
sudo rm -rf /Library/Application\ Support/VirtualBox/VBox*

Thanks bogdanw.
Do you know how a displayed kext name found in kextstat command is associated to the appropriate file ?
 
Thanks bogdanw.
Do you know how a displayed kext name found in kextstat command is associated to the appropriate file ?
Run
kextstat -l | grep "virtualbox"
to get only virtualbox kexts
and then run
system_profiler SPExtensionsDataType | grep -A 8 "virtualbox"
The Bundle ID's from the second are the names from the first, the location is the last line from each one.
kexts.jpg
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.