1

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.

Kind Regards Colin G

  • have you tested your clean installation vm in VMware? – krissi Aug 30 '10 at 12:35
  • 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 – gWaldo Sep 02 '10 at 12:07

7 Answers7

2

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:

Acquire::http::Proxy "http://127.0.0.1:5865";
nedm
  • 5,610
  • 5
  • 30
  • 52
2

Are you certain that both the VMware and the VirtualBox VMs are using the same type of networking (bridged vs NAT vs etc)? Verify that they're on the same network via ifconfig.

gWaldo
  • 11,887
  • 8
  • 41
  • 68
1

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?

JakeRobinson
  • 2,886
  • 17
  • 26
1

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

  1. check the VM networking on your vmware workstation. Make sure you select "Bridged".
  2. 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)
  3. 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...
  4. 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.

CChock
  • 156
  • 3
1

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.

The following commands were executed on the host.

$> ifconfig | grep -e "inet " -e " Link"
eth0      Link encap:Ethernet  HWaddr ....
          inet addr:192.168.0.5  Bcast:192.168.0.255  Mask:255.255.255.0
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
vmnet1    Link encap:Ethernet  HWaddr ....
          inet addr:192.168.73.1  Bcast:192.168.73.255  Mask:255.255.255.0
vmnet8    Link encap:Ethernet  HWaddr ....
          inet addr:172.16.84.1  Bcast:172.16.84.255  Mask:255.255.255.0
wlan1     Link encap:Ethernet  HWaddr ....

This is what did NOT work (i.e. the client had no access to the Cntlm server):

cntlm -v -g -l localhost:1118 -u username@corporate.net -I corporateproxy.net:80

This is what worked:

cntlm -v -g -l 172.16.84.1:1118 -u username@corporate.net -I corporateproxy.net:80
klaus se
  • 111
  • 3
0

You probably need a proxy that supports NTLM authentication to get through ISA. I have no personal experience with this, but one of these packages might be useful.

JanC
  • 400
  • 2
  • 5
0

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.

//Tommy