我的平台是10400+B460m迫击炮,主板自带2个m2口,6个sata口,其中m2_1位置我安装了一个转出5*sata口的JMB58x转接卡,可以免驱。 unraid下新建dsm虚拟机,分配了引导盘之外没有任何虚拟盘,而是把m2口的转接卡直通给了虚拟机。 虚拟机的配置如图: unraid下可以把img引导盘虚拟成USB设备,因此引导盘在群晖里是隐藏看不到的。 我目前在转接卡后只接了一块2T硬盘,硬盘接在转接卡转出的sata-1位。 引导参数默认的情况下,显示硬盘10。 把硬盘插在sata-2位,显示硬盘11; 把硬盘插在sata-4位,无法进系统,提示是未检测到硬盘。 想不明白,我的虚拟机设置下,系统认为到底有几个sata控制器? DiskIdxMap= SataPortMap= SasIdxMap=0 要如何设置呢? 请大佬可以指点一下,我目前仍在测试,测试结果随时更新。 ## 最后的总结在22楼 https://www.openos.org/threads/pve7-0satadsm7-0-1.3644/page-3#post-38098
为了搞清楚虚拟机下dsm系统的sata控制器情况,我启用ssh,lspci -v 命令查看。结果如下: root@DSM:~# lspci -v 0000:00:00.0 Class 0600: Device 8086:29c0 Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0 0000:00:01.0 Class 0300: Device 1b36:0100 (rev 05) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0, IRQ 10 Memory at 94000000 (32-bit, non-prefetchable) [size=64M] Memory at 90000000 (32-bit, non-prefetchable) [size=64M] Memory at 98800000 (32-bit, non-prefetchable) [size=8K] I/O ports at 1040 Expansion ROM at 98810000 [disabled] [size=64K] 0000:00:02.0 Class 0604: Device 1b36:000c Flags: bus master, fast devsel, latency 0, IRQ 22 Memory at 98806000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 00009000-00009fff [size=4K] Memory behind bridge: 98600000-987fffff [size=2M] Prefetchable memory behind bridge: 0000000800000000-00000008000fffff [size=1M] Capabilities: [54] Express Root Port (Slot+), MSI 00 Capabilities: [48] MSI-X: Enable+ Count=1 Masked- Capabilities: [40] Subsystem: Device 1b36:0000 Capabilities: [100] Advanced Error Reporting Capabilities: [148] Access Control Services Kernel driver in use: pcieport 0000:00:02.1 Class 0604: Device 1b36:000c Flags: bus master, fast devsel, latency 0, IRQ 22 Memory at 98805000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 00008000-00008fff [size=4K] Memory behind bridge: 98400000-985fffff [size=2M] Prefetchable memory behind bridge: 0000000800100000-00000008001fffff [size=1M] Capabilities: [54] Express Root Port (Slot+), MSI 00 Capabilities: [48] MSI-X: Enable+ Count=1 Masked- Capabilities: [40] Subsystem: Device 1b36:0000 Capabilities: [100] Advanced Error Reporting Capabilities: [148] Access Control Services Kernel driver in use: pcieport 0000:00:02.2 Class 0604: Device 1b36:000c Flags: bus master, fast devsel, latency 0, IRQ 22 Memory at 98804000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: 00007000-00007fff [size=4K] Memory behind bridge: 98200000-983fffff [size=2M] Prefetchable memory behind bridge: 0000000800300000-00000008004fffff [size=2M] Capabilities: [54] Express Root Port (Slot+), MSI 00 Capabilities: [48] MSI-X: Enable+ Count=1 Masked- Capabilities: [40] Subsystem: Device 1b36:0000 Capabilities: [100] Advanced Error Reporting Capabilities: [148] Access Control Services Kernel driver in use: pcieport 0000:00:02.3 Class 0604: Device 1b36:000c Flags: bus master, fast devsel, latency 0, IRQ 22 Memory at 98803000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 I/O behind bridge: 00006000-00006fff [size=4K] Memory behind bridge: 98000000-981fffff [size=2M] Prefetchable memory behind bridge: 0000000800500000-00000008006fffff [size=2M] Capabilities: [54] Express Root Port (Slot+), MSI 00 Capabilities: [48] MSI-X: Enable+ Count=1 Masked- Capabilities: [40] Subsystem: Device 1b36:0000 Capabilities: [100] Advanced Error Reporting Capabilities: [148] Access Control Services Kernel driver in use: pcieport 0000:00:07.0 Class 0c03: Device 1b36:000d (rev 01) (prog-if 30) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0, IRQ 23 Memory at 800200000 (64-bit, non-prefetchable) [size=16K] Capabilities: [90] MSI-X: Enable+ Count=16 Masked- Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00 Kernel driver in use: xhci_hcd 0000:00:1f.0 Class 0601: Device 8086:2918 (rev 02) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0 Kernel driver in use: lpc_ich 0000:00:1f.2 Class 0106: Device 8086:2922 (rev 02) (prog-if 01) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0, IRQ 28 I/O ports at 1060 Memory at 98802000 (32-bit, non-prefetchable) [size=4K] Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [a8] SATA HBA v1.0 Kernel driver in use: ahci 0000:00:1f.3 Class 0c05: Device 8086:2930 (rev 02) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0, IRQ 16 I/O ports at 1000 Kernel driver in use: i801_smbus 0000:01:00.0 Class 0200: Device 1af4:1041 (rev 01) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0, IRQ 22 Memory at 98600000 (32-bit, non-prefetchable) [size=4K] [virtual] Memory at 800000000 (64-bit, prefetchable) [size=16K] Expansion ROM at 98640000 [disabled] [size=256K] Capabilities: [dc] MSI-X: Enable+ Count=3 Masked- Capabilities: [c8] Vendor Specific Information: VirtIO: <unknown> Capabilities: [b4] Vendor Specific Information: VirtIO: Notify Capabilities: [a4] Vendor Specific Information: VirtIO: DeviceCfg Capabilities: [94] Vendor Specific Information: VirtIO: ISR Capabilities: [84] Vendor Specific Information: VirtIO: CommonCfg Capabilities: [7c] Power Management version 3 Capabilities: [40] Express Endpoint, MSI 00 Kernel driver in use: virtio-pci 0000:02:00.0 Class 0780: Device 1af4:1043 (rev 01) Subsystem: Device 1af4:1100 Flags: bus master, fast devsel, latency 0, IRQ 22 Memory at 98400000 (32-bit, non-prefetchable) [size=4K] Memory at 800100000 (64-bit, prefetchable) [size=16K] Capabilities: [dc] MSI-X: Enable- Count=2 Masked- Capabilities: [c8] Vendor Specific Information: VirtIO: <unknown> Capabilities: [b4] Vendor Specific Information: VirtIO: Notify Capabilities: [a4] Vendor Specific Information: VirtIO: DeviceCfg Capabilities: [94] Vendor Specific Information: VirtIO: ISR Capabilities: [84] Vendor Specific Information: VirtIO: CommonCfg Capabilities: [7c] Power Management version 3 Capabilities: [40] Express Endpoint, MSI 00 Kernel driver in use: virtio-pci 0000:03:00.0 Class 0106: Device 197b:0585 (prog-if 01) Subsystem: Device 197b:0000 Flags: bus master, fast devsel, latency 0, IRQ 29 I/O ports at 7200 I/O ports at 7180 I/O ports at 7100 I/O ports at 7080 I/O ports at 7000 Memory at 98200000 (32-bit, non-prefetchable) [size=8K] Expansion ROM at 98210000 [disabled] [size=64K] Capabilities: [80] Power Management version 3 Capabilities: [90] MSI: Enable+ Count=1/8 Maskable+ 64bit+ Capabilities: [c0] Express Legacy Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [150] Device Serial Number 00-00-00-00-00-00-00-00 Capabilities: [160] Power Budgeting <?> Capabilities: [1b8] Latency Tolerance Reporting Kernel driver in use: ahci 0001:00:12.0 Class 0106: Device 8086:5ae3 (prog-if 01) Flags: fast devsel 0001:00:13.0 Class 0000: Device 8086:5ad8 Flags: fast devsel 0001:00:14.0 Class 0000: Device 8086:5ad6 Flags: fast devsel 0001:00:15.0 Class 0c03: Device 8086:5aa8 (prog-if 30) Flags: fast devsel 0001:00:16.0 Class 1180: Device 8086:5aac Flags: fast devsel 0001:00:18.0 Class 1180: Device 8086:5abc Flags: fast devsel 0001:00:19.0 Class 1180: Device 8086:5ac6 Flags: fast devsel 0001:00:19.2 Class 1180: Device 8086:5ac6 Flags: fast devsel 0001:00:1f.0 Class 0c05: Device 8086:5ad4 Flags: fast devsel 0001:00:1f.1 Class 0c05: Device 8086:5ad4 Flags: fast devsel 0001:01:00.0 Class 0106: Device 1b4b:9215 (rev 11) (prog-if 01) Flags: fast devsel 0001:02:00.0 Class 0200: Device 8086:1539 (rev 03) Flags: fast devsel 0001:03:00.0 Class 0200: Device 8086:1539 (rev 03) Flags: fast devsel 然后跟unraid的pci设备列表对比 Kernel driver in use: ahci 的只有2个设备? 是否意味着,虚拟机下只有2个sata控制器? 其中Device 197b:0585是我直通的m2转接卡,Device 8086:2922 不明。 但是为何第一个硬盘是从硬盘10开始排序呢?
這個試試 DiskIdxMap=0C00 SataPortMap=95 SasIdxMap=0 應該是不對~ 因為你敘述的sata-4 會變成找不到硬碟~ 這個有點奇怪 我要先知道這個指令加進去後順序變成甚麼樣子