?
Solved

Ubuntu 12.04 on VMware ESXi 4.1.0 -  "wired network disconnected" & update problems

Posted on 2012-08-30
17
Medium Priority
?
2,155 Views
Last Modified: 2012-10-21
I have installed Ubuntu 12.04 as a vm on our VMware 4.1.0 production cluster.  The initial install and upgrade went fine but after a reboot of the vm Ubuntu showed "wired network disconnected". All of our Windows vms on the same cluster/hosts are fine.

The vm spec is 512mb, 1cpu, 1x vmxnet3 nic  which connects to our server vlan (10.59.18.x) and 1 x flexible nic that points to our legacy vlan (10.56.x.x).

If I disable the vmxnet3 interface I do get a network connection back but the update window shows 409 updates with sizes range from a few kb to several mb each but the tag line says 409 updates slected 14kb will be downloaded.  When I click on install updates I get a message that says "failed to download package files" & "check your internet connection".  The internet connection is fine and I can happily browse to sites.

Please can someone point me in the right direction to get this problem resolved. Urgent so 500 points up for grabs!

Thanks
0
Comment
Question by:cmdown
  • 10
  • 7
17 Comments
 
LVL 124
ID: 38349438
there is a fault with Ubuntu and virtual machines, with the rules for the network connection.

check the MAC Address in the rules, is the same as the VM.

e.g. if you type ifconfig, what is the output?
0
 
LVL 1

Author Comment

by:cmdown
ID: 38349511
Hi hanccocka
Output attached as png image
ubuntu-nic.png
0
 
LVL 124
ID: 38349517
does this VM have working networking?

does it have two network interface cards in the VM?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 1

Author Comment

by:cmdown
ID: 38349546
1. No if both are powered on at vm startup, yes if the vmxnet3 i/f is disabled - i.e vm only has access to the 10.56 vlan
2. Yes - both were configured in the bare vm shell prior to Ubuntu being installed from iso image mounted on the esx host
0
 
LVL 124
ID: 38349571
so you need to working network cards in Ubuntu VM?
0
 
LVL 1

Author Comment

by:cmdown
ID: 38350585
Yes, there are two nics in the network panel of system setting.  One is on the 10.56 vlan using ipv4 dhcp (ipv6 ignore).  The other is on the 10.59 vlan again using ipv4, dhcp, ipv6 ignore but it won't connect.
0
 
LVL 124
ID: 38350648
the network interface is set to connected and connected at power on, in the VM Settings, next to the interface.
0
 
LVL 1

Author Comment

by:cmdown
ID: 38350654
update to the above...
Just in case it was vmxnet3 itself not being 'liked' by ubuntu I added a third nic set to use if type = flexible but again on the 10.59 vlan - I still get the same issue where this comes up connecting/disconnected.
0
 
LVL 1

Author Comment

by:cmdown
ID: 38350663
sorry - our two posts crossed over.  In answer to your question, yes the interface is set to connect at power on for both network cards.
0
 
LVL 124

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38350692
check the following

/etc/udev/rules.d/70-persistent-net.rules

remove all the contents of the file, and restart

the file gets re-created
0
 
LVL 1

Author Comment

by:cmdown
ID: 38360527
Hi hanccocka.  Thanks for the reply.  I'll give this a go later this afternoon and let you know how I get on.
0
 
LVL 1

Author Comment

by:cmdown
ID: 38360761
Hi hanccocka

opened the file for edit - it is blank
0
 
LVL 124

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38360789
the rules process is not running it should contain MAC Addresses.
should be like this:-

ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:e0:4c:12:34:56", \
    NAME="realtek"
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:a0:c9:78:9a:bc", \
    NAME="intel"
0
 
LVL 1

Accepted Solution

by:
cmdown earned 0 total points
ID: 38417447
Hi Hancocka

Sorry for the delay in replying.  Are you saying that in the absence of this file I should create it manually  or is there a way to force ubuntu to generate this file itself?

Regards
0
 
LVL 124

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38417463
in the absence of the file, it will be re-created at computer startup.
0
 
LVL 1

Author Comment

by:cmdown
ID: 38466311
Hi Hanccoka

Apologies I missed the email alerting me to your last post.  This file isn't getting recreated so I'm going to blow away the VM and start again - probably with Mint as I've got another linux vm based on Mint 13 that has installed fine.
0
 
LVL 1

Author Closing Comment

by:cmdown
ID: 38518549
Hi Hanccoka

Another Linux Mint VM has gone in with no problems - there must have been a problem with the previous Ubuntu install.  Many thanks for your help.  Points awarded for all the good advice given.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question