Page 1 of 2

Disable bridge adapter on OSX

Posted: 4. May 2018, 07:46
by Sonuk
How do i disable network adapter on MAC

Re: Disable bridge adapter on OSX

Posted: 4. May 2018, 09:37
by andyp73
You will need to start by giving a more detailed explanation of your problem. Are you trying to disable network adapters in a guest? The physical adapter on a Mac host?

-Andy.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 09:38
by Sonuk
When I create VM on virtual box , under network settings users shouldn't be able to select bridge network. In windows OS , while installing VBOX there is an option to unselect network bridge but where as in MAC I don't see the option while installing

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 09:44
by mpack
This question seems to concern host configuration, not the guest. What is the host? In fact please provide a VM log file: with the VM fully shut down, right click it in the GUI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 09:53
by Sonuk
I will breif again . I have installed virtual box on Windows machine , while installing virtual box there is an option to disable bridge network so that users cannot select bridge network under network setting , I want to implement the same settings on Mac OS.Kindly help.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 10:15
by socratis
You can't do it. Not without hacking your way. The only option I can think of would be to delete the "VBoxNetAdp.kext" after the installation. I don't know if that will break VirtualBox in some way, I have not tried it. Do you want to give it a go and let us know if it works, without breaking VirtualBox? It would be greatly appreciated...

But, generally speaking, it's a noble request. For the moment only the Windows installer offers specific installation options for specific components. If I get some time (yeah, right) I'll try to see what it takes to create a custom installer. That, BTW, is the easy part; it's the interactions with the rest of the software that I don't know what, if anything, will break. For the moment, if you elect to do a Custom Installation on OSX, you have three options (in theory):
  • Oracle VM VirtualBox Kernel Extensions
  • Oracle VM VirtualBox
  • Oracle VM VirtualBox Command Line Utilities
The only option that you can enable/disable is the Command Line Utilities. Not that much flexibility. For the Linux installer on the other hand, you don't even get an option AFAIK. Haven't tried the Solaris installer...

This is definitely not an "OSX Guests" question, this is an "OSX Hosts" question, and if you include the Linux/Solaris installers as well (why wouldn't you, same principle), it's a "Using VirtualBox" question. Moving there...


PS: I changed the title of the posts from "Disable bridge adapter in MAC" to "Disable bridge adapter on OSX". 1) MAC (all capitals) means something completely different (Media Access Control), from the "Mac", the Apple computer, and 2) a Mac can run OSX/Windows/Linux/more. You were interested for OSX specifically...

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 10:47
by Sonuk
Agreed , I will try to delete "VBOXNETADP.KEXT" and see if it help my cause.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 10:48
by socratis
Careful with the CaPiTaLiZaTiOn... If you do it from the command line using sudo, that matters... ;)

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 11:18
by Sonuk
:D noted.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 11:21
by Sonuk
Any idea where the file VBoxNetAdp.kext is stored.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 11:25
by socratis
Where a proper setup application should store its kexts. NOT in the system directory:
$ locate VBoxNetAdp.kext
/Library/Application Support/VirtualBox/VBoxNetAdp.kext
/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents
/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents/Info.plist
/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents/MacOS
/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents/MacOS/VBoxNetAdp
/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents/_CodeSignature
/Library/Application Support/VirtualBox/VBoxNetAdp.kext/Contents/_CodeSignature/CodeResources
It's a directory as you can tell. Like any other kext... ;)

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 11:48
by Sonuk
Hi , I have deleted VBoxNetAdp.kext from path /Library/Application Support , still able to see bridge network in virtual machine network settings.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 11:51
by socratis
Did you reboot?

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 13:00
by Sonuk
Yes I did , Bridge network,Internal network and NAT are still enabled rest all are disabled after deleting the file and reboot.

Re: Disable bridge adapter on OSX

Posted: 7. May 2018, 13:03
by socratis
And if you select Bridged-to-<existingNIC>, does it work? Do you get an IP in your guest?