Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-29-2011, 10:15 PM   #1
Registered: Jul 2010
Posts: 36

Rep: Reputation: 2
Device eth0 has a mac address xx:xx instead of configured xx:xx . Ignoring .

hi ,

I am trying to perform VM cloning using KVM in a centos 5.6 machines. I copy the memory contents of a running vm to an external state file and try to use that to start another VM in a different machine. While starting the cloned VM I provide a different mac address but once it resumes it has the old one . I tried changing the mac address in ifcfg-eth0 but I get the error :

Device eth0 has a mac address xx:xx instead of configured xx:xx . Ignoring .

Is there some way to change the ip/mac of the cloned vm without the need to restart the VM ( Then the purpose of cloning will be defeated). Thanks a lot for the info .

- Sethu
Old 07-29-2011, 10:34 PM   #2
Registered: Jul 2010
Posts: 36

Original Poster
Rep: Reputation: 2
I found the solution. Sorry for posting this question. I solved it using :

ifconfig eth0 hw ether XX:XX


service network restart.

ifconfig eth0 , I found the new ip address there !!

Thanks !!
1 members found this post helpful.
Old 12-13-2013, 04:23 PM   #3
LQ Newbie
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
Finally, some help. Thanks!

I found that your fix works until I reboot, then I have the same problem again. A fix that seems to persist after a reboot is to instead edit the mac address in the ifcfg-eth0 file to match the one shown for eth0 with "ifconfig -a", like this:

1) ifconfig -a
2) Get the "HWaddr" setting.
3) vi /etc/sysconfig/network-scripts/ifcfg-eth0
4) Change the "HWADDR" setting to the one found in step 2).
5) service network restart

Last edited by bgraves; 12-18-2013 at 11:01 AM. Reason: alternate solution


cloning, kvm, linux, network, state

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"...Device eth0 has different MAC address than expected,.." lothario Linux - Networking 11 08-05-2014 11:24 PM
beginning interface eth0 : device eth0 has different MAC address to expected.FAILED petrofrontier Linux - Software 2 02-28-2011 12:09 PM
eth0: Device eth0 has different MAC address than expected,ignoring. lin1010 Linux - Networking 5 11-24-2010 08:30 AM
[SOLVED] set eth0 mac address in smc91xx eeprom via C code shockproof Programming 1 05-06-2010 05:45 PM
eth0 / 1 confused over MAC address?? Nickj Linux - Networking 3 08-22-2005 12:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration