There is a fantastic PowerShell module called AutomatedLab that can enable you to easily build out a lab for the specific scenario you need to test. Even better is the module comes with 70 sample scripts that you can start with and adapt to meet your needs.
The module gives you the option to work with Hyper-V or VMWare. I will say most of the examples are using Hyper-V, and that is what I’ll be using also.
For my lab I want a SQL Server 2019 instance joined to a domain, and a separate client machine that I can manage the SQL Server from. On the client I would need to be able to connect to the internet as I want to be able to download PowerShell modules from the gallery easily.
It’s about time for me to rebuild my lab, so I’ll need to check that out.