Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

控制器直通nvme固态的问题,虚拟机无法打开

Featured Replies

设备是b660i,有两块m.2nvme固态,一块分配了做cache盘,另一块准备用来直通给虚拟机,我在vfio绑定了这块硬盘控制器,在启动虚拟机的时候出现错误,所有的虚拟机只要添加了这个硬盘都会出现错误。

WX20230803-145946@2x.thumb.png.1a3ddb9675273e1bf26ac3cac1389fa5.png

WX20230803-150002@2x.thumb.png.9652460d28d468830cb35ef35966f9d1.png

internal error: qemu unexpectedly closed the monitor: qxl_send_events: spice-server bug: guest stopped, ignoring 2023-08-03T06:57:05.327339Z qemu-system-x86_64: -device {"driver":"vfio-pci","host":"0000:07:00.0","id":"hostdev0","bus":"pci.4","addr":"0x0"}: vfio 0000:07:00.0: failed to add PCI capability 0x11[0x50]@0xb0: table & pba overlap, or they don't fit in BARs, or don't align

论坛里有相似的帖子,说控制器冲突什么的,没搞懂原理,按照操作修改了xml文件,但是显示还是另一种错误,设备名没定义之类的,我重新进xml编辑,确实看见那个‘alias name=xxx’ 这串代码更新了就会自动消失,请问大家有办法能解决这个问题吗,谢谢大家WX20230803-145817@2x.thumb.png.5a404952605254d29e8eac2353c017ab.pngWX20230803-112716@2x.thumb.png.984105d2460c4df577858cf9a4cd2721.pngWX20230803-112654@2x.thumb.png.d0d2871ba571d56b4d37bd93dfa2c889.png

 

Edited by javazwz123

  • javazwz123 changed the title to 控制器直通nvme固态的问题,虚拟机无法打开
  • Author

求助大佬们

  • 1 month later...

kvm是拦截IO再虚拟给系统,pcie通道问题,这个好像没什么办法,只能把两块盘调换下位置试试,我是nvme转pcie,主板三个pcieX1,只有最后一个才能直通,其他都提示冲突

还有一种可能,第二个nvme的通道和sata共用,你看看相关sata口是否接了硬盘

Edited by suosuosi

由于 libvirt 的版本升级了,所以先前的一些参数可能不兼容,你可以尝试这么去改:

 

...
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
      </source>
      <alias name='ua-sm2263'/>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </hostdev>
...
...
    <qemu:override>
      <qemu:device alias='ua-sm2263'>
        <qemu:frontend>
          <qemu:property name='x-msix-relocation' type='string' value='bar2'/>
        </qemu:frontend>
      </qemu:device>
    </qemu:override>
  </domain>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.