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.

issue with VM video output

Featured Replies

Hey,

 

Running 6.9.1 

I am having an issue getting VM's working. I recently installed a second SSD to use for my VMs. My Domains share is on the new SSD. ISO and VirtIO on the cache drive in my ISO's folder.  I use the template for Windows 10. The VM starts up, but I can't seem to get video output. The card has been bound and was previously working on another VM I setup. Decided to delete it and install a new one. Same ISO and VertIO I was using before. Not sure what to do next. What other info is needed to help diagnose this?

 

Thanks!

 

Here is the log for the Windows VM:

 

-rtc base=localtime \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x7.0x7 \
-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x7 \
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x7.0x1 \
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x7.0x2 \
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x3 \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Windows 10/vdisk1.img","node-name":"libvirt-3-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-3-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-3-storage"}' \
-device virtio-blk-pci,bus=pci.0,addr=0x4,drive=libvirt-3-format,id=virtio-disk2,bootindex=1,write-cache=on \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/WIN10.PRO.20H2.SUPERLITE+COMPACT.U3.X64.GHOSTSPECTRE.(N-V3).iso","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"raw","file":"libvirt-2-storage"}' \
-device ide-cd,bus=ide.0,unit=0,drive=libvirt-2-format,id=ide0-0-0,bootindex=2 \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.190-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device ide-cd,bus=ide.0,unit=1,drive=libvirt-1-format,id=ide0-0-1 \
-netdev tap,fd=34,id=hostnet0 \
-device virtio-net,netdev=hostnet0,id=net0,mac=52:54:00:cd:b2:0e,bus=pci.0,addr=0x2 \
-chardev pty,id=charserial0 \
-device isa-serial,chardev=charserial0,id=serial0 \
-chardev socket,id=charchannel0,fd=35,server,nowait \
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
-device vfio-pci,host=0000:01:00.0,id=hostdev0,bus=pci.0,addr=0x5 \
-device vfio-pci,host=0000:01:00.1,id=hostdev1,bus=pci.0,addr=0x6 \
-device usb-host,hostbus=1,hostaddr=10,id=hostdev2,bus=usb.0,port=1 \
-device usb-host,hostbus=1,hostaddr=6,id=hostdev3,bus=usb.0,port=2 \
-device usb-host,hostbus=1,hostaddr=19,id=hostdev4,bus=usb.0,port=3 \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2022-02-27 15:54:00.244+0000: Domain id=8 is tainted: high-privileges
2022-02-27 15:54:00.244+0000: Domain id=8 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2022-02-27T15:54:03.211775Z qemu-system-x86_64: -device vfio-pci,host=0000:01:00.0,id=hostdev0,bus=pci.0,addr=0x5: Failed to mmap 0000:01:00.0 BAR 1. Performance may be slow
2022-02-27T15:54:05.072679Z qemu-system-x86_64: vfio-pci: Cannot read device rom at 0000:01:00.0
Device option ROM contents are probably invalid (check dmesg).
Skip option ROM probe with rombar=0, or load from file with romfile=
2022-02-27T15:55:30.781900Z qemu-system-x86_64: terminating on signal 15 from pid 5732 (/usr/sbin/libvirtd)
2022-02-27 15:55:33.383+0000: shutting down, reason=destroyed

Edited by Ichithekiller

  • Ichithekiller changed the title to issue with VM video output
15 hours ago, Ichithekiller said:

What other info is needed to help diagnose this?

diagnostics?

Quote

Feb 27 13:47:31 IchiTheTower kernel: pci 0000:01:00.0: BAR 1: assigned to efifb

Feb 28 08:39:48 IchiTheTower kernel: vfio-pci 0000:01:00.0: BAR 1: can't reserve [mem 0x4020000000-0x402fffffff 64bit pref]

Try with video=efifb:off in the append line of your syslinux config.

 

  • Author
On 3/2/2022 at 3:55 AM, ghost82 said:

Try with video=efifb:off in the append line of your syslinux config.

 

Finally got a chance to try this. Didn't work unfortunately.

That's strange because:

BAR 1: can't reserve is an error due to memory being in use by something else.

Repost diagnostics with changes applied please.

  • Author
3 hours ago, ghost82 said:

That's strange because:

BAR 1: can't reserve is an error due to memory being in use by something else.

Repost diagnostics with changes applied please.

Here are the new diagnostics.

 

Here is last part of the windows 10 log after I start the VM:

2022-03-05 20:32:14.227+0000: Domain id=1 is tainted: high-privileges
2022-03-05 20:32:14.227+0000: Domain id=1 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2022-03-05T20:32:16.931901Z qemu-system-x86_64: vfio-pci: Cannot read device rom at 0000:01:00.0
Device option ROM contents are probably invalid (check dmesg).
Skip option ROM probe with rombar=0, or load from file with romfile=
2022-03-05T20:32:33.959494Z qemu-system-x86_64: terminating on signal 15 from pid 10664 (/usr/sbin/libvirtd)
2022-03-05 20:32:36.361+0000: shutting down, reason=destroyed

ichithetower-diagnostics-20220305-1532.zip

Edited by Ichithekiller

This is really odd...despite having:

Mar  5 15:17:30 IchiTheTower kernel: Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot video=efifb:off

 

efifb attaches the same...:

Mar  5 15:17:30 IchiTheTower kernel: pci 0000:01:00.0: BAR 1: assigned to efifb

 

This is new to me, I never saw this.

 

Try this.

Before starting the vm, run unraid terminal and type:

echo 0 > /sys/class/vtconsole/vtcon0/bind
echo 0 > /sys/class/vtconsole/vtcon1/bind
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

type enter at the end of each line.

 

Then try to start the vm and see if gpu passthrough works.

  • Author
18 minutes ago, ghost82 said:

This is really odd...despite having:

Mar  5 15:17:30 IchiTheTower kernel: Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot video=efifb:off

 

efifb attaches the same...:

Mar  5 15:17:30 IchiTheTower kernel: pci 0000:01:00.0: BAR 1: assigned to efifb

 

This is new to me, I never saw this.

 

Try this.

Before starting the vm, run unraid terminal and type:

echo 0 > /sys/class/vtconsole/vtcon0/bind
echo 0 > /sys/class/vtconsole/vtcon1/bind
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

type enter at the end of each line.

 

Then try to start the vm and see if gpu passthrough works.

Just tried that. I type the first line and hit enter. 

 

Type second line and hit enter. It says this:

bash: /sys/class/vtconsole/vtcon1/bind: No such file or directory

 

Type 3rd line and hit enter. It says this:

bash: echo: write error: No such device

Can you please try this command in an unraid terminal and paste the output please?

cat /proc/iomem

 

  • Author
1 hour ago, ghost82 said:

Can you please try this command in an unraid terminal and paste the output please?

cat /proc/iomem

 

00000000-00000fff : Reserved
00001000-0009dfff : System RAM
0009e000-0009efff : Reserved
0009f000-0009ffff : System RAM
000a0000-000fffff : Reserved
  000a0000-000bffff : PCI Bus 0000:00
  000e0000-000e3fff : PCI Bus 0000:00
  000e4000-000e7fff : PCI Bus 0000:00
  000e8000-000ebfff : PCI Bus 0000:00
  000ec000-000effff : PCI Bus 0000:00
  000f0000-000fffff : System ROM
00100000-868f2017 : System RAM
  03000000-03a00816 : Kernel code
  03c00000-03e4afff : Kernel rodata
  04000000-04127f7f : Kernel data
  04471000-045fffff : Kernel bss

868f2018-86901057 : System RAM
86901058-86902017 : System RAM
86902018-86947e57 : System RAM
86947e58-86948017 : System RAM
86948018-86968a57 : System RAM
86968a58-86969017 : System RAM
86969018-8698d657 : System RAM
8698d658-92fc8fff : System RAM
92fc9000-92fc9fff : Reserved
92fca000-94deefff : System RAM
94def000-97b9bfff : Reserved
97b9c000-97e1bfff : ACPI Tables
97e1c000-97fbffff : ACPI Non-volatile Storage
97fc0000-98efefff : Reserved
98eff000-98efffff : System RAM
98f00000-9fffffff : Reserved
a0000000-dfffffff : PCI Bus 0000:00

  a0000000-a10fffff : PCI Bus 0000:02
    a0000000-a0ffffff : 0000:02:00.0
      a0000000-a0ffffff : nvidia
    a1000000-a107ffff : 0000:02:00.0
    a1080000-a1083fff : 0000:02:00.1
  a1100000-a1100fff : 0000:00:1f.5
  a2000000-a30fffff : PCI Bus 0000:01
    a2000000-a2ffffff : 0000:01:00.0
    a3080000-a3083fff : 0000:01:00.1
  a3100000-a3afffff : PCI Bus 0000:09
  a3b00000-a3cfffff : PCI Bus 0000:06
    a3b00000-a3bfffff : 0000:06:00.0
      a3b00000-a3bfffff : igc
    a3c00000-a3c03fff : 0000:06:00.0
      a3c00000-a3c03fff : igc
  a3d00000-a3efffff : PCI Bus 0000:03

    a3d00000-a3dfffff : 0000:03:00.0
    a3e00000-a3e3ffff : 0000:03:00.0
      a3e00000-a3e3ffff : mpt3sas
    a3e40000-a3e4ffff : 0000:03:00.0
      a3e40000-a3e4ffff : mpt3sas
  a3f00000-a3ffffff : PCI Bus 0000:07
    a3f00000-a3f03fff : 0000:07:00.0
  a4000000-a40fffff : PCI Bus 0000:04
    a4000000-a4003fff : 0000:04:00.0
      a4000000-a4003fff : nvme
  a4100000-a4101fff : 0000:00:17.0
    a4100000-a4101fff : ahci
  a4102000-a41027ff : 0000:00:17.0
    a4102000-a41027ff : ahci
  a4103000-a41030ff : 0000:00:17.0
    a4103000-a41030ff : ahci
e0000000-efffffff : PCI MMCONFIG 0000 [bus 00-ff]
  e0000000-efffffff : Reserved
    e0000000-efffffff : pnp 00:03

fed20000-fed7ffff : Reserved
  fed20000-fed7ffff : pnp 00:03
fed91000-fed91fff : dmar0
feda0000-feda0fff : pnp 00:03
feda1000-feda1fff : pnp 00:03
fee00000-fee00fff : Local APIC
  fee00000-fee00fff : Reserved
ff000000-ffffffff : Reserved
  ff000000-ffffffff : pnp 00:04
100000000-85fffffff : System RAM
4000000000-7fffffffff : PCI Bus 0000:00
  4000000000-4011ffffff : PCI Bus 0000:02
    4000000000-400fffffff : 0000:02:00.0
    4010000000-4011ffffff : 0000:02:00.0
  4012000000-40121fffff : PCI Bus 0000:09
  4012200000-4012200fff : 0000:00:15.0
  4012201000-4012201fff : 0000:00:15.1
  4012202000-4012202fff : 0000:00:15.2
  4020000000-4031ffffff : PCI Bus 0000:01
    4020000000-402fffffff : 0000:01:00.0
    4030000000-4031ffffff : 0000:01:00.0
  4032000000-40320fffff : 0000:00:1f.3
  4032100000-403210ffff : 0000:00:14.0
    4032100000-403210ffff : xhci-hcd
  4032110000-4032113fff : 0000:00:1f.3
  4032114000-4032117fff : 0000:00:14.2
  4032118000-40321180ff : 0000:00:1f.4
  4032119000-4032119fff : 0000:00:16.0
  403211d000-403211dfff : 0000:00:14.2

Feb 27 13:47:31 IchiTheTower kernel: efifb: probing for efifb
Feb 27 13:47:31 IchiTheTower kernel: efifb: framebuffer at 0x4020000000, using 6144k, total 6144k

 

  4020000000-4031ffffff : PCI Bus 0000:01
    4020000000-402fffffff : 0000:01:00.0
    4030000000-4031ffffff : 0000:01:00.0

 

From the logs efifb seems to be assigned at 0x4020000000, but in iomem there's no trace of efifb in that range of addresses.

 

I don't think that assigning a vbios could help, since the issue here is that memory is already in use.

Logs say that

Feb 28 08:39:48 IchiTheTower kernel: vfio-pci 0000:01:00.0: BAR 1: can't reserve [mem 0x4020000000-0x402fffffff 64bit pref]

vfio can't reserve memory 0x4020000000-0x402fffffff, which from the logs it's assigned to efifb, but as I said no trace of efifb in memory.

 

efifb should be completely disabled with video=efifb:off, but in this case something odd is happening.

 

Can't help more with this..

 

As a last resort:

1. backup your unraid usb key so you can revert changes in case of issues

2. since efifb seems to be the issue and since it starts only if unraid is booted in uefi mode, I would try to disable UEFI boot mode for unraid; note: you may need to enable csm in your bios to be able to boot legacy bios oses. By this way efifb should be out of the game.

Try to see if you can get a video output, if it still doesn't work you you want to try this, attach new diagnostics after booting in legacy mode instead of uefi.

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.