大侠
查看详细资料
TOP
魔头
原帖由 ChinaBoyFF 于 2019-7-4 13:52 发表 已经正常了,这个坑好深 居然是因为我们太吝啬了,把内存放大到4GB就正常直通了
初级用户
# 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
原帖由 egbluecats 于 2019-7-4 18:35 发表 /etc/default/grub# 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 conf ...
原帖由 xif7456 于 2019-7-4 18:56 发表 上的兄弟把GPU ram调大后搞定了,你也试试? 还有你的虚拟机配置里有两个参数没加上
原帖由 egbluecats 于 2019-7-4 19:00 发表 那也不是GPU ram 啊 调成4096也没用,还是之前的错误 我指的是Failed to mmap 0000:00:02.0 BAR 2. Performance may be slow 配置两个参数 是指的是args里的?反正那addr不能用。
原帖由 ChinaBoyFF 于 2019-7-4 20:09 发表 不知道对不对,我发现Libreelec启动时占用内存走到3G去了,还有就是SCSI控制器要选为默认的,不要用创建时自动选的VirtIO SCSI,我就改了就这两个,然后就直通正常了1075601
原帖由 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
原帖由 egbluecats 于 2019-7-4 21:46 发表 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,rom ...
原帖由 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
原帖由 egbluecats 于 2019-7-4 23:30 发表 死机后强制关了再开就这样了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-ro ...
原帖由 xif7456 于 2019-7-4 14:44 发表 恭喜恭喜~没想到居然是因为这个问题,我的GPU内存一直都是开到最大的
混世魔头