If using Standard license then the host will need to be licensed for each OS used. If using a (for example) a 2022 DataCenter host then you can utilize AVMA activation to where you could have guests ranging from 2012 R2 up to 2022 both Standdard and DataCenter editions.
Some general info
- Each host needs to be licensed.
- A minimum of 8 core licenses is required for each physical processor and a minimum of 16 core licenses is required for each server.
- Core licenses are sold in packs of two.
- Standard Edition provides rights for up to 2 Operating System Environments or Windows Servers containers with Hyper-V isolation when all physical cores in the server are licensed. For each additional 1 or 2 VMs, all the physical cores in the server must be licensed again.
- DataCenter Edition provides rights for unlimited Operating System Environments or Windows Servers containers with Hyper-V isolation when all physical cores in the server are licensed.
AVMA keys can be used only when the host is DataCenter edition
https://learn.microsoft.com/en-us/windows-server/get-started/automatic-vm-activation
--please don't forget to upvote
and Accept as answer
if the reply is helpful--