I'm running VB 4.3.6 on Win 7 hosting Ubuntu 12.04 as a guest machine. The host machine is connected to a corporate LAN via ethernet and by USB to a smartphone. I believe Windows connection bridging has been disabled. I want the guest machine to only ever use the phone connection so in VB I set the machine to bridged mode and selected the phones connection. This works fine. However if the phone is unplugged VB reverts to the only other connection on the system, the corporate LAN. This seems to get detected by the network servers and causes the LAN connection to be disabled. I assume this is to protect the network from unauthorised machines.
Naturally I can either shut down the virtual PC or disconnect it before unplugging the phone. However I suspect I may forget or accidentally unplug it at some point.
Is there anyway I can I can configure Windows, VB or the guest to prevent the guest ever connecting to the corporate LAN?
Prevent change of bridged connection on disconnect
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Prevent change of bridged connection on disconnect
Nothing can be done on Virtualbox side.
Use the Windows firewall to block Virtualbox on a specific interface.
Use the Windows firewall to block Virtualbox on a specific interface.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
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: Prevent change of bridged connection on disconnect
If you look at the properties of the NIC connection from the host, do you see an entry for Virtualbox Bridged Networking Driver? If you clear the checkbox for this entry, the vm should not try to use the NIC at all.
Bill
Re: Prevent change of bridged connection on disconnect
@BillG do you mean like this? If so I like it a lot!
Re: Prevent change of bridged connection on disconnect
I think my original post is not totally accurate. When the phone is unplugged nothing actually changes in the VB settings. Naturally the guest has no connectivity. Looking at the VB Manager screen I can still see that Adapter 1 is set to the now none existent phone connection. However if I look at the Network properties of the guest the name has changed to the corporate NIC. I think this setting is only actually applied of the "OK" button is clicked. If I click "Cancel" nothing changes.
This is all a bit moot now however. By applying @BillG's change the corporate NIC no longer appears as an option so it is impossible to accidentally apply it.
This is all a bit moot now however. By applying @BillG's change the corporate NIC no longer appears as an option so it is impossible to accidentally apply it.