LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 07-29-2011, 09:15 PM   #1
sethusubbiah
Member
 
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, 09:34 PM   #2
sethusubbiah
Member
 
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

and

service network restart.

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

Thanks !!
 
1 members found this post helpful.
Old 12-13-2013, 03:23 PM   #3
bgraves
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 10:01 AM. Reason: alternate solution
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 02:44 PM.

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