Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

A.18. SR-IOV 故障排除

本节包含可能影响 SR-IOV 的问题的解决方案。如果您需要其他帮助,请参阅 第 16.2.4 节 “从 SR-IOV 虚拟功能池设置 PCI 设备分配”
启动客户机时出错
启动配置的虚拟机时,会出错:
# virsh start test
error: Failed to start domain test
error: Requested operation is not valid: PCI device 0000:03:10.1 is in use by domain rhel7
此错误通常是由已经分配给另一个虚拟客户机或主机本身的设备所致。
迁移、保存或转储客户机时出错
尝试迁移并转储虚拟机会导致类似如下的错误:
# virsh dump rhel7/tmp/rhel7.dump

error: Failed to core dump domain rhel7 to /tmp/rhel7.dump
error: internal error: unable to execute QEMU command 'migrate': State blocked by non-migratable device '0000:00:03.0/vfio-pci'
由于设备分配使用虚拟机启动的特定主机上的硬件,因此在使用设备分配时,不支持客户机迁移和保存。目前,同样的限制也适用于 core-dumping a guest;这可能会在以后有所变化。请注意,除非指定了 --memory-only 选项,否则 QEMU 目前不支持在附加了 PCI 设备的虚拟客户机上迁移、保存和转储操作。目前,它只支持使用 USB 设备的这些操作。目前正在做的工作,以便在未来进行这个改进。