2010/6/30 Michael Goldish <[email protected]>:
> On 06/30/2010 05:19 PM, miles kuo wrote:
>> 2010/6/30 Michael Goldish <[email protected]>:
>>> On 06/30/2010 01:35 PM, miles kuo wrote:
>>>> I wanted to add  two NICs to the VM when installed the VM.  But I only
>>>> could add one NIC to it.
>>>>
>>>>     - qemu_kvm_windows_s1:
>>>>         qemu_binary = /usr/bin/qemu-kvm
>>>>         only qcow2
>>>>         only rtl8139 e1000
>>>>         only virtio_blk
>>>>         only smp2
>>>>         only no_pci_assignable
>>>>         only smallpages
>>>>         only Win2008.r2
>>>>         only unattended_install.cdrom boot shutdown
>>>>
>>>> /usr/bin/qemu-kvm -name 'vm1' -monitor
>>>> unix:'/tmp/monitor-humanmonitor1-20100628-140809-2dXG',server,nowait
>>>> -serial unix:'/tmp/serial-20100628-140809-2dXG',server,nowait -drive
>>>> file='/tmp/kvm_autotest_root/images/win2008-r2.qcow2',if=virtio,boot=on
>>>> -net nic,vlan=0,netdev=idb2uffG,model=rtl8139,macaddr='52:54:00:12:34:56'
>>>> -netdev user,id=idb2uffG -m 1024 -smp 2 -drive
>>>> file='/tmp/kvm_autotest_root/isos/windows/en_windows_server_2008_r2_standard_enterprise_datacenter_and_web_x64_dvd_x15-59754.iso',index=2,media=cdrom
>>>> -drive 
>>>> file='/tmp/kvm_autotest_root/isos/windows/winutils.iso',index=3,media=cdrom
>>>> -fda 
>>>> '/opt/autotest/autotest/client/tests/kvm/images/win2008-r2-64/floppy.img'
>>>> -redir tcp:5000::22 -redir tcp:5001::12323 -vnc :0  -boot d
>>>>
>>>> The qemu command showed that only rtl8139 added to the VM.
>>>
>>> Sorry, I misread your question.
>>>
>>> To define two NICs use the following format:
>>>
>>> nics += " nic2"
>>>
>>> Note that nic_model defines the default model for all NICs, so if you
>>> use the rtl8139 variant (by writing 'only rtl8139'), which sets
>>> nic_model = rtl8139, both nic1 and nic2 will use rtl8139.  If you want
>>> to change nic_model only for nic2, use:
>>>
>>> nic_model_nic2 = e1000
>>>
>>> In that case, nic1 will use the model set by nic_model (which depends on
>>> the variant used) and nic2 will use e1000.
>>>
>>> (nic2 is just a name -- you can use any name you like.)
>>>
>>> If you have any more questions please let me know.
>>>
>>
>>
>> I just tried the two configuraion without touching the tests_base.cfg.
>>  Both them failed when create the VM. Did I make something wrong?
>>
>>     - qemu_kvm_windows_s1:
>>         qemu_binary = /usr/bin/qemu-kvm
>>         only qcow2
>>         only rtl8139
>>         nics +=" nic2"
>>         only virtio_blk
>>         only smp2
>>         only no_pci_assignable
>>         only smallpages
>>         only Win2008.r2
>>         only unattended_install.cdrom boot shutdown
>>
>>     - qemu_kvm_windows_s2:
>>         qemu_binary = /usr/bin/qemu-kvm
>>         only qcow2
>>         only rtl8139
>>         nics +=" nic2"
>>         nic_model_nic2 = e1000
>>         only virtio_blk
>>         only smp2
>>         only no_pci_assignable
>>         only smallpages
>>         only Win2008.r2
>>         only unattended_install.cdrom boot shutdown
>
> Looks OK to me, but please provide the qemu command line that was
> generated and the traceback of the failure.
>

I pulled down the latest Autotest code from git
"b823c4c8feaf7fb0c428b8b1d079cc1378bc1373" (07-01-2010) All the tests
passed. While in the git "844bd91499abaa834d190fedb7cec9d2adfb7deb"
(06-25-2010), both cases failed. Is there any patch fixed the nic
problem?
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to