Red Hat Bugzilla – Bug 524269
virt-clone should remove old udev rules when changing MAC address
Last modified: 2013-01-27 02:47:15 EST
When cloning a virtual machine like so
virt-clone -o Guest1 -n Guest2 -f /var/lib/libvirt/images/Guest2.img
Everything works. Minor 'issue' (if you can call it that) is that the network interface in the new machine shows up as eth1 instead of eth0. This is because
contains lines telling the system to call the interface with the old mac address eth0. This 'new' interface thus gets the next available name.
If possible I think on machine clone with a new mac address either the file should be updated with the new mac address (probably would make people the happiest in case they edited it by hand), or the file should be wiped clean so it can be built again from scratch.
I also sorta feel like /etc/sysconfig/network-scripts/ifcfg-ethX should have HWADDR line mapping done as well.
Obvious application for libguestfs.
Also CC-ing Matt Booth, because there is some overlap with the
sort of modifications that virt-v2v does.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.
More information and reason for this action is here:
Discussion on list here:
*** Bug 544729 has been marked as a duplicate of this bug. ***
Nice discussion... what's the status on this?
Nothing yet. There is some more info here:
Debian carries a patch to fix this issue in udev for VMWare guests, though nothing upstream. The same type of fix could be applied for KVM guests. I'll bring it up on the udev list.
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '12'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 12's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 12 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
This can be done using the new virt-sysprep tool:
(In reply to comment #8)
> This can be done using the new virt-sysprep tool:
Closing as WONTFIX.