Libvirt:无法使用 isa 总线?

Libvirt:无法使用 isa 总线?

我找到了一种用qemu运行Windows95的方法(我有点怀旧,我使用旧系统进行测试)

 /usr/bin/qemu-system-i386  -L pc-bios -m 64 -hda /home/user/.local/libvirt/images/win95.img  -net nic,model=ne2k_isa -net user -soundhw sb16 --enable-kvm -cpu qemu32 -M isapc

这条线工作正常,CPU 使用率低。

我现在想在 libvirt 上导入

我创建 .args 文件

LC_ALL=C 
PATH=/bin:/usr/bin:/sbin:/usr/sbin
HOME=/home/user
USER=user
LOGNAME=user qemu-system-i386  -L pc-bios -M isapc -m 64 -hda win95.img -net nic,model=ne2k_isa -net user -soundhw sb16 --enable-kvm -cpu qemu32

转变...

virsh domxml-from-native qemu-argv file.args  > win95.xml

但当我尝试跑步时...

virsh创建win95.xml

error: Failed to create domain from win95.xml
error: XML error: No PCI buses available

这是 xml 文件:无法在 libvirt 上获取 isa?

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>unnamed</name>
  <uuid>37b8dc38-63bb-4206-94f8-26f47bce21b9</uuid>
  <memory unit='KiB'>65536</memory>
  <currentMemory unit='KiB'>65536</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type machine='isapc'>hvm</type>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-i386</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/home/user/.local/libvirt/images/win95.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'/>
    <controller type='ide' index='0'/>
    <interface type='user'>
      <mac address='52:54:00:d8:35:b3'/>
      <model type='ne2k_isa'/>
    </interface>
    <graphics type='sdl'/>
    <sound model='sb16'/>
    <video>
      <model type='cirrus' vram='16384' heads='1'/>
    </video>
    <memballoon model='none'/>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-L'/>
    <qemu:arg value='pc-bios'/>
  </qemu:commandline>
</domain>

相关内容