Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 2.54 KB

File metadata and controls

60 lines (40 loc) · 2.54 KB
title Join a Linux VM to a Microsoft Entra Domain
description Describes how to join a Linux VM to a Microsoft Entra Domain
services azure-netapp-files
author b-ahibbard
ms.service azure-netapp-files
ms.custom
linux-related-content
build-2025
ms.topic how-to
ms.date 03/01/2025
ms.author anfdocs

Join a Linux VM to a Microsoft Entra Domain

Joining a Linux virtual machine (VM) to a Microsoft Entra Domain Services managed domain enables users to sign into to VMs with one set of credentials. Once joined, the user accounts and credentials can be used to sign in, access, and manage servers.

Refer to Understand guidelines for Active Directory Domain Services site design and planning to learn more about using Active Directory in Azure NetApp Files.

Steps

  1. Configure /etc/resolv.conf with the proper DNS server.

    For example:

    [root@reddoc cbs]# cat /etc/resolv.conf
    search contoso.com
    nameserver 10.6.1.4(private IP)

  2. Add the NFS client record in the DNS server for the DNS forward and reverse lookup zone.

  3. To verify DNS, use the following commands from the NFS client:

    # nslookup [hostname/FQDN of NFS client(s)]
    # nslookup [IP address of NFS client(s)]

  4. Install packages:

    yum update
    sudo yum -y install realmd sssd adcli samba-common krb5-workstation chrony nfs-utils

  5. Configure the NTP client.

    RHEL 8 uses chrony by default. Following the configuration guidelines in Using the Chrony suite to configure NTP.

  6. Join the Active Directory domain:

    sudo realm join $DOMAIN.NAME -U $SERVICEACCOUNT --computer-ou="OU=$YOUROU"

    For example:

    sudo realm join CONTOSO.COM -U ad_admin --computer-ou="CN=Computers"

Next steps