Assuming a DataCenter host you can use AVMA keys
https://learn.microsoft.com/en-us/windows-server/get-started/automatic-vm-activation#avma-keys
if the host were Standard then you can simply use the host product key to activate guests.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--