This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
If you are trying to install Windows 11 on Hyper-V on a Windows 10 computer but getting different problems, here is a simple solution to fix some of them. You have to ...