Active directory installation with dns, esxi datastore add and vm creation for AD, Windows server installation for AD

Md. Mahim Bin Firoj
7 min readJan 29, 2024

--

Our motive is to install AD on a windows server with dns feature.

Key steps:

  • In esxi, datastore creation.
  • VM creation for AD.
  • Install windows server 20xx.
  • Patch the server and install AD with DNS.

We can see that our hard drive is present there. We have configured raid 1.

https://www.youtube.com/watch?v=qoDjOClzqgA&ab_channel=TechNV
Now follow the above link to create the datastore. We followed exact same steps.

We have created the datastore1.

Now click on Datastore browser.

We have created an ISO directory so that we can upload windows server iso here. Click on the Upload button to upload windows server 2022 iso here.

Now lets create the vm.

Click Next
From here the vm will take its storage.

We have given 8 core and enable cpu hot plug which means if we need to increase the cpu core further in future, we can do that without turning off the vm.

Here also memory hot plug we enabled the same concept. Additionally we reserved 16 GB ram on it, meaning the system will get fixed 16 GB ram for it.

Thin provisioned means, if it needs more space in future then it will take that from the rest available storage. Also despite of taking all 500 GB at a time, it will take only what it needs currently. For example, it requires only 60 GB now, it will take 60 GB now. As per the need it will gradually increase.

As the windows server 2022 iso upload is not completed yet, so click on Next > Finish. We will do that later.

ISO uploaded successfully. Now right click the vm and click on Edit settings.

Point your iso and click on Select.

Tick the box.

Then click save and power on the vm.

Power on the vm and press any key to get into the setup section.
Click Next
Click Install now
Click Next
Click Next

After installing is done and the system take reboots, in the mean time, disconnect the iso file from the vm edit settings option.

Set the local admin password

Login there. Change time zone. Install vmware tools. Change server name.

Configure appropriate ip and patch the server. Disable ipv6.

This concludes the vm creation and server installation part.

Now we will make the server as AD with DNS. Now we will login to the server using RDP.

Enabling RDP

Before starts, we will set the server ip in the primary dns server field. This is the prerequisite. Also make sure, you don’t have any pending update. If the server needs restart, restart it.

Click Next
Click Add Features
Click Next
Click Next

Now click on Install.

Click there to promote this server as DC
Provide DSRM password

Click next. Dns will be created automatically.

Click Next
See dns is installing

Your server will be rebooted automatically.

Now if you don’t use ./administrator then you need to use administrator@nulab.local to login. Your local admin password is same as before.

You need to change the loopback ip with your server ip.

Now we will configure the reverse dns zone or lookup. Forward dns lookup is created at the time to installation. FDZ is for name to ip resolution and RDZ is for ip to name resolution.

Give the ip up to the network id which is 12

Done.

Only this time we need to update the PTR record. From the next it will be done automatically.

We can see that in reverse lookup zone, entry has been created.

Now lets understand the concept of Alias or CNAME record.

Say we want to call our dc01 server as web.

We can see before configuring the alias, when we call dc01 then only dc01’s ip is shown.

When we give web, then nothing returns.

Now right click and select New Alias CNAME. Set the alias name as web. Click on Browse.

Now when you give web, then both web and dc01 returns.

I hope you like this. I would like to thank my colleague Mohammad Alamin to help me write up this blog. Please subscribe below if you find this useful.

LinkedIn:

https://www.linkedin.com/in/md-mahimbin-firoj-7b8a5a113/

YouTube:

https://www.youtube.com/@mahimfiroj1802/videos

--

--