Consider the following requirements:
The VM must be part of a domain.
1) You can choose to join/add the VM to a Domain, then install.
2) You can make the VM a Domain Controller.
*If you change the domain settings after SQL server is installed, you may have to remove and re-add all SQL user accounts (other than SA).