Welcome, Guest. Please Login
 
  HomeHelpSearchLogin FAQ Radified Ghost.Classic Ghost.New Bootable CD Blog  
 
Page Index Toggle Pages: 1
Send Topic Print
Ubuntu 8.04 in VMware Player - no internet (Read 14456 times)
Rad
Radministrator
*****
Offline


Sufferin' succotash

Posts: 4090
Newport Beach, California


Back to top
Ubuntu 8.04 in VMware Player - no internet
Oct 12th, 2008 at 12:53pm
 
Hi.

I upgraded to the latest version of VMware player and can no longer connect to the internet via virtual machine for Ubuntu 8.04.

Here's my VM: http://www.vmware.com/appliances/directory/1232

Here's VMware player 2.5: http://filehippo.com/download_vmware_player/

Here's result of "lshw -C network" which I've seen some ask for:

http://radified.com/gfx5/jars.png

Ideas?

This kinda suks.
 
WWW  
IP Logged
 

Nigel Bree
Ex Member




Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #1 - Oct 12th, 2008 at 5:58pm
 
Remember that the default mode of operation for VMware player is to suspend a VM, so it's conceivable that you're resuming a VM that was already up and running in your original install of Player (you didn't mention this, but it's something that Player users tend to take for granted).

Although the virtual networks installed by VMware are remarkably good at providing a consistent environment for the guests, when you uninstall and reinstall VMware one of the things that sometimes happens is that the newly installed virtual networks don't have the identical virtual IP addresses reassigned to them. So, the guests need to re-acquire their IP addresses from the virtual DHCP server VMware is providing to the guest; since the guests aren't typically aware that the network in the host is different they don't do this automatically, so you can try explicitly restarting the guest OS so that it reinitializes itself in the new virtual environment.

The other thing to bear in mind is that every new major release of VMware includes updated VMWare Tools drivers, and you definitely will want to install updated VMware Tools in the guest VMs you have. This is particularly true with respect to Linuxes, since the VMware tools guest drivers in Linux editions are having to constantly fight the enormous amount of churn in the base OS platform. And now there are the Unity capabilities which need the latest VMware tools to use.

[ Since upgrading VMware tools uninstalls and reinstalls the device drivers in the guests, that's what I did to my suspended VMs today as I transitioned from Workstation 6 to 6.5 to get them back in play again; to start experimenting with Unity mode, I did end up restarting the Guest OS completely since for Unity to work, it creates variable-resolution display surfaces for the applications inside the guest to paint into the host windowing system. ]

Incidentally, I just tried and after using Workstation to update my existing VMs, I can report that Unity not only works well with 8.04, you do also get Unity with VMware player. So, update those tools!
 
 
IP Logged
 
Rad
Radministrator
*****
Offline


Sufferin' succotash

Posts: 4090
Newport Beach, California


Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #2 - Oct 12th, 2008 at 8:34pm
 
Quote:
Incidentally, I just tried and after using Workstation to update my existing VMs, I can report that Unity not only works well with 8.04, you do also get Unity with VMware player. So, update those tools!  

Thanks, Nigel. You rock.

If I cannot connect to the Net with Ubuntu, then how would I update those tools. That would be like a Catch-22.

If I recall correctly (I am a VMware novice), IN tried (or was prompted?) to do this, but it failed.

The tools would normally update thru the network connection in the Ubuntu client, yes?

I will also try rebooting the Ubuntu client, but it started from scratch, so I don't think that will change anything.
 
WWW  
IP Logged
 
MrMagoo
Übermensch
*****
Offline


Resident Linux Guru

Posts: 1026
Phoenix, AZ (USA)


Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #3 - Oct 12th, 2008 at 8:54pm
 
Can you post the output of "ethtool eth0" and "ifconfig"?  The output of the lshw you provide shows that the system sees an Ethernet controller.  Now, we need to figure out how that controller is configured.  ethtool will show the duplex/speed settings.  ifconfig will give IP Address information.
 
WWW  
IP Logged
 
Rad
Radministrator
*****
Offline


Sufferin' succotash

Posts: 4090
Newport Beach, California


Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #4 - Oct 12th, 2008 at 9:59pm
 
okay, getting that now.

settings for eth0 > no such device.

see attached.
 
WWW  
IP Logged
 
Nigel Bree
Ex Member




Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #5 - Oct 12th, 2008 at 11:14pm
 
Rad wrote on Oct 12th, 2008 at 8:34pm:
The tools would normally update thru the network connection in the Ubuntu client, yes?

Nope, via using VMware Workstation.

On first glance I didn't see that the VM appliance you chose doesn't appear to contain VMware tools at all, so it's getting by on the legacy hardware-emulated drivers inside the guest instead of the nice, fast, virtualization-aware ones (and that also means you don't have the easy drag-and-drop between host and guest or any of the other creature features that VMware tools has always given you).  

On the other hand I'd expect that it should just start working again if you fully shut down and reboot the guest OS rather than just suspending it as Player does for you when you close the VM window. I'll set that VM appliance to download so I can look at it myself (to see that it works fine here with 2.5) but that's an overnight job from down here.

Rad wrote on Oct 12th, 2008 at 8:34pm:
If I cannot connect to the Net with Ubuntu, then how would I update those tools.

Ah, right, you haven't used Workstation to create the VM in the first place so you're not familiar with the process.

Basically, the full editions of VMWare contain VMware tools installers for all the various guest OS's that VMWare supports, typically as .ISO files containing the requisite installers. So, for users of the real products you set up VMs by:
- build the initial blank VM for a guest using the VMware wizard in the host.
- install the guest OS, typically by mounting an ISO over the guest VM's virtual optical drive and starting the guest VM.
- use the "install VMware tools" option in VMware on the host.
  This menu option mounts the appropriate VMWare tools ISO onto the guest VM's virtual optical drive, and on Windows guests runs the installer for you.

For most flavours of Unix guests, you open the virtual CD inside the guest and then unpack the appropriate archive inside the guest OS and run the ./vmware-install.pl script which takes care of the rest for you.

- once that's done, enjoy the improved speed and smooth host integration that the tools give you.

Ubuntu 8.04, as is the way of things, chose to break compatibility with all existing third-party kernel drivers so the original VMware tools packages built into the VMware product didn't work and couldn't install on it (there were similar problems with OpenSolaris 2008.05, which broke the tools installer script by moving around a lot of the places things got put relative to genuine Solaris 10, and furthermore now the kernel interfaces for filesystems have been revised in an incompatible way from VFS4 to VFS5 in preparation for OpenSolaris 2008.11).

VMware tried to cope with this by creating an open-source project for the tools, which you can get from http://sourceforge.net/project/showfiles.php?group_id=204462 but it's always a struggle to correlate that variation versus the real VMware product versions of the tools, since they play leapfrog with each other a bit. For a while you had to use the "open" version to get support for the new kernels, but now as of Workstation 6.5 there are shiny new VMware tools ISOs for all the guests and I'm not sure whether the open versions match up with this new release yet or not.

To get the full benefit of Player 2.5 - in fact, to get any real benefit from upgrading to it - you really want to be running a VM appliance that was mastered for it with the current VMware tools using the matching version of Workstation. Upgrading the VM using Workstation is pretty easy, but without it, it's kinda a pain - you have to get into hand-editing the VMX file to reconfigure it and such like.
 
 
IP Logged
 

Nigel Bree
Ex Member




Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #6 - Oct 13th, 2008 at 2:18pm
 
OK, that VM appliance is a little odd; it does have VMware tools half-installed, but as I mentioned above Ubuntu 8.04 majorly broke compatibility with the kernel drivers used by VMware and so the guy who built that appliance just left it as it was without bothering to get fixed networking or hgfs drivers. That's why it's using the legacy pcnet32 driver, and that's what looks like it might be part of the problem - the emulated bridged networking in 6.5 doesn't seem to be compatible with the classic AMD lance driver that Ubuntu 8.04 has built in.

In Workstation 6.5 they've done some things with the bridged networking adapter so it reflects down more of the actual physical hardware state of the adapter into the virtual NIC, and it may be that this is causing the legacy driver in this VM some problems (bridged networking has always had such tricky aspects, such as the presence of TCP/IP offload engines in the physical NICs).

Just as a temporary quick fix, close everything down and open the VMX file with a text editor and change:
ethernet0.connectionType = "bridged"
to
ethernet0.connectionType = "nat"

After you do this, when you re-open the VMX file using Player, the VM will be using a virtual network with an emulated NAT router, so the VMs aren't trying to go directly out onto your physical network (as they were previously); the guest will see a different IP range than before, one supplied by the DNS and DHCP services emulated by VMware on your machine. When I adjusted the configuration that way things seemed to come back into life in the VM - honestly, I doubt you'll really notice any practical difference between bridged and NAT.

However, you should keep your eyes out for a better appliance, that's been properly set up with the 6.5 version of VMware tools; the proper vmxnet driver installed via VMware tools definitely works fine in bridged mode. Since Ubuntu 8.10 is due out soon anyway, it's really a question of whether you want to migrate to a fresh appliance or grab hold of the VMWare tools ISO from the current version of Workstation to refresh the VMWare Tools inside that appliance you have.
 
 
IP Logged
 
MrMagoo
Übermensch
*****
Offline


Resident Linux Guru

Posts: 1026
Phoenix, AZ (USA)


Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #7 - Oct 13th, 2008 at 2:36pm
 
I'm with Nigel on this one - if this VM has been suspended rather than restarted, try a power cycle of the VM first.

Rad wrote on Oct 12th, 2008 at 9:59pm:
settings for eth0 > no such device

Ya, your ifconfig shows your device was detected as eth2 instead of eth0.  No problem.  Run the command as 'ethtool eth2' instead.  Could you also post the output of 'netstat -r'?  That will show us what your OS routing table looks like - we are looking for your default gateway.  You should get something like:

$ netstat -r
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use    Mtu  Interface
default            ip68-227-240-1.ph. UGS         9  9825659      -   rl2
10.1.0/22          link#1             UC          1        0      -   rl0
10.1.1.2           00:03:47:c4:91:c8  UHLc        0   214621      -   rl0
10.1.4/23          link#8             UC          7        0      -   vlan2

We are looking for the one that says 'default' in the destination column.  In this case, my default gateway is 68.227.240.1.  If you can locate your default gateway, try to ping it from the command line.
 
WWW  
IP Logged
 
Nigel Bree
Ex Member




Back to top
Re: Ubuntu 8.04 in VMware Player - no internet
Reply #8 - Oct 13th, 2008 at 2:55pm
 
Incidentally, since we're talking VMware, another trick to watch for is that the memory requirements during install for OpenSolaris 2008.11 look to be going up quite a bit; the default VMs configured by the Workstation new VM wizard don't assign enough RAM for the current preview LiveCD to finish booting. It's no great drama, just adjust the slider to give it more physical memory, but it's not obvious that insufficient assigned RAM is the cause.

[ You'll want to give a Solaris VM plenty of RAM anyway; since it's a server OS designed to do heavy lifting rather than a desktop one, it's not tuned for 10-year-old hardware. ]
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print