If you're upgrading from Windows Server 2008 R2, I would recommend planning a migration rather than expecting a direct in-place upgrade.
A few points to consider:
A direct in-place upgrade from Windows Server 2008 R2 to Windows Server 2022 is not supported.
If an in-place upgrade is required, you'll need to follow a supported upgrade path through intermediate versions.
Before upgrading, verify that all installed applications, drivers, and server roles are supported on the target Windows Server version.
Create a full system backup (or VM snapshot if it's virtualized) before making any changes.
For production environments, deploying a new Windows Server 2022 system and migrating roles, applications, and data is generally the safer and more reliable approach than performing multiple in-place upgrades.
If you can share whether this server is physical or virtual, and which roles it currently hosts (such as Active Directory, File Server, IIS, SQL Server, etc.), it will be easier to recommend the best upgrade strategy.