Create VMS on Host machine, giving them Internal Network and Internet Access, Installing AD, DNS and DHCP on VM

1.      Create VMs
Let’s start

1.    Create VMs

To create virtual machines, make sure that Enough Ram is installed and space is available on Host system. Follow the steps given below;
1.      VMware Workstation, (Paid but also available its free version for non-commercial usage) Or
2.      VirtualBox. (Light weight and free, I personally recommend this one to use)
3.      ISO file of Windows Server 2016 and 2012 (Standard or Evaluation)
4.      ISO file of Windows 8 or 7
Install VirtualBox, its installation is very easy just click on setup file and follow the installation wizard.
Once, VirtualBox is installed open it and create Virtual machines, to do so follow the following steps;
·        Click on New button on VirtualBox, it will open a form where you will be asked for VM name and some other basic setting like Ram etc.
·        Once all information is given, click on Create button which will lead you to another form that will ask for location and some other basic setting like VM File size and type. Click on Create button.
·        It will create a new virtual machine that will be shown on left panel of VirtualBox, click on that new machine and click on start button which will open a new form that will ask for installation media, ISO file provide that and installation will be started.
·        At the end of server/Window Installation you will be asked for user name and password. That user will be local administrator of the system.
·        Follow above steps 1-4 for creating virtual machines
See below snap



2.    Internet Access and Internal Network setup

Login on virtual machine and check internet is working or not, we need internet on virtual machines for updates and some other tasks. If internet is not working then go to setting Click on Network and Select NAT as Network Adapter for the VM. See below snap

·        Open VirtualBox and click on file from menu then click on Host Network Manager that will open a new form where you can create Ethernet Adapter.
·        Configure IPV4 Address for the new created Adapter, Do some R & D on these configurations.
·        Disable DHCP checkbox for now we don’t need it.
See snap below




I have assigned following IPs that might help you
#
Machine Name
IP
Comment if any
1
Virtual Ethernet Adapter
192.168.2.1
Used this ip as Default gateway on other vms
2
Windows Server 2016
192.168.2.16

3
Windows Server 2012
192.168.2.12

4
Windows 8
192.168.2.8

5
Windows 7
192.168.2.7


Now All VMs are on the same network but still they will not be able to ping each other, for that you need small setting in Firewall,
·        Click on the Start Menu
·        Go to Control Panel
·        Open Windows Firewall
·        Open Advanced Settings
·        Select Inbound Rules over in the left window pane
·        In the right window pane scroll down to File and Printer Sharing (Echo Request - ICMPv4-In). You will see two of these listed. The first one for enabling this rule to for a domain profile. The second one is for enabling this rule for public/private profile. Unless your PC is on a domain, select the second of these two rules.
·        Right click your mouse on File and Printer Sharing (Echo Request - ICMPv4-In) Profile: Private, Public and select Enable Rule. --You will now be able to ping your host from either of your virtual machines.
Reference:
https://superuser.com/questions/1214547/unable-to-ping-from-vms-to-host-machine
Login on Windows server 2012 which is one of the virtual machine created by following above steps and follow the steps given below but before that understand basic knowledge about these services
Active Directory: It is a service to allow user, group of organization unit and assign resources to these users across the network
DNS: Domain Name System (DNS) translates host names to IP addresses and vice versa.
DHCP: DHCP dynamically assign an Internet Protocol (IP) address to any device
·        Give a suitable name to the server by renaming server name
·        Open server manager program and Click on Manage button then click on Add role and features
·        It will Open a wizard, click on next, Choose Role-based or Feature-based installation and click next
·        Select server from the server pool and click on next button
·        Server Roles will be shown tick checkboxes of the AD, DHCP and DNS services
·        Click next until Install button is enabled
·        During installation it will asked for domain and NetBios name and some other basic setting, It will also execute prerequisite check, Solved the errors first if shown in prerequisite check, ignore warning for now.
Reference:
6.    Joining VMS with Domain
Now login on virtual machine and join it with domain just setup above, to do so make sure correct DNS ip is configured on Ethernet adapter.
Click on my computer, go to properties click on change setting, Click Domain setting from the panel and write down your domain here.

Click on OK and give restart to your system.

Comments