Join Ubuntu 24.04 LTS Desktop to Active Directory

Install packages:

$ sudo apt install adsys realmd sssd

Join the machine:

$ sudo realm join -v -U <my-admin-user>

Edit your config /etc/sssd/sssd.conf and add or change following lines to your domain config:

ad_gpo_ignore_unreadable = True
use_fully_qualified_names = False
fallback_homedir = %u

Enable home folder creation in /etc/pam.d/common-session:

session optional pam_mkhomedir.so skel=/etc/skel umask=0077

Reboot machine and good to go.

How to delete Windows Recovery Partition

Latest Windows versions place the recovery partition after the main partition which prevents disk resizing in guest installations. Her how to delete the partition:

Open PowerShell in Administrative Mode and execute:

diskpart
list volumes
select volume <number of volume>
delete volume override