Skip to content

Conversation

@hehe7318
Copy link
Contributor

@hehe7318 hehe7318 commented Dec 5, 2025

Description of changes

  • Disable Wayland in GDM to ensure Xorg is used on headless GPU instances. Ubuntu 22.04+ defaults to Wayland which causes GDM startup issues with NVIDIA drivers and NICE DCV. Force Xorg by setting WaylandEnable=false in /etc/gdm3/custom.conf.

Tests

  • Kitchen tests passed.
  • The following integ tests also passed:
{%- import 'common.jinja2' as common with context -%}
{{- common.OSS_COMMERCIAL_X86.append("rocky8") or "" -}}
{{- common.OSS_COMMERCIAL_X86.append("rocky9") or "" -}}
---
test-suites:
  dcv:
    test_dcv.py::test_dcv_configuration:
      dimensions:
        # DCV on GPU enabled instance
        - regions: ["use1-az6"]
          instances: ["g4dn.2xlarge"]
          oss: ["rocky8"]
          schedulers: ["slurm"]
        # DCV on ARM + GPU
        - regions: ["use1-az6"]
          instances: ["g5g.2xlarge"]
          oss: ["rhel8"]
          schedulers: ["slurm"]
    test_dcv.py::test_dcv_with_remote_access:
      dimensions:
        - regions: ["ap-southeast-2"]
          instances: {{ common.INSTANCES_DEFAULT_X86 }}
          oss: [{{ DCV_OS_X86_1 }}]
          schedulers: ["slurm"]

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Disable Wayland in GDM to ensure Xorg is used on headless GPU instances.
Ubuntu 22.04+ defaults to Wayland which causes GDM startup issues with
NVIDIA drivers and NICE DCV. Force Xorg by setting WaylandEnable=false
in /etc/gdm3/custom.conf.
@hehe7318 hehe7318 requested review from a team as code owners December 5, 2025 18:34
@hehe7318 hehe7318 enabled auto-merge (squash) December 5, 2025 18:35
# This is required for Ubuntu 22.04+ where Wayland is the default
# Without this, GDM won't start Xorg on headless GPU instances
def disable_wayland
bash 'Disable Wayland in GDM' do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a Unit Test for this as well as the check of which server Type we are using as part of Kitchen test?

@hehe7318 hehe7318 disabled auto-merge December 5, 2025 18:41
@hehe7318 hehe7318 merged commit 48044c2 into aws:develop Dec 5, 2025
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants