好的,我用Virt设置了一个KVM,我把它设置为8GB内存中的7443,让它完全模拟我的CPU,一切都很好,但是我无法让GPU从主机解除绑定到来宾,那么有什么脚本可以帮助吗?
我将张贴以下的所有错误代码,我已遇到的时候,试图创建机器。
Error starting domain: unsupported configuration: host doesn't support passthrough of host PCI devicesTraceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 127, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1260, in startup self._backend.create() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 866, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)libvirtError: unsupported configuration: host doesn't support passthrough of host PCI devices当我尝试使用PCI设备运行KVM时,不管设备仍在发生。
我的lspci输出
[root@localhost xdroidie626]# lspci00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barts XT [Radeon HD 6870]01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Barts HDMI Audio [Radeon HD 6800 Series]Virsh输出
[root@localhost xdroidie626]# virsh nodedev-dumpxml pci_0000_01_00_0<device> <name>pci_0000_01_00_0</name> <path>/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0</path> <parent>pci_0000_00_01_0</parent> <driver> <name>radeon</name> </driver> <capability type='pci'> <domain>0</domain> <bus>1</bus> <slot>0</slot> <function>0</function> <product id='0x6738'>Barts XT [Radeon HD 6870]</product> <vendor id='0x1002'>Advanced Micro Devices, Inc. [AMD/ATI]</vendor> </capability></device>[root@localhost xdroidie626]# virsh nodedev-dettach pci_0000_01_00_0error: Failed to detach device pci_0000_01_00_0error: invalid argument: neither VFIO nor kvm device assignment is currently supported on this system当我试图解除设备绑定时,输出Virsh就会给出。
[root@localhost xdroidie626]# virsh nodedev-dettach pci_0000_01_00_0error: Failed to detach device pci_0000_01_00_0error: invalid argument: neither VFIO nor kvm device assignment is currently supported on this system我确实对少量的信息表示歉意,但我不知道下一步该怎么办。
我只想让KVM通过窗口运行游戏,如果需要的话,我还可以快照回来(病毒等)。
我的系统规格如贴出
G1狙击手M3 Z77主板
i5 2500 3.3Ghz CPU
AMD 6870 1GB
8GB RAM
三星840 SSD 120 840 500 840 7200.12 840驱动器
对张贴的错误和我的整个问题有什么解决办法吗?
发布于 2014-02-06 18:30:19
很可能您的硬件不支持PCI传输。
发布于 2015-07-09 10:41:29
要在内核上为Intel处理器启用IOMMU,请在您的Linux上传递intel_iommu=on引导参数。
/etc/default/grub在GRUB_CMDLINE_LINUX_DEFAULT=末尾添加intel_iommu=on“.”sudo update-grub发布于 2022-09-05 07:36:11
nano /etc/default/grub)并设置GRUB_CMDLINE_LINUX_DEFAULT=“静音intel_iommu=on iommu=pt”或GRUB_CMDLINE_LINUX_DEFAULT=“静音amd_iommu=on iommu=pt”。virt-manager中使用它们时才能添加它们,然后需要加载vfio驱动程序并阻止nonvae,然后可以将GPU添加到VM中。要在引导时加载VFIO模块:
/etc/modules以包含以下行vfio vfio_iommu_type1 vfio_pci vfio_virqfd若要检查IOMMU是否工作,请运行
dmesg | grep -e DMAR -e IOMMUhttps://unix.stackexchange.com/questions/113882
复制相似问题