[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VMware Workstation 10 - Redmine VM network interfaces wont come up

Posted on 2014-08-28
22
Medium Priority
?
383 Views
Last Modified: 2014-09-02
I have a major problem.

I have a remine VM installed and the Nic is configured in vMware for bridging network.
All was working but as soon as I shutdown the machine "Sudo shutdown -h now" and restarted the machine,I can seem to get a network connection for my redmine VM, I have tried everything restarted the Host machine and also run CMD and restarted via cmd
net stop vmnetbridge
net start vmnetbridge
and then again did a Sudo shutdown -h now and started the Redmine VM up again but still no comms.
This is freaking me out as all my confidential projects are on this redmine.

Any help would be greatly appreciated to get this working again please!
0
Comment
Question by:Jason Laskey
  • 10
  • 8
  • 4
22 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40289768
Usually it happens when you change MAC addresses (like importing OVA)
You need to delete permanent udev rules (/etc/udev/rules.d/70-*) and remove MAC addresses from network scripts (Fedore/Rhel)
0
 

Author Comment

by:Jason Laskey
ID: 40289814
@gheist

OK sure correct me please so do I do:

sudo -i
 nano /etc/udev/rules.d/70-persistent-net.rules

and then look for mac addresses and just remove the mac addresses there???

thank you so much for your assitance
0
 
LVL 124
ID: 40289844
That's correct....

you may find in your VM, you may have two network interfaces

eth0 and eth1.

But remove the mac address, and when the rules are re-generated, your actual mac address of your VM will be included.

This is a known issue with "cloning" Linux VMs.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Jason Laskey
ID: 40289870
I only have one vm Nic ,

I just did a  rm /etc/udev/rules.d/70-persistent-net.rules
first backed up file though
Afterwards I did a /etc/init.d/networking restart

in VM WS
under the redmine VM Settings>NIc is set to  Bridged:....... and also Replicate physical network connection state

However still no IP address for my Redmine VM
0
 
LVL 124
ID: 40289873
can you check the mac address of the VM and VM Settings are the same ?

Can you also test NAT ?
0
 

Author Comment

by:Jason Laskey
ID: 40289890
See screenshots both the Hypervisor MAC and the Redmine VM MAC's are the same
Image2.png
Image4.png
0
 
LVL 124
ID: 40289901
Did you select NAT in the VM network settings ?
0
 

Author Comment

by:Jason Laskey
ID: 40289907
no bridge, its always worked with bridge settings though and the cmd restart has always worked , just happened this morning when I shut the Redmine VM down and then started it up??
0
 
LVL 124
ID: 40289933
I just want to check if you get an IP Address in NAT mode
0
 

Author Comment

by:Jason Laskey
ID: 40289965
I get an IP in NAT mode weird but its not on the same subnet as I am working on now
ie 10.0.0.x is current LAN
ip from VM is 192.168.0.x

Seems we half way there, any suggestions
0
 
LVL 124
ID: 40290025
The IP Address, from NAT is from VMware Workstation internal DHCP server.....

this IP Address is NATTED to your Internal LAN (10.0.0.x)

So this proves the VM is working correctly.....e.g. mac address can get a DHCP IP Address....

so do you have a DHCP serve on your LAN ?

It seems Bridged Mode, is not working or receiving DHCP ip addres....
0
 

Author Comment

by:Jason Laskey
ID: 40290029
I do have a DHCP Server on my LAN yes
0
 
LVL 124
ID: 40290050
Do you have more than one nic in the host?
0
 
LVL 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 40290067
Action 1
Delete udev net rules
Action 2
Remove MAC from ifcfg-eth*
Action 3
Reboot system (to restart udev)
0
 

Author Closing Comment

by:Jason Laskey
ID: 40296453
Your comments were right how ever this didnt work as I had to do an ifconfig eth0 mac x.x.x.x and then do  sudo reboot .After the reboot it picked up an IP Address again
0
 
LVL 62

Expert Comment

by:gheist
ID: 40296461
You can set fixed MAC via vmware too.
Though best is to just clear stored MAC ans dtart new life
Imagine person at next desk deploying same VM with same MAC....
0
 

Author Comment

by:Jason Laskey
ID: 40298060
OK cool mind explain to me where in vMware I set the fixed MAC?
0
 
LVL 124
ID: 40298076
Edit the VMX file.
0
 

Author Comment

by:Jason Laskey
ID: 40298097
legend! will this propagate though to my linux vm?
0
 
LVL 124
ID: 40298104
Yes, the udev net rules rules will pick it up, and add it to the

70-persistent-net.rules

this is what causes the issue, because at VM startup, the MAC address is written to the file.

If the MAC Address of the VM mismatches the MAC address in the file, networking does not work too well!
0
 

Author Comment

by:Jason Laskey
ID: 40298105
Thanks mate,

As I said Legend as I have been battling with this issue contantly
0
 
LVL 62

Expert Comment

by:gheist
ID: 40298113
It is just one time action - boot vm in single mode ONCE AFTER MAC CHANGE
Delete udev rules file
Delete MAC from ifcfg
and reboot like nothing happened.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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…
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
Suggested Courses

873 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