Igor,<br><br>Again, thanks for the tip.  Not a udev issue (no udev/or config file on the guest) so it is back to manipulating the MAC by hand.<br><br>DAVID<br><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 6:34 PM, Igor Serebryany <span dir="ltr"><<a href="mailto:igor47@moomers.org">igor47@moomers.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Sat, Apr 16, 2011 at 04:21:19PM -0400, David Lane wrote:<br>
> I attach an existing .img file to the host machine and need to change the<br>
> MAC address (since the image was created on another machine).  Is there a<br>
> way from with in the guest to do this or do I have muck with the XML?  And<br>
> if I muck with the XML and change it, how do I pass this information up to<br>
> the guest, or will the guest see it automagically or do I have to write it<br>
> down and then manually transfer it into the guest's ifcfg?<br>
<br>
</div>The only way to change what MAC address the interface shows up with is<br>
to tell libvirt about the MAC you want, usually via the XML. There might<br>
be a way to change it after a domain is defined, but I'm not sure.<br>
<div class="im"><br>
> Using the GUI, when you change the NIC, the guest generally does not<br>
> see the new MAC and grouses until you change it.<br>
<br>
</div>What do you mean by grouses? If you change the MAC in the XML, when your<br>
domain boots it will see an interface with that MAC.<br>
<br>
Do you mean that your interfaces don't come up with proper configs? Then<br>
your problem might be udev's persistent net rules. You have config files<br>
which assign IPs to eth0, for instance, but when you change the MAC<br>
address in the XML, eth0 disappears and you instead get an eth1 which<br>
comes up configured.<br>
<br>
I solve this problem by removing any persistent network name rules from<br>
udev. You can usually find a config file that controls such things in<br>
/etc/udev/rules.d<br>
<font color="#888888"><br>
--Igor<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk2svIgACgkQVyVcp2k8D/lgjwCgpb1scQCh5ACHebdMpZb2OZvU<br>
dX4AnjpAOha8ELRgU+ObS+eGoAKzrHPO<br>
=3WfH<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br><br>