Привет всем! Я "новичок" в Proxmox и в этом сообществе, и прошу немного помощи. Я уже настроил несколько ВМ, и хотел бы ВМ с Windows 10, использующую мою GT710 для опыта работы с passthrough, и чтобы была небольшая игровая машина "где угодно". Я следовал инструкциям по ссылкам: и , но:
- Я не могу запустить мою ВМ, если установить тип машины в q35.
- Кажется, что вообще ничего не работает?
Вот мой vm.conf:
```
agent: 1
balloon: 512
bios: ovmf
bootdisk: scsi0
cores: 4
efidisk0: default:vm-110-disk-0,size=1M
ide2: none,media=cdrom
ide3: none,media=cdrom
memory: 4096
name: Tyche
net0: virtio=26:1D:85:C9:39:DB,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-lvm:vm-110-disk-0,cache=writeback,size=50G
scsihw: virtio-scsi-pci
smbios1: uuid=7fd2eb03-0d9e-47a2-8523-b03c04d4635c
sockets: 1
vmgenid: f41dd919-d232-4b31-b0cf-d284a4017cf3
hostpci0: 08:00
```
Я использую ADM Ryzen 7 2700X, который поддерживает IOMMU (как видно ниже), но не поддерживает перенастройку прерываний...
```
root@olympus:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/17/devices/0000:0a:00.0
/sys/kernel/iommu_groups/7/devices/0000:00:07.1
/sys/kernel/iommu_groups/15/devices/0000:09:00.2
/sys/kernel/iommu_groups/5/devices/0000:00:04.0
/sys/kernel/iommu_groups/13/devices/0000:08:00.0
/sys/kernel/iommu_groups/13/devices/0000:08:00.1
/sys/kernel/iommu_groups/3/devices/0000:00:03.0
/sys/kernel/iommu_groups/11/devices/0000:00:18.3
/sys/kernel/iommu_groups/11/devices/0000:00:18.1
/sys/kernel/iommu_groups/11/devices/0000:00:18.6
/sys/kernel/iommu_groups/11/devices/0000:00:18.4
/sys/kernel/iommu_groups/11/devices/0000:00:18.2
/sys/kernel/iommu_groups/11/devices/0000:00:18.0
/sys/kernel/iommu_groups/11/devices/0000:00:18.7
/sys/kernel/iommu_groups/11/devices/0000:00:18.5
/sys/kernel/iommu_groups/1/devices/0000:00:01.3
/sys/kernel/iommu_groups/18/devices/0000:0a:00.2
/sys/kernel/iommu_groups/8/devices/0000:00:08.0
/sys/kernel/iommu_groups/16/devices/0000:09:00.3
/sys/kernel/iommu_groups/6/devices/0000:00:07.0
/sys/kernel/iommu_groups/14/devices/0000:09:00.0
/sys/kernel/iommu_groups/4/devices/0000:00:03.1
/sys/kernel/iommu_groups/12/devices/0000:03:00.0
/sys/kernel/iommu_groups/12/devices/0000:02:07.0
/sys/kernel/iommu_groups/12/devices/0000:02:00.0
/sys/kernel/iommu_groups/12/devices/0000:01:00.2
/sys/kernel/iommu_groups/12/devices/0000:01:00.0
/sys/kernel/iommu_groups/12/devices/0000:02:06.0
/sys/kernel/iommu_groups/12/devices/0000:01:00.1
/sys/kernel/iommu_groups/12/devices/0000:02:01.0
/sys/kernel/iommu_groups/12/devices/0000:02:04.0
/sys/kernel/iommu_groups/2/devices/0000:00:02.0
/sys/kernel/iommu_groups/10/devices/0000:00:14.3
/sys/kernel/iommu_groups/10/devices/0000:00:14.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.3
/sys/kernel/iommu_groups/1/devices/0000:00:01.0
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
```
Проведя `lspci -v`, я вижу следующее:
```
08:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 1030] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd. GK208 (rev 00)
Flags: busmaster, AST, PCI-EINTR, MMIO, AGP 2x
Memory @ f0000000 (64bit, non-prefetchable) [size=16M]
Memory @ e8000000 (64bit, prefetchable) [size=2048M]
I/O ports @ e000 [size=128]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidiafb
Kernel modules: nvidia_drm, nouveau
Device is not removable
Device ID: 10de:128b
Revision ID: 00000001
Address: 0x8000:00
Class-id: 010000 (VGA compatible controller)
Qlogic: 0000
SECLOGIC:
0
0
Extended capability ports: 00000000
LBAR: 00000000:00000000
Capabilities word: 00000000
08:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
Subsystem: Gigabyte Technology Co., Ltd. GK208 HDMI/DP Audio Controller
Flags: busmaster, AST, PCI-EINTR, MMIO, AGP 2x
Memory @ f6080000 (32bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_hda_codec_realtek, snd_hda_core
Device is not removable
Device ID: 10de:c28d
Revision ID: 00000001
Address: 0x8000:01
Class-id: 110300 (Multimedia controller)
Qlogic: 0000
SECLOGIC:
0
0
Extended capability ports: 00000000
LBAR: 00000000:00000000
Capabilities word: 00000000
```
`dmesg` показывает, что драйвер `vfio-pci` используется.
К сожалению, похоже, что карта не поддерживает EFI Bios, но я не уверен в этом, поскольку при проверке появляется ошибка:
```
root@olympus:~/rom-parser# ./rom-parser /tmp/image.rom
Valid ROM signature found @0h, PCIR offset 190h
PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 128b, class: 030000
PCIR: revision 0, vendor revision: 1
Error, ran off the end
```
Если у кого-нибудь есть какие-нибудь идеи или нужны дополнительные сведения... Спасибо заранее за любую помощь, которую вы сможете предоставить!
- Я не могу запустить мою ВМ, если установить тип машины в q35.
- Кажется, что вообще ничего не работает?
Вот мой vm.conf:
```
agent: 1
balloon: 512
bios: ovmf
bootdisk: scsi0
cores: 4
efidisk0: default:vm-110-disk-0,size=1M
ide2: none,media=cdrom
ide3: none,media=cdrom
memory: 4096
name: Tyche
net0: virtio=26:1D:85:C9:39:DB,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-lvm:vm-110-disk-0,cache=writeback,size=50G
scsihw: virtio-scsi-pci
smbios1: uuid=7fd2eb03-0d9e-47a2-8523-b03c04d4635c
sockets: 1
vmgenid: f41dd919-d232-4b31-b0cf-d284a4017cf3
hostpci0: 08:00
```
Я использую ADM Ryzen 7 2700X, который поддерживает IOMMU (как видно ниже), но не поддерживает перенастройку прерываний...
```
root@olympus:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/17/devices/0000:0a:00.0
/sys/kernel/iommu_groups/7/devices/0000:00:07.1
/sys/kernel/iommu_groups/15/devices/0000:09:00.2
/sys/kernel/iommu_groups/5/devices/0000:00:04.0
/sys/kernel/iommu_groups/13/devices/0000:08:00.0
/sys/kernel/iommu_groups/13/devices/0000:08:00.1
/sys/kernel/iommu_groups/3/devices/0000:00:03.0
/sys/kernel/iommu_groups/11/devices/0000:00:18.3
/sys/kernel/iommu_groups/11/devices/0000:00:18.1
/sys/kernel/iommu_groups/11/devices/0000:00:18.6
/sys/kernel/iommu_groups/11/devices/0000:00:18.4
/sys/kernel/iommu_groups/11/devices/0000:00:18.2
/sys/kernel/iommu_groups/11/devices/0000:00:18.0
/sys/kernel/iommu_groups/11/devices/0000:00:18.7
/sys/kernel/iommu_groups/11/devices/0000:00:18.5
/sys/kernel/iommu_groups/1/devices/0000:00:01.3
/sys/kernel/iommu_groups/18/devices/0000:0a:00.2
/sys/kernel/iommu_groups/8/devices/0000:00:08.0
/sys/kernel/iommu_groups/16/devices/0000:09:00.3
/sys/kernel/iommu_groups/6/devices/0000:00:07.0
/sys/kernel/iommu_groups/14/devices/0000:09:00.0
/sys/kernel/iommu_groups/4/devices/0000:00:03.1
/sys/kernel/iommu_groups/12/devices/0000:03:00.0
/sys/kernel/iommu_groups/12/devices/0000:02:07.0
/sys/kernel/iommu_groups/12/devices/0000:02:00.0
/sys/kernel/iommu_groups/12/devices/0000:01:00.2
/sys/kernel/iommu_groups/12/devices/0000:01:00.0
/sys/kernel/iommu_groups/12/devices/0000:02:06.0
/sys/kernel/iommu_groups/12/devices/0000:01:00.1
/sys/kernel/iommu_groups/12/devices/0000:02:01.0
/sys/kernel/iommu_groups/12/devices/0000:02:04.0
/sys/kernel/iommu_groups/2/devices/0000:00:02.0
/sys/kernel/iommu_groups/10/devices/0000:00:14.3
/sys/kernel/iommu_groups/10/devices/0000:00:14.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.3
/sys/kernel/iommu_groups/1/devices/0000:00:01.0
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
```
Проведя `lspci -v`, я вижу следующее:
```
08:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 1030] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd. GK208 (rev 00)
Flags: busmaster, AST, PCI-EINTR, MMIO, AGP 2x
Memory @ f0000000 (64bit, non-prefetchable) [size=16M]
Memory @ e8000000 (64bit, prefetchable) [size=2048M]
I/O ports @ e000 [size=128]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidiafb
Kernel modules: nvidia_drm, nouveau
Device is not removable
Device ID: 10de:128b
Revision ID: 00000001
Address: 0x8000:00
Class-id: 010000 (VGA compatible controller)
Qlogic: 0000
SECLOGIC:
0
0
Extended capability ports: 00000000
LBAR: 00000000:00000000
Capabilities word: 00000000
08:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
Subsystem: Gigabyte Technology Co., Ltd. GK208 HDMI/DP Audio Controller
Flags: busmaster, AST, PCI-EINTR, MMIO, AGP 2x
Memory @ f6080000 (32bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_hda_codec_realtek, snd_hda_core
Device is not removable
Device ID: 10de:c28d
Revision ID: 00000001
Address: 0x8000:01
Class-id: 110300 (Multimedia controller)
Qlogic: 0000
SECLOGIC:
0
0
Extended capability ports: 00000000
LBAR: 00000000:00000000
Capabilities word: 00000000
```
`dmesg` показывает, что драйвер `vfio-pci` используется.
К сожалению, похоже, что карта не поддерживает EFI Bios, но я не уверен в этом, поскольку при проверке появляется ошибка:
```
root@olympus:~/rom-parser# ./rom-parser /tmp/image.rom
Valid ROM signature found @0h, PCIR offset 190h
PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 128b, class: 030000
PCIR: revision 0, vendor revision: 1
Error, ran off the end
```
Если у кого-нибудь есть какие-нибудь идеи или нужны дополнительные сведения... Спасибо заранее за любую помощь, которую вы сможете предоставить!
