vir sh создание снимка, ошибка: XML ошибка: шины PCI недоступны - PullRequest
0 голосов
/ 30 апреля 2020

Когда я пытаюсь создать снимок для моего запущенного QEMU, я получаю следующую ошибку -

~$ virsh snapshot-create rpi
error: XML error: No PCI buses available

Это образ малинового пи для qemu-system-arm и его загрузки и работает как ожидается, кроме снимка.

Домен XML

<domain type='qemu'>
  <name>rpi</name>
  <uuid>b6dc9356-f772-4f63-bf78-0fe5f9f11923</uuid>
  <memory unit='KiB'>262144</memory>
  <currentMemory unit='KiB'>262144</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='armv7l' machine='versatilepb'>hvm</type>
    <kernel>/rpi/kernel-qemu-4.19.50-buster</kernel>
    <cmdline>root=/dev/sda2 console=ttyAMA0,115200</cmdline>
    <dtb>/rpi/versatile-pb-buster.dtb</dtb>
    <boot dev='hd'/>
  </os>
  <cpu mode='custom' match='exact' check='none'>
    <model fallback='forbid'>arm1176</model>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-armv7l</emulator>
    <disk type='file' device='disk'>                                                                                        
     <driver name='qemu' type='qcow2'/>                                                                                    
     <source file='/rpi/raspbian_buster_lite.qcow2'/>                                                 
     <target dev='sda' bus='sd'/>                                                                                          
     <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='scsi' index='0'>                                                                                      
     <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>                                                                                               
     <mac address='52:54:00:ed:eb:c7'/>                                                                                    
     <source bridge='virbr0'/>                                                                                             
     <model type='virtio'/>                                                                                                
     <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>                                                                                                     
      <target port='0'/>
    </serial>
    <console type='pty'>                                                                                                    
     <target type='serial' port='0'/>
    </console>
    <graphics type='spice' autoport='yes'>                                                                                  
      <listen type='address'/>                                                                                              
      <image compression='off'/>                                                                                            
      <gl enable='no' rendernode='/dev/dri/by-path/pci-0000:00:02.0-render'/>
    </graphics>
    <video>                                                                                                                 
      <model type='virtio' vram='16384' heads='1' primary='yes'/>                                                           
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </video>
  </devices>
</domain>

Я смотрел на libvirt qemu-system-arm, ошибка: XML ошибка: нет PCI автобусы доступны , но это не тот же случай.

версии -

~$ virsh version
Compiled against library: libvirt 4.0.0
Using library: libvirt 4.0.0
Using API: QEMU 4.0.0
Running hypervisor: QEMU 2.11.1

Чего мне не хватает?

...