Hello
Thank you for your question and reaching out.
I am afraid that both are legacy OS and may not work into Hyper-V or any other Hypervisor. However Please note that to install any OS you will need its .iso file , Hence please try to get .iso file if they are available and create Gen-1 type VM to install legacy OS
--If the reply is helpful, please Upvote and Accept as answer--