There are Steps to achieve this!
As we are all know that AX can only be installed on System\Servers in Domain, let me show me how to get the system in domain.
First, Go to System Properties > Advanced Tab > Environment Variables > System Variables then click New.
Put "UserDnsDomain" on the Variable name. Put any value on the variable value. As below Screen shots->
Run Registry Editor or regedit (windows key + r), command windows will open type regedit and press enter.
Go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName>> put any value on the value data.
Note: Playing with regedit may corrupt the OS.
Note: After Installing AX, change your ActiveComputerName in the Registry to your default computer name. Use the Computer Name in installing the AOS (computer name before changing the registry.) then restart.
Install of SQL on that system: follow the link.
Install Microsoft Dynamics AX: follow the link.
Post the errors if any i will reply ASAP.
Thanks & Regards,