We're in a managed environment at work and need to disable bridged networking as an option on our OS X VirtualBox installations. I found a post with a similar question, but no responses back in 2011 (sorry, this is my first day in the forum and I can't post URLs. The post in this forum is called "Prevent virtual machines network access")
and in the VirtualBox manual section 2.1.2 I see explicit instructions for doing this on Windows installations by using the ADDLOCAL parameter with msiexec. However, in the OS X installation section of the manual (2.2) There are no similar instructions for passing these parameters to the installer.
Is this possible on managed OS X installations? Has anyone set up anything similar? Any help is greatly appreciated.
Disabling Bridged networking on managed OS X installation
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Disabling Bridged networking on managed OS X installatio
In Windows you have the option to not install bridged networking at installation time. Does that option not exist in the OS X version?
Bill
-
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: Disabling Bridged networking on managed OS X installatio
You could try to disable the .kext, but I'm not sure of the effects that this would have.
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.
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.
Re: Disabling Bridged networking on managed OS X installatio
Yeah, I saw the documented method for doing this in Windows. There doesn't seem to be an equivalent option for the OS X installation. At least not in the documentation. I was hoping maybe someone had some insight.BillG wrote:In Windows you have the option to not install bridged networking at installation time. Does that option not exist in the OS X version?
Re: Disabling Bridged networking on managed OS X installatio
That's a good thought. I'm going to try that out in a test environment.socratis wrote:You could try to disable the .kext, but I'm not sure of the effects that this would have.
Re: Disabling Bridged networking on managed OS X installatio
For the record, this seems to have worked. All I had to do was remove all references to VBoxNetFlt.kext in
/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh
and restart the Mac. This disables bridged networking, but unfortunately "Bridged Adapter" is still available as an option for network adapters in the GUI, which causes errors if it is selected and the VM is started up. However, this should be good enough for our purposes. We've still got a little more testing to do, but it looks good so far.
Thanks for the feedback on this!
/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh
and restart the Mac. This disables bridged networking, but unfortunately "Bridged Adapter" is still available as an option for network adapters in the GUI, which causes errors if it is selected and the VM is started up. However, this should be good enough for our purposes. We've still got a little more testing to do, but it looks good so far.
Thanks for the feedback on this!
-
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: Disabling Bridged networking on managed OS X installatio
FWIW, I tried installing VBox in a Windows VM (hey, that's what VMs are for, testing, right?) where I chose not to install the bridged adapter. I was still able to select the bridged adapter in the VBox GUI afterwards. The setup was a little bit complicated, but somehow I believe I got an address none the less. Will repeat and post, but it would be nice if a real system was tested by someone that has a Windows machine.
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.
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.
-
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: Disabling Bridged networking on managed OS X installatio
Yeap, did it again.
- Windows 7 VM with host-only adapter, IP 192.168.100.110 (I've changed the default 192.168.56.# to 192.168.100.#).
- Installed VirtualBox without the bridged adapter.
- Installed WinXP. One NIC, selected Bridged adapter. No complaints.
- WinXP gets an IP of 192.168.100.111.
- Go figure...
- Windows 7 VM with host-only adapter, IP 192.168.100.110 (I've changed the default 192.168.56.# to 192.168.100.#).
- Installed VirtualBox without the bridged adapter.
- Installed WinXP. One NIC, selected Bridged adapter. No complaints.
- WinXP gets an IP of 192.168.100.111.
- Go figure...
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.
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.
Re: Disabling Bridged networking on managed OS X installatio
I'm getting the same things on a Windows host. I install Virtualbox with the Bridged Networking option disabled and I can still create a bridged network adapter. Whereas on OS X, after disabling VBoxNetFlt.kext in the VirtualBoxStartup.sh script, I can't.