Question: how to install domain controller role on server core?
Answer: Promote Server Core to a domain controller. By default, server core starts in command line (cmd). ... 
Install needed server feature/role. Before a server can be promoted to a domain controller, the Active Directory Domain Services Role need to be installed. ... 
Promote server to a domain controller. ... 
Verification.