Installing Windows Server VM - Amauryeen/EPHEC_stage GitHub Wiki
Installing a Windows Server will be useful. We'll use it as a DNS server and it will manage the users and their credentials.
Prerequisites
- Have a VM orchestrator. I will use VMWare ESXi, version
DellEMC-ESXi-6.7U3-18828794-A16 - Download a Windows Server image. I will use
SERVER_EVAL_x64FRE_en-us.iso
Creating the VM
- Open
VMWare ESXi - Open
Virtual Machines - Click on
Create / Register VM - In
Select creation type, selectCreate a new virtual machine - In
Select a name and guest OS- Enter a name for the VM
- Set
CompatibilitytoESXi 7.0 U2 virtual machine - Set
Guest OS familytoWindows - Set
Guest OS versiontoMicrosoft Windows Server 2022 (64-bit)
- In
Select storage, choose the appropriate datastore - In
Customize settings- Set
CPUto2 - Set
Memoryto4096MB - Set
Hard disk 1to40GB - Set
Network Adapter 1to the appropriate network (must have Internet) - Set
CD/DVD Drive 1toDatastore ISO file- Click on
Upload - Upload
SERVER_EVAL_x64FRE_en-us.isoin the datastore then select it
- Click on
- Set
- In
Ready to complete, review the settings then clickFinish
Your configuration should look similar to this.
Installing Windows Server
- Power on the newly created VM
- Click on
Console - Wait for the VM to boot until you see a configuration screen
- Set
Language to installtoEnglish (United States) - Set
Keyboard or input methodto the appropriate value
- Set
- Click on
Install now - Select
Windows Server 2022 Standard Evaluation (Desktop Experience) - Accept the notices and license terms
- Select
Custom: Install Microsoft Server Operating System only (advanced) - Select
Drive 0 Unallocated Space - Windows Server is installing, give it a few minutes
- In
Customize settings, set a password for the administrator account
Windows Server is now installed and ready to use.
Configuring Windows Server
- Install
VMWare Tools- Open
VMWare ESXi - Click on the newly created VM
- Click on
Actions - Click on
Guest OS - Click on
Install VMWare Tools - In the VM
Console, open theFile Explorer, open theD:drive and execute thesetupfile. ClickNextmultiple times until it installs. - Restart the VM
- Open
- Define the network information
- Right-click on the Windows icon
- Click on
Settings - Click on
Network & Internet - Click on
Ethernet - Click on
Change adapter options - Right-click on
Ethernet0then click onProperties - Select
Internet Protocol Version 4 (TCP/IPv4)then click onProperties - Fill out a static IP address for the VM
- Fill out the DNS information
- Preferred:
127.0.0.1 - Alternate:
1.1.1.1
- Preferred:
- Click
OK. A blue window will appear on the right side, click onYes
- Enable necessary features
- Open
Server Manager - Click on
Manage - Click on
Add Roles and Features - In
Installation Type, selectRole-based or feature-based installation - In
Server Selection, select the current machine - In
Server Roles, selectActive Directory Domain Services&DNS Server - Go to
Confirmationthen clickInstall
- Open
- Promote the machine to a
Domain Controller- Click on the flag on the left of
Manage - In
Post-deployment Configuration, clickPromote this server to a domain controller - In
Deployment Configuration, selectAdd a new forestand fill out the desired domain name,shibboleth.lab - In
Domain Controller Options, fill out a password for the DSRM - In
Prerequisites Options, clickInstallwhen you're ready - Once completed, the machine will reboot
- Click on the flag on the left of
- Configure the
DNS- Open
Server Manager - Click on
Tools - Click on
DNS - Select your machine
- Open
Forward Lookup Zones - Open
shibboleth.lab - Add new
Arecords which will use the IP addresses of the machinesws.shibboleth.labidp.shibboleth.labsp.shibboleth.lab
- Open
- Create a user to connect the Identity Provider to the AD
- Open
Server Manager - Click on
Tools - Click on
Active Directory Users and Computers - Open
shibboleth.lab - Open
Users - Click on
Actions - In
New, click onUser - Set
First nametoIdPUser - Set
User logon nametoidpuser - Set a password. Keep it, you'll need it for later
- Open
- Changing the machine's hostname
- Open
Server Manager - Go in
Local Server - Click on
Computer name - Click on
Change... - Set
Computer nametows - Click on
OK - Reboot the machine
- Open