I have a copy of Ubuntu 10.04 [Desktop] LTS running inside a virtual machine using VMWare workstation on a Win 7 host sitting behind an ISA Server on a corparte network.

I am unable to connect to the outside world from this VM except through a web browser. I cant use apt-get, ruby gems (install off the network) or any other command line or GUI program.

So far I have tried setting up proxy on the network proxy page, /etc/bash.bashrc file using export http_proxy:{my proxy details}, in synaptics update manager, using cntlm and changing individual however none of these seem to work and give me an outside connection.

Now here is the kicker, on the same computer and network I have VirtualBox setup with a clean install of Ubuntu 10.04 and it connects to outside with no problems. Both VM's are set to use NAT.

The host has an ISA Client installed and allows Win 7 to operate correctly

Does anyone know why I can connect using VirtualBox but not VMWare workstation and how i can get VMWare to work on network.

If you post your VM config files (.vmx for the VMware, .xml for the VirtualBox), that may help us diagnose your problem. Also, please post the results of an ifconfig on each box. The results of a traceroute to the IP of your ISA Server may help
–
gWaldoSep 2 '10 at 12:07

7 Answers
7

I don't know why you would have this working in VirtualBox and not VMWare, but I can say when we used ISA it was a finicky mistress with machines that weren't joined to the domain (and even *nix ones that were joined with likewise or samba). We used NTLMAPS for our GNU/Linux hosts (mostly Ubuntu servers), as for whatever reason this worked far better for us than cntlm.

It's easy enough to try: apt-get install ntlmaps, tweak the /etc/ntlmaps/server.cfg file and enter proxy, user, and domain information, and in particular set LM_PART to 0 and NT_PART to 1 unless your domain is really old. To get apt to use this, add a file called 01proxy to /etc/apt/apt.conf.d/ with the following line:

Has vmware tools been installed on the Ubuntu guest?
What version of workstation?
Was this a clone from virtualbox to vmware (ie the same vm) or a brand new install?
Anything interesting in /var/log/messages?

There are a few steps you can take to try to correct your problem here, give this a shot

check the VM networking on your vmware workstation. Make sure you select "Bridged".

start your vm and go to the networking part of ubuntu and edit it, Give it an IP, if you are running DHCP on your current network then set it to dhcp, if not configure the IP like how you would configure any other machine on your network. Give it an ip, netmask and your default gateway ( NOTE: gateway here is not your win.7 machine but your true network gateway)

Open a shell and test to ping the internet. "ping 8.8.8.8" would be a safe bet. If all goes well you should be out into the net by now. If you are still facing problems read on...

IF you are still facing problems here, go back to the VMware workstation setup, under "Bridged" check the "Replicate physical Network State"

For whatever reason if you do not want to follow the steps above, just my 2 Cents - if you are using a DIRECT connection out to the internet from the Win. 7 machine, NAT would be easier and the way to go. I have faced this problem over and over again, I decided not to waste anymore of my time toying on how to fix the VMware NAT and decided to go with the option on top. Hope this helps.

I could not use the host's Cntlm server in the client because I was using the wrong source IP address. If VMware is using NAT (which is how my virtual machine is configured), Cntlm has to listen to the host's IP address in the virtual VMware network, not to the host's IP in the corporate network.

If im not entirely wrong there should be a firewall included in vm-ware(not sure about workstation). Try to disable that one. Unfortunately I don't have any vmware workstation install to confirm my suspicions.

Im guessing the main problem here is that you get full access from virtualbox and almost none from vmware.