Muokkaa

Jaa


Join a Linux VM to a Microsoft Entra Domain

Joining a Linux virtual machine (VM) to an 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