SungHoon_Kim

Creating an ALL-IN-ONE VM Image - Part 1

Blog Post created by SungHoon_Kim Employee on Oct 26, 2015

This is something I like to do once in a while. It takes long time to setup everything but to me it is a hobby. It is like putting zigsaw puzzles.

 

WARNING: THIS IS NOT SUPPORTED! THIS IS ONLY TO FULFILL YOUR CURIOSITY AND SATISFY YOUR SPIRIT GOING AGAINST ALL ODDS. THIS IS NOT A DEMONSTRATION ALLOWING YOU TO RUN SUCH CONFIGURATION IN YOUR DEV/TEST/QA/PROD ENVIRONMENT.

 

Following components will be installed.

 

01. Install OS (Windows 2008 R2 - English)

02. Microsoft Loopback Adapter

03. Active Directory

04. DNS

05. IIS

06. Certificate Authority

07. MSSQL 2012

08. JDK 1.7.0_80 (32bit and 64bit)

09. NewAtlanta ServletExec 6.0

10. ASF Apache

11. CA Directory

12. Oracle Directory Server 11g

13. CA Single Sign-On Policy Server

14. CA Single Sign-On AdminUI

15. CA Single Sign-On Web Agent/Option Pack

16. CA Single Sign-On Secure Proxy Server

17. CABI 3.3

 

Some trivial steps are skipped such as installing the OS and promoting to a Domain Controller.

 

01. Install OS (Windows 2008 R2 - English)

 

HDD is 80GB

RAM is 6GB

Named the host as "TESTMC1" and reboot.

 

02. Microsoft Loopback Adapter

 

Run "hdwwiz" and follow the steps below.

 

Assign static IP to those adapters.

 

IP: 192.168.201.101

Subnet: 255.255.255.0

DNS: 127.0.0.1

 

IP: 192.168.201.102

Subnet: 255.255.255.0

DNS: 127.0.0.1

 

IP: 192.168.201.103

Subnet: 255.255.255.0

DNS: 127.0.0.1

 

IP: 192.168.201.104

Subnet: 255.255.255.0

DNS: 127.0.0.1

 

The Bridged one can be DHCP.

 

 

03. Active Directory

 

Promote to Domain Controller and reboot.

NETBIOS Name: SSO

Domain: sso.lab

Functionality Level: Windows 2008 R2

 

 

04. DNS

 

Create ReverseDNS Lookup Zones.

 

Add entries to "Forward Lookup Zones".

Select "New Host" entry.

 

You have now created a host entry for "www.sso.lab".

Repeat the same steps for the other host names as below.

cadir.sso.lab     192.168.201.102

mssql.sso.lab   192.168.201.103

 

Create a new "Forward Lookup Zone" called. "partner.lab".

 

 

Create new host entry in the "partner.lab" zone.

 

 

Check the "Reverse Lookup Zones" to see if all the entries are mapped to the desired IP address.

It would be pointing to the default "testmc1" entry so it need to be re-mapped.

 

Disable Automatic Updates to DNS entries. Otherwise, all the records can be updated with the physical hostname every time you reboot.

 

Right click on the zone and select "Properties"

At "Dynamic updates", select "None".

 

Forward Lookup Zones are okay as the manually entered ones will remain unchanged.

But you can still set it not to update dynamically. This is optional.

In case if you need to add more hostnames or IP address, please repeat the steps above.

The reason I am using separate IP with loopback adapters is to make it look more realistic, for example when you run netstat it will show different IP for different services which is easier to understand.

However, using this loopback adapter has its limitations, for example, you can only perform tests involving servers listening on those loopback adapters on this machine only. You won't be able to test remotely as your external client will not be able to resolve those DNS names or access the IP address.

 

 

This concludes Part 1 of ALL IN ONE Image.

I found during this article that there is a limit of 50 photos in each article so I am splitting contents to multiple posts.

Outcomes