VM with black screen


MoeMoeDa

Recommended Posts

Hi,

 

I've just solved the problem of non-booting VMs, but I still got some strange issues.

 

Here are my system specs:

Z10pe-d8 ws

E5-2699 v3

32G Memory

GT 210

Colorful Geforce GTX Titan X

 

After choosing on-board video in bios, the VM booted, but I got output on the monitor only when passing through the GT 210.

 

The monitor remains black if I choose Titan X as the primary graphics card.

 

Anyone got an idea?

 

Thanks in advice!

Link to comment

Sounds like you will need to recreate the VM using OVMF instead of SeaBIOS.

 

Thank you for your reply, I'am using unRaid 6.1.8, I didn't see the options of OVMF and SeaBIOS, can you tell me where can I select OVMF?

 

Another Question, I tried to switch the GT 210 to slot 2 and Titan X to slot 4, but this time the VM won't start when passing through either graphics cards.

 

error:

2016-02-18T09:07:05.110161Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio: error opening /dev/vfio/34: Operation not permitted
2016-02-18T09:07:05.110182Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio: failed to get group 34
2016-02-18T09:07:05.110192Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Device initialization failed
2016-02-18T09:07:05.110201Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Device 'vfio-pci' could not be initialized
2016-02-18 09:07:05.165+0000: shutting down

 

and the information in system devices:

02:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
04:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
04:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1)
06:00.1 Audio device: NVIDIA Corporation Device 0fb0 (rev a1)

 

IOMMU groups:

/sys/kernel/iommu_groups/33/devices/0000:04:00.0
/sys/kernel/iommu_groups/33/devices/0000:04:00.1
/sys/kernel/iommu_groups/34/devices/0000:06:00.0
/sys/kernel/iommu_groups/34/devices/0000:06:00.1

 

Thank you for your help!!!

Link to comment

Hey All!

 

Not to Hijack but I am having a similar problem as you. Not sure if you went to the VM manager and turned on the ACS Override as people have said that has worked.

 

I'm having a different problem however, Where My videocards(in sig) are in the same IOMMU group. Is it possible to manually override this within the XML?

Link to comment

Hey All!

 

Not to Hijack but I am having a similar problem as you. Not sure if you went to the VM manager and turned on the ACS Override as people have said that has worked.

 

I'm having a different problem however, Where My videocards(in sig) are in the same IOMMU group. Is it possible to manually override this within the XML?

No - you have to be able to get the GPU's into different IOMMU groups if you want to pass them to different VM's (and thus commonly the need for the ACS override option).    Not sure if you can pass them both to the same VM if they are in the same IOMMU group.
Link to comment

Sounds like you will need to recreate the VM using OVMF instead of SeaBIOS.

 

Thank you for your reply, I'am using unRaid 6.1.8, I didn't see the options of OVMF and SeaBIOS, can you tell me where can I select OVMF?

 

Another Question, I tried to switch the GT 210 to slot 2 and Titan X to slot 4, but this time the VM won't start when passing through either graphics cards.

 

error:

2016-02-18T09:07:05.110161Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio: error opening /dev/vfio/34: Operation not permitted
2016-02-18T09:07:05.110182Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio: failed to get group 34
2016-02-18T09:07:05.110192Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Device initialization failed
2016-02-18T09:07:05.110201Z qemu-system-x86_64: -device vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Device 'vfio-pci' could not be initialized
2016-02-18 09:07:05.165+0000: shutting down

 

and the information in system devices:

02:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
04:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
04:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1)
06:00.1 Audio device: NVIDIA Corporation Device 0fb0 (rev a1)

 

IOMMU groups:

/sys/kernel/iommu_groups/33/devices/0000:04:00.0
/sys/kernel/iommu_groups/33/devices/0000:04:00.1
/sys/kernel/iommu_groups/34/devices/0000:06:00.0
/sys/kernel/iommu_groups/34/devices/0000:06:00.1

 

Thank you for your help!!!

You need to apply the hotfix for vfio found here

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.