Bug 704417

Summary: virt-clone:generate wrong mac address when clone a guest
Product: Red Hat Enterprise Linux 5 Reporter: zhe peng <zpeng>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: dyuan, mzhan, rwu, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:10:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description zhe peng 2011-05-13 04:36:15 UTC
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:

Comment 1 RHEL Program Management 2011-06-20 22:50:57 UTC
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.

Comment 3 Nan Zhang 2011-08-24 10:53:49 UTC
The prefix MAC address should be 52:54:00.

Comment 4 RHEL Program Management 2011-09-23 00:25:36 UTC
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.

Comment 5 Cole Robinson 2011-10-14 19:17:50 UTC
Ah, and still a bug upstream! Fixed now:

http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=8060feeb26be4cd0ab36feca88e8a92db54b09e2

Comment 6 RHEL Program Management 2011-10-18 13:27:41 UTC
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.

Comment 7 Cole Robinson 2011-10-20 14:29:57 UTC
Fixed in python-virtinst-0.400.3-13.el5

Comment 8 zhe peng 2011-10-25 07:14:13 UTC
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.

Comment 9 errata-xmlrpc 2012-02-21 06:10:15 UTC
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