Using Hyper-V with a CentOS8 guest, color rendering is broken/transparent

Danny Holstein 0 Reputation points
2024-03-19T21:53:01.8133333+00:00

Within my CentOS8 guest, shading and other colors don't render, they are transparent to the window behind them:
render

The hybrid graphics consists of: graphics

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,522 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. essjae 251 Reputation points
    2024-03-20T20:40:28.69+00:00

    CentOS 8 was discontinued 3 years ago. If the kernel isn't being updated, there's not much to do since any updates would be on the OS/kernel.

    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,311 Reputation points Microsoft Vendor
    2024-03-21T08:00:44.03+00:00

    Hi Danny,

    Thanks for your post. Before moving on, would you please check if you have met the requirements for the Hyper-V supported CentOS: Supported CentOS and Red Hat Enterprise Linux virtual machines on Hyper-V | Microsoft Learn

    Also, please see the guidelines for Hyper-V with CentOS:

    • 2 vCPUs, no reservation. All modern operating systems work noticeably better when they can schedule two threads as opposed to one. You can turn it up later if you’re deployment needs more.
    • Dynamic Memory on; 512MB startup memory, 256MB minimum memory, 1GB maximum memory. You can always adjust Dynamic Memory’s maximum upward, even when the VM is active. Start low.
    • 40GB disk is probably much more than you’ll ever need. I use a dynamically expanding VHDX because there’s no reason not to. The published best practice is to create this with a forced 1 megabyte block size, which must be done in PowerShell. I didn’t do this on my first several Linux VMs and notice that they do use several gigabytes more space, although still well under 10 apiece. I leave the choice to you.
    • I had troubles using Generation 2 VMs with Ubuntu Server, but I’m having better luck with CentOS. If you use Generation 2 with your CentOS VMs on Hyper-V 2012 R2/8.1 or earlier, remember to disable Secure Boot. If using 2016, you can leave Secure Boot enabled as long as you select the “Microsoft Certification Authority”.
    • If your Hyper-V host is a member of a failover cluster and the Linux VM will be HA, use a static MAC address. Linux doesn’t respond well when its MAC addresses change.

    Reference: CentOS Linux on Hyper-V - A Complete Guide (altaro.com)

    *Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. *

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.