Hi Peter,
     Follow your advice, I have complied the Qemu v2.6.
stack@u202158:~$ kvm --version
QEMU emulator version 2.6.50 (v2.6.0-1280-g6f1d2d1-dirty), Copyright (c)
2003-2008 Fabrice Bellard
     With this newest version, I use virt-manager to create the guest , the
xml file is in the attachment. But the Qemu return error when creating:
     *error: internal error: process exited while connecting to monitor:
qemu-system-aarch64: -device
pci-bridge,chassis_nr=2,id=pci,bus=pci,addr=0x1: Duplicate ID 'pci' for
device*

     The guest xml file in in attachment. But the XML worked when Qemu is
v2.4.0.
      Also I delete the items in the xml :
  -  <controller type='pci' index='0' model='pcie-root'/>
  -  <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  -    <model name='i82801b11-bridge'/>
  -    <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x0'/>
  -  </controller>
  -  <controller type='pci' index='2' model='pci-bridge'>
  -    <model name='pci-bridge'/>
  -    <target chassisNr='2'/>
  -    <address type='pci' domain='0x0000' bus='0x01' slot='0x01'
function='0x0'/>
  -  </controller>
      Using virsh create guest.xml, got the error too :
      *error: internal error: process exited while connecting to monitor:
qemu-system-aarch64: -device
pci-bridge,chassis_nr=2,id=pci,bus=pci,addr=0x1: Duplicate ID 'pci' for
device.*
My test machine is Softiron, with AMD* ARM64 *server CPU. The  libvirt
version is 1.3.1

     Kindly need your help. You will be really appreciated :-)
     Big Thanks~

Best Regards,
Kevin Zhao


On 22 June 2016 at 20:34, Kevin Zhao <kevin.z...@linaro.org> wrote:

> Hi Peter,
>    Should I use the newest version v 2.6.0 ?
>
> On 22 June 2016 at 20:04, Peter Maydell <peter.mayd...@linaro.org> wrote:
>
>> On 22 June 2016 at 12:51, Kevin Zhao <kevin.z...@linaro.org> wrote:
>> > Hi All,
>> >        Greetings from Linaro. This is Kevin from Linaro, and recently I
>> > have met a problem of qemu-system-aarch64 when I am working on
>> virt-manager.
>> >        I have reported a bug here:
>> > https://bugs.launchpad.net/qemu/+bug/1594239
>> >
>> >        It's mainly bout adding several SCSI disks to Aarch64 guests.
>> >        If you have a moment, pls kindly give some advice about
>> this.Thanks
>>
>> Can you reproduce the bug with a newer version of QEMU?
>>
>> thanks
>> -- PMM
>>
>
>
<domain type='kvm'>                                                                                   
  <name>generic</name>                                                                                
  <uuid>3e541395-28c1-41f6-ba7a-14b648f82d84</uuid>                                                   
  <memory unit='KiB'>1048576</memory>                                                                 
  <currentMemory unit='KiB'>1048576</currentMemory>                                                   
  <vcpu placement='static'>1</vcpu>                                                                   
  <os>                                                                                                
    <type arch='aarch64' machine='virt-2.7'>hvm</type>                                                
    <loader readonly='yes' type='pflash'>/usr/share/AAVMF/AAVMF_CODE.fd</loader>                      
    <nvram>/var/lib/libvirt/qemu/nvram/generic_VARS.fd</nvram>                                        
    <boot dev='hd'/>                                                                                  
  </os>                                                                                               
  <cpu mode='host-passthrough'/>                                                                      
  <clock offset='utc'/>                                                                               
  <on_poweroff>destroy</on_poweroff>                                                                  
  <on_reboot>restart</on_reboot>                                                                      
  <on_crash>restart</on_crash>                                                                        
  <devices>                                                                                           
    <emulator>/usr/bin/kvm</emulator>                                                                 
    <disk type='file' device='disk'>                                                                  
      <driver name='qemu' type='qcow2'/>                                                              
      <source file='/var/lib/libvirt/images/f23.qcow2'/>                                              
      <target dev='sda' bus='scsi'/>                                                                  
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>                              
    </disk>                                                                                                                                                                                      
    <controller type='scsi' index='0' model='virtio-scsi'>                                            
      <address type='virtio-mmio'/>                                                                   
    </controller> 
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
     <interface type="network">
      <source network="default"/>
      <mac address="52:54:00:27:aa:e5"/>
      <model type="virtio"/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
  </devices>
</domain>                                                                                    

Reply via email to