Giving VM sole access to NIC/getting around VM Block

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Knome
Posts: 1
Joined: 28. Oct 2011, 18:26
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, Windows XP

Giving VM sole access to NIC/getting around VM Block

Post by Knome »

Hello,

I'm trying to run a VM on a machine in an environment where VM's are not allowed. (When a machine that is running a VM tries to use the network the port is blocked until the VM is turned off). I tried cloning mac addresses when using NAT or Bridged mode but the network still detected the VM.

So my newest idea is to use two NIC's, one solely for Windows and one OSX but i can't seem to figure out how to do this with virtualbox. Is it possible to give a share hardware level access to the nic so that it won't get flagged? Or am i just going to have to suck it up and get and try and get an exception on that port?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Giving VM sole access to NIC/getting around VM Block

Post by Sasquatch »

Look for an option to prevent OSX from requesting an IP on the interface. You have to be sure that it doesn't send any data out, not even ARP requests or replies to them, as the switch that has port security will pick that up and put the port down.

I do find it odd that NAT didn't work, it's the one thing that should work no matter what. The Guest MAC address shouldn't be detected by port security on a switch.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
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: Giving VM sole access to NIC/getting around VM Block

Post by BillG »

The point to remember is that you don't "do this with VirtualBox". You do it through the host OS. In a Windows host you can do it from the NIC properties GUI. That works with all the virtualization products I have used.

Ideally, what you need is one NIC which only has the bridged networking filter driver (for the guest OS) and one which has the normal TCP/IP settings etc but no filter driver (for the host OS).

I agree with Sasquatch about NAT. Port security will certainly block bridged networking, but NAT should not be affected. All traffic going to the switch should have only the host's IP and/or MAC address.
Bill
Post Reply