Red Hat Bugzilla – Bug 704417
virt-clone:generate wrong mac address when clone a guest
Last modified: 2012-02-21 01:10:15 EST
Description of problem: wrong mac address when using virt-clone to clone a guest of kvm Version-Release number of selected component (if applicable): libvirt-0.8.2-19.el5 python-virtinst-0.400.3-12.el5 kvm-qemu-img-83-231.el5 kvm-83-231.el5 How reproducible: always Steps to Reproduce: 1.use virt-install install a guest # virt-install -n demo -r 1024 -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/RHEL5.7-Server-20110430.2/tree-x86_64 -x ks=http://home.englab.nay.redhat.com/~nzhang/kickstart/http/ks-rhel5u7-x86_64.cfg --accelerate -f /var/lib/libvirt/images/demo.img -s 5 2.after guest install, shutdown the guest,and run virt-clone command # virt-clone -o demo -n demo-clone -f /var/lib/libvirt/images/demo-clone.img --debug 3.#virsh dumpxml demo-clone Actual results: ........ <interface type="network"> <mac address="00:16:3e:54:3b:d4"/> <source network="default"/> <target dev="vnet0"/> </interface> ....... Expected results: in rhel 5.7 qemu-kvm the mac address should be start with 54:52:00 ........ <interface type="network"> <mac address="54:52:00:54:3b:d4"/> <source network="default"/> <target dev="vnet0"/> </interface> ....... Additional info:
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update. Contact your manager or support representative in case you need to escalate this bug.
The prefix MAC address should be 52:54:00.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Ah, and still a bug upstream! Fixed now: http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=8060feeb26be4cd0ab36feca88e8a92db54b09e2
Fixed in python-virtinst-0.400.3-13.el5
verify with: python-virtinst-0.400.3-13.el5 libvirt-0.8.2-22.el5 kernel-2.6.18-274.el5 step: 1:use virt-install install a guest named rhel5.7 2.after guest install, shutdown the guest,and run virt-clone command # virt-clone -o rhel5.7 -n rhel5.7clone -f /var/lib/libvirt/images/rhel57-clone.img --debug 3.#virsh dumpxml rhel5.7clone ..... <interface type='network'> <mac address='54:52:00:44:0e:a6'/> <source network='default'/> </interface> ..... verification passed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0233.html