Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't seem to find the answer to this. I have a Windows 7 (64bit) machine that is a company laptop. Company policy is very strict about adding machines to the network. I need to run a Linux server to do some Rails development.

Anyway, what I would like to do is have the Ubuntu 11 guest use my laptop as it's internet gateway. So that corp only sees my one allowed IP address.

How can I do this?



I don't know why this was closed and down-voted. I have explicit permission from the IT network manager to use VirtualBox. I am just not allowed to have an additional IP from the network router because they are scarce with the amount of equipment we have.

In fact, here is the exact email I sent to him:

So I have this new Windows laptop.  I’m connecting to the wireless just fine.  
I would like to run this program called VirtualBox which is an open source
virtual environment similar to VMWare.  On this, I would like to run a Linux server.
Well, all’s working but then I noticed my Linux server got its own IP address 
from the wireless router.  I assumed it would share my Windows IP since Windows
is my host.

What is the official position on this?  I can configure the VirtualBox to share
my Windows IP so that as far as you are concerned, I have one IP on the network.
I imagine this is the way to go?


Here was his response:

It needs to use the IP of your laptop.
<name withheld>, MCSE:Security, JNCIS-SEC
I.T. Network Operations Manager
share|improve this question

closed as off topic by MDMarra, Holocryptic, Chris S, Iain, Scott Pack Dec 21 '11 at 14:26

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You should contact your systems administrator and have them configure this for you. – MDMarra Dec 21 '11 at 14:06
We are the System Administrators who enforce company policy, not help people break it. – Chris S Dec 21 '11 at 14:15
"Question and Answer Site", think you guys a preaching to the wrong crowd. – Tim Dec 21 '11 at 14:43
Guys, I have permission from the networking department. I just can't have another IP. They know exactly what I'm doing. – cbmeeks Dec 21 '11 at 14:57
Fine, makes sense. But the following are links here on SF for VirtualBox questions that have NOTHING to do with networking (which mine did) And here are VirtualBox question here on SF that are networking related (like mine) that have been allowed: guess FAQ's and logic only apply to moderators' moods – cbmeeks Dec 21 '11 at 19:29

You use NAT mode and your guest will be a transparent device on the network using your host (Win 7) as a gateway. Remember to use DHCP for your guest. (This is optional of course)

share|improve this answer
Thanks for assuming I needed an answer to a question instead of assuming I am a crook trying to deceive the company I work for. I'm allowed to do anything I want to my company laptop. I just can't have all the IP's I want. I will try your solution. I did before but couldn't get INTO the guest for some reason. So I will try again. thanks. – cbmeeks Dec 21 '11 at 15:10
The thing about NAT is that the guest and host have their own separate subnet they run on. Once you have obtained an IP on your guest, find out what that IP is, and you should be able to access it from the host. You may need to setup a separate "Virtual Only" network for accessing the guest from the host, while leaving NAT on for internet traffic. Good luck! – Tim Dec 21 '11 at 15:59
OK, I got that piece to work. I now have a 10.x.x.x address on my guest and my host has the corp 172.x.x.x address. But I can't SSH into my guest? Any clues? Thanks! – cbmeeks Dec 21 '11 at 16:11
SSH service is running on the guest? Can you ping the 10.x.x.x address of your guest from the host? – Tim Dec 21 '11 at 18:30
Nope. Can't ping it at all. Strange. – cbmeeks Dec 21 '11 at 19:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.