On 2011-04-19,at 15:25:28, Amos Kong wrote:
>发送日期:2011-04-19 15:25:28
>收件人:wuyu8242
>抄送:Lucas Meneghel Rodrigues; autotest
>主题:Re: Re: Re: [Autotest] [PATCH 1/3] KVM-test: Add script tosetupprivatebridge
>>
>On Tue, Apr 19, 2011 at 02:55:02PM +0800, wuyu8242 wrote:
>> On 2011-04-19,at 14:22:23, Amos Kong wrote:
>> >发送日期:2011-04-19 14:22:23
>> >收件人:wuyu8242
>> >抄送:Lucas Meneghel Rodrigues; autotest
>> >主题:Re: Re: [Autotest] [PATCH 1/3] KVM-test: Add script to setupprivatebridge
>> >>
>> >On Tue, Apr 19, 2011 at 01:29:42PM +0800, wuyu8242 wrote:
>> >> Good news come from Amos When I just want to report an issue about this
>> >> nic mode to both of you. Then I describe the issue for referring. I
>> >> found the mac addr generated
>> >> from code is same as the hwaddr in result of ifconfig in guest, but it
>> >> different from the hwaddr value in the ifcfg-eth0 file. So the framework
>> >> report error info of "Cannot find IP address for MAC address
>> >> 9a:xx:xx:xx:xx:xx". In last week, I report the pass of tap mode, because
>> >> my image is setup manually. Today, the case failed.
>> >> now, I will update code to use the new method of private bridge.
>> >
>> >This patch would not fix your problem.
>> >You should delete the mac entry in ifcfg-eth0 of guest.
>
>> the patch can not setup bridge automatically?
>
>It could.
okay, I setup the bridge network using this script :)
>> when I deleted the mac entry(hwaddr variant) in ifcfg-eth0 of guest, but
>> restart the network service failed. After reboot guest, although the hwaddr
>> variant cannot be assigned mac, this issue still be there. so this mathod
>> doesn't work well.
>> Besides, it should not be modified by hand, this modifying should be made by
>> autotest framework.
>
>Actually, we clean this entry by unattended_install(kickstart).
Then, if i don't run the unattended_install case in a test, this entry will be
the old one? that is to say, when i add the boot, ping, shutdown to the test,
after running the boot case, the entry is the same one as ping case?
I wonder when will the unattended_install case be called? I only know when
the guest os be installed.
>> What is the cause of this inconsistency? When the ifcfg-eth0 file is
>> generated?
>
>It's produced when you installing guest.
>
>> Each time you start vm, this file should be rewritten, right?
>
>no
but when i add test case such as boot, ping, shutdown to tests.cfg to run these
cases, the vm will be restarted each case, and if you delete some variants(such
as uuid ) or add some variants(such as NETMASK, GATEWAY), these variants will
automatically added or deleted correspondingly in next restart.
That is, my guest still don't get ip from dhcp after i modify the nic_mode
value(61 line) to tap. And Whether I modify the variant value of ${switch} on
or off in qemu-ifup or not, the result remain unchanged. I fell the variant
value of ${switch} in qemu-ifup should be off because my br0 stp status is no.
>.
>
------------------
wuyu8242
2011-04-19
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest