初级用户
kvm: -device vfio-pci,host=00:02.0,addr=0x02,x-igd-gms=1,romfile=image.rom: Failed to mmap 0000:00:02.0 BAR 2. Performance may be slow kvm: -device vfio-pci,host=00:02.0,addr=0x02,x-igd-gms=1,romfile=image.rom: IGD device 0000:00:02.0 cannot support legacy mode due to existing devices at address 1f.0 TASK OK
查看详细资料
TOP
boot: cdn bootdisk: sata0 cores: 1 ide2: none,media=cdrom memory: 2048 name: LibreELEC net0: virtio=AA:42:8E:B2:5F:88,bridge=vmbr0,firewall=1 numa: 0 ostype: l26 sata0: local-lvm:vm-100-disk-0,size=8G sata1: local-lvm:vm-100-disk-1,size=552M scsihw: virtio-scsi-pci smbios1: uuid=389e684c-cf35-4e85-b16b-64a42181be87 sockets: 2 vmgenid: 4c392c9d-1b2e-45dc-80bc-b9884e6c1ad5
{ "Version": "19.10", "OEM": { "Vendor": "Intel Corporation", "Product": "NUC6CAYH", "Family": "Intel NUC" }, "BIOS": { "Vendor": "Intel Corp.", "Version": "AYAPLCEL.86A.0059.2018.1226.1422" }, "CPU": { "OpMode": "32-bit, 64-bit", "CPUs": "4", "Threads": "1", "Cores": "4", "Sockets": "1", "Vendor": "GenuineIntel", "Family": "6", "Model": "92", "Stepping": "9", "Name": "Intel(R) Celeron(R) CPU J3455 @ 1.50GHz", "Virtualization": "VT-x" }, "Arch": "amd64", "GPU": [ { "Vendor": "8086", "Model": "5a85" } ], "RAM": 8, "Disks": [ 120, 31 ], "Partitions": [ 114.9, 2.2 ], "Screens": [ { "Size": "527mmx296mm", "Resolution": "2560x1440", "Frequency": "59.95" } ], "Autologin": false, "LivePatch": false, "Session": { "DE": "ubuntu:GNOME", "Name": "ubuntu", "Type": "x11" }, "Language": "zh_CN", "Timezone": "Asia/Shanghai", "Install": { "Media": "Ubuntu 19.10 \"Eoan Ermine\" - Alpha amd64 (20190630)", "Type": "GTK", "OEM": false, "PartitionMethod": "use_device", "DownloadUpdates": true, "Language": "zh_CN", "Minimal": true, "RestrictedAddons": false, "Stages": { "0": "language", "1": "language", "16": "console_setup", "19": "wireless", "21": "prepare", "37": "partman", "84": "start_install", "91": "timezone", "94": "usersetup", "111": "user_done", "439": "done" } } }
00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series Host Bridge (rev 0b) 00:02.0 VGA compatible controller: Intel Corporation Device 5a85 (rev 0b) 00:0e.0 Audio device: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series Audio Cluster (rev 0b) 00:0f.0 Communication controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series Trusted Execution Engine (rev 0b) 00:12.0 SATA controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series SATA AHCI Controller (rev 0b) 00:13.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series PCI Express Port A #1 (rev fb) 00:13.1 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series PCI Express Port A #2 (rev fb) 00:13.2 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series PCI Express Port A #3 (rev fb) 00:15.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series USB xHCI (rev 0b) 00:16.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series I2C Controller #1 (rev 0b) 00:18.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series HSUART Controller #1 (rev 0b) 00:19.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series SPI Controller #1 (rev 0b) 00:19.1 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series SPI Controller #2 (rev 0b) 00:19.2 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series SPI Controller #3 (rev 0b) 00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series Low Pin Count Interface (rev 0b) 00:1f.1 SMBus: Intel Corporation Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series SMBus Controller (rev 0b) 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01) 02:00.0 Network controller: Intel Corporation Device 24fb (rev 10) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
原帖由 ChinaBoyFF 于 2019-7-4 10:34 发表 请教楼主,我的机器也是暴风矿渣j3455.按照你的教程,配置好后,但没法直通,基本都是花屏,最好的情况是灰屏,可以看到一个鼠标,可以移动,但没有其他反应。后边也用楼主给出最新配置文件配置了,还是不行。我发现 ...
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Proxmox Virtual Environment" GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on video=vesafb:off,efifb:off" GRUB_CMDLINE_LINUX="" # Disable os-prober, it might add menu entries for each guest GRUB_DISABLE_OS_PROBER=true # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Disable generation of recovery mode menu entries GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"
blacklist snd_hda_intel blacklist snd_soc_skl blacklist snd_hda_codec_hdmi blacklist i915
options vfio-pci ids=8086:5a85,8086:5a98
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. vfio vfio_iommu_type1 vfio_pci vfio_virqfd
boot: cdn bootdisk: sata0 cores: 1 hostpci0: 00:02.0,x-vga=1 hostpci1: 00:0e.0,rombar=0 ide2: none,media=cdrom memory: 2048 name: LibreELEC net0: virtio=EE:56:5C:9B:FF:AB,bridge=vmbr0,firewall=1 numa: 0 ostype: l26 sata0: local-lvm:vm-100-disk-0,size=8G sata1: local-lvm:vm-100-disk-1,size=552M scsihw: virtio-scsi-pci smbios1: uuid=e3af2eb4-9abc-425d-8d1e-2c534c3b21fb sockets: 2 vga: none vmgenid: fb17149a-0b6b-4d40-9a73-7795dfd0a660
/sys/kernel/iommu_groups/7/devices/0000:00:16.0 /sys/kernel/iommu_groups/5/devices/0000:03:00.0 /sys/kernel/iommu_groups/5/devices/0000:00:13.2 /sys/kernel/iommu_groups/5/devices/0000:02:00.0 /sys/kernel/iommu_groups/5/devices/0000:00:13.0 /sys/kernel/iommu_groups/5/devices/0000:01:00.0 /sys/kernel/iommu_groups/5/devices/0000:00:13.1 /sys/kernel/iommu_groups/3/devices/0000:00:0f.0 /sys/kernel/iommu_groups/11/devices/0000:00:1f.0 /sys/kernel/iommu_groups/11/devices/0000:00:1f.1 /sys/kernel/iommu_groups/1/devices/0000:00:02.0 /sys/kernel/iommu_groups/8/devices/0000:00:18.0 /sys/kernel/iommu_groups/6/devices/0000:00:15.0 /sys/kernel/iommu_groups/4/devices/0000:00:12.0 /sys/kernel/iommu_groups/2/devices/0000:00:0e.0 /sys/kernel/iommu_groups/10/devices/0000:00:1a.0 /sys/kernel/iommu_groups/0/devices/0000:00:00.0 /sys/kernel/iommu_groups/9/devices/0000:00:19.2 /sys/kernel/iommu_groups/9/devices/0000:00:19.0 /sys/kernel/iommu_groups/9/devices/0000:00:19.1
原帖由 xif7456 于 2019-7-4 18:56 发表 上的兄弟把GPU ram调大后搞定了,你也试试? 还有你的虚拟机配置里有两个参数没加上
原帖由 xif7456 于 2019-7-4 21:23 发表 把虚拟机内存分配到4G试试 IGD直通到虚拟机里的总线地址一定要在0x02,所以addr=0x02是必须的 x-igd-gms=1 这个参数如果不加会造成低于5G内存的虚拟机起不来 参考:https://patchwork.kernel.org/patch/985 ...
boot: cdn bootdisk: sata0 cores: 1 ide2: none,media=cdrom memory: 4096 name: LibreELEC net0: virtio=CA:E5:0A:70:2B:53,bridge=vmbr0,firewall=1 numa: 0 ostype: l26 sata0: local-lvm:vm-100-disk-0,size=8G sata1: local-lvm:vm-100-disk-1,size=552M smbios1: uuid=0075396c-a662-4a5a-9543-584229c7f5b6 sockets: 2 vga: none vmgenid: 405006a1-d738-4605-a9a6-6eb55e5997ea args: -device vfio-pci,host=00:02.0,addr=0x02,x-igd-gms=1,romfile=image.rom hostpci0: 00:0e,rombar=0 vga: none
原帖由 xif7456 于 2019-7-4 22:03 发表 以下是qemu的源码,这个报错就是机器类型的问题。。。。 + /* + * We need to create an LPC/ISA bridge at PCI bus address 00:1f.0 that we + * can stuff host values into, so if there's alre ...
Filesystem Size Used Avail Use% Mounted on udev 3.8G 0 3.8G 0% /dev tmpfs 789M 8.9M 780M 2% /run /dev/mapper/pve-root 28G 28G 0 100% / tmpfs 3.9G 37M 3.9G 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda2 511M 304K 511M 1% /boot/efi /dev/fuse 30M 16K 30M 1% /etc/pve
原帖由 ChinaBoyFF 于 2019-7-5 09:08 发表 你现在的虚拟机是没直通gpu之前用控制台装好的吗?如果是的话,尝试用img引导开机,重装试下。我之前控制台装好的也开机花屏
() kvm: -device vfio-pci,host=00:02.0,addr=0x02,x-igd-gms=1,romfile=image.rom: Failed to mmap 0000:00:02.0 BAR 2. Performance may be slow kvm: -device vfio-pci,host=00:02.0,addr=0x02,x-igd-gms=1,romfile=image.rom: IGD device 0000:00:02.0 cannot support legacy mode due to existing devices at address 1f.0 TASK OK
原帖由 xif7456 于 2019-7-6 22:08 发表 不过说实话,如果你是想拿来跑docker+路由+libreelec的话建议你也别折腾了,上N1吧 N1刷Coreelec跑docker,然后docker里跑openwrt就可以当路由了,N1还能点亮HDR 我搞J3455直通GPU是为了兼做NAS,NUC也没办法上 ...
原帖由 xif7456 于 2019-7-7 23:52 发表 我的版本是5.4-3,用官网iso装的 直通GPU后再安装Libreelec可以不?如果显示task ok,宿主不死机的话应该是没有问题的