Hyper-V Debian VM Blank Screen Issue with NVIDIA GPU Passthrough

Anonymous
2024-01-17T15:07:57+00:00

Hello Community,

I am currently facing an issue with my Debian 10 Hyper-V virtual machine when attempting to passthrough an NVIDIA GPU from the Windows host. I have set up the VM, mounted the NVIDIA GPU using DDA (Discrete Device Assignment), and installed the XFCE desktop environment. However, upon boot, the screen goes blank, and the desktop environment fails to launch.

Debian VM Host System GRUB menu.

Debian VM Host System Blank Screen Issue.

Here's a brief summary of the issue:

  • Host System: Windows with Hyper-V
  • VM Guest System: Debian 10
  • Debian Desktop Environment: XFCE
  • GPU Passthrough: NVIDIA GPU using DDA

Issue Description:

After mounting the NVIDIA GPU to the Debian VM, the desktop environment fails to launch, and the screen remains blank.
However, I can switch to TTY mode (terminal) using Ctrl + Alt + F1, where I can verify that services like Light Display Manager are running correctly.

Additional Information:

Debian 10 VM works normally without GPU passthrough.

I dismounted the GPUs from the Debian VM and rebooted the system; it boots normally in the XFCE desktop environment.
Please check the following screenshot.

If anyone has encountered a similar problem or has expertise in Hyper-V GPU passthrough with Debian, I would greatly appreciate any insights or guidance on resolving this issue.

Thank you in advance for your help.

Best regards,

Samadhan

Windows for business Windows Server Storage high availability Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-01-18T02:10:12+00:00

    Hi Samadhan,

    Hope you're doing well.

    Based on your description, it seems like the desktop environment fails to launch after mounting the NVIDIA GPU to the Debian VM, and the screen remains blank. However, you can switch to TTY mode (terminal) using Ctrl + Alt + F1, where you can verify that services like Light Display Manager are running correctly.

    You can try the following steps:

    1. Open the GRUB configuration file "/etc/default/grub" using a text editor.
    2. Remove the "nomodeset" parameter from the "GRUB_CMDLINE_LINUX_DEFAULT" line.
    3. Save the file and exit the text editor.
    4. Run the command "sudo update-grub" to update the GRUB configuration.
    5. Reboot the system and check if the issue is resolved.

    Due to the limitation of forum, I cannot reproduce this issue. If you need to check this issue further, you can choose to go to Microsoft Customer Service Center to open a ticket so that with their permission level and resource, Microsoft could provide you with better help on your request.

    I hope this helps!

    Best Regards

    0 comments No comments
  2. Anonymous
    2024-01-18T10:00:07+00:00

    Existing grub file:


    GRUB_DEFAULT=0 
    
    GRUB_TIMEOUT=5 
    
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` 
    
    GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset net.ifnames=0" 
    
    GRUB_CMDLINE_LINUX="" 
    

    Update grub file as below:

    But the issue is not resolved, so I switch to the TTY terminal and check the logs:

    lightdm.service is active (running), but it shows the following logs:

    Jan 18 18:46:46 DEB-HYPV-cf6eeca0f4c80f48bdfc2fb3c3dcbce1 systemd[1]: Starting Light Display Manager... 
    
    Jan 18 18:46:46 DEB-HYPV-cf6eeca0f4c80f48bdfc2fb3c3dcbce1 lightdm[748]: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.Accounts.Error.PermissionDenied: Not authorized: G 
    
    Jan 18 18:46:46 DEB-HYPV-cf6eeca0f4c80f48bdfc2fb3c3dcbce1 systemd[1]: Started Light Display Manager. 
    
    Jan 18 18:46:47 DEB-HYPV-cf6eeca0f4c80f48bdfc2fb3c3dcbce1 lightdm[1414]: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.Accounts.Error.PermissionDenied: Not authorized: 
    
    Jan 18 18:46:47 DEB-HYPV-cf6eeca0f4c80f48bdfc2fb3c3dcbce1 lightdm[1414]: pam_unix(lightdm-autologin:session): session opened for user scorer by (uid=0) 
    
    Jan 18 18:46:48 DEB-HYPV-cf6eeca0f4c80f48bdfc2fb3c3dcbce1 lightdm[748]: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.Accounts.Error.PermissionDenied: Not authorized: G
    

    0 comments No comments
  3. Anonymous
    2024-01-19T02:43:17+00:00

    Hi Samadhan,

    Thanks for the update.

    It seems that you lack the permissions that cause this error. Please try to grant this account the permission or check if the account has enough permission.

    At the same, due to the limitation of forum, I cannot reproduce this issue. If you need to check this issue further, you can choose to go to Microsoft Customer Service Center to open a ticket so that with their permission level and resource, Microsoft could provide you with better help on your request.

    I hope this helps!

    Best Regards

    0 comments No comments