Disable bridge adapter on OSX

Discussions related to using VirtualBox on Mac OS X hosts.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Disable bridge adapter on OSX

Post by Sonuk »

How do i disable network adapter on MAC
Last edited by socratis on 7. May 2018, 10:17, edited 1 time in total.
Reason: Changed title to something more appropriate.
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: Disable bridge adapter on OSX

Post 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.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post 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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Disable bridge adapter on OSX

Post 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.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post 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.
Attachments
Test1-2018-05-07-11-58-48.log.zip
Log file
(21.79 KiB) Downloaded 17 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Disable bridge adapter on OSX

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post by Sonuk »

Agreed , I will try to delete "VBOXNETADP.KEXT" and see if it help my cause.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Disable bridge adapter on OSX

Post by socratis »

Careful with the CaPiTaLiZaTiOn... If you do it from the command line using sudo, that matters... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post by Sonuk »

:D noted.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post by Sonuk »

Any idea where the file VBoxNetAdp.kext is stored.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Disable bridge adapter on OSX

Post 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... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post by Sonuk »

Hi , I have deleted VBoxNetAdp.kext from path /Library/Application Support , still able to see bridge network in virtual machine network settings.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Disable bridge adapter on OSX

Post by socratis »

Did you reboot?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Sonuk
Posts: 14
Joined: 4. May 2018, 07:44

Re: Disable bridge adapter on OSX

Post by Sonuk »

Yes I did , Bridge network,Internal network and NAT are still enabled rest all are disabled after deleting the file and reboot.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Disable bridge adapter on OSX

Post by socratis »

And if you select Bridged-to-<existingNIC>, does it work? Do you get an IP in your guest?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply