VMware template server 2012 best practice

Virtual Hardware (VMX) Template configuration

Hardware

Value

Memory

4 GB

CPU’s

Number of virtual sockets: 1
Number of cores per socket: 2

VMCI device

Restricted

SCSI Controller 0
Hard disk 1

50 GB lazy zeroed or

50 GB Thin (but performance is lower) or

50 GB eager zeroed (performance is best, but most storage waste)

CD/DVD Drive 1

Client Device

Floppy Drive 1

Removed

Network Adapter 1

VMXNET3, network: VM Network with DHCP (for joining domain)

General Options

OS: Microsoft Windows Server 2012 R2 (64-bit)

 

 

 

Microsoft Windows Server 2012 R2 template configuration

– Always install the latest VMware Tools

Disable IPv6

image

 

– Change the CD/DVD Drive 1 from drive letter D:\ to Z:\

image

Install VMware display driver: VMware SVGA 3D (Microsoft Corporation – WDDM)

image

Driver located: C:\Program Files\Common Files\VMware\Drivers\wddm_video\

Enable Remote Desktop Protocol: Allow connections from computers running Remote Desktop with Network Level Authentication (recommended)

image

– Computer Name: change full computer name to W2012R2TMPL

image

– Windows Updates: Install all available Windows Updates

image

 

– (Optional; security risk!!) Disable UAC: Never notify when: Programs try to install software or make changes to my computer + I make changes to Windows setting

image

– Notification bar: Always show all icons and notifications on the taskbar

image

 

– Internet Explorer: Turn Internet Explorer Enhanced Security off for Administrators. Leave it On for users.

1. On the Windows Server 2012 server desktop, locate and start the Server Manager.

2. Select Local Server (The server you are currently on and the one that needs IE ESC turned off)

ximage

 

– Account: Select for local Administrator account: Password never expires

image

Pagefile:  Restrict pagefile size to max 4GB

Performance Options: Under the System Properties>performance opton>Visual Effects tab, select Adjust for best performance

 

 

 

 

http://2.bp.blogspot.com/-kNlf7aZ-7ms/UqWoJAVOj6I/AAAAAAAAAJo/dTajhB3HFwU/s1600/11.png

Firewall: Turn the Windows Firewall off

 

http://4.bp.blogspot.com/-ERrYV8ONV7I/UqWoJ2rDM6I/AAAAAAAAAJ4/miVcbHpe3d0/s320/14.jpg

 

 

Indexing: Go to the properties of the C drive and uncheck the option to allow files to be indexed

 

http://1.bp.blogspot.com/-8AgyhRSQcFo/UqWoKKw8S7I/AAAAAAAAAKQ/D4pu7Pv5yyk/s320/16.jpg

 

Hybernation: Go to the cmd prompt and type powercfg.exe -h off to disable hibernation. This command also deletes the hiberfile.sys from C:\

 

 

http://3.bp.blogspot.com/-xBOjmVQkhDQ/UqWoKggFKgI/AAAAAAAAAKM/LY1BcKTOc5U/s320/17.jpg

 

– Power Option: customize power plan to: High performance

image

– Feature: install features

Bginfo :Installeer BGinfo

Download bginfo from sysinternals

You simply place the unzipped Bginfo.exe to c:\bginfo folder for example

Open bginfo.exe and create an template file

from File menu do a Save As to save the *.bgi file to c:\bginfo.

Then you can create a simple batch file, which will launch that *.bgi file on logon

@echo off
cd
CALL “C:\bginfo\bginfo.exe” “C:\bginfo\YOUR.bgi” /timer:0 /nolicprompt

Place all the batchfile in c:\Bginfo

Files Needed there are:

  • Bginfo.exe
  • YOUR.bgi (the personalized config)
  • file.bat (your script)

Modify to batch file to match your structure and naming convention.

Copy a shortcut to the file.bat to:

c:Documents and Settings\All Users\Start Menu\Programs\Startup

That’s the location for startup programs for all users. That’s all.

BGinfo in Domain environment via GPO

Bginfo when used in domain environment, it’s certainly usefull to configure a GPO whcih calls the BAT script when user logs on. Simply create a GPO or modify some existing GPO if you like. The level where you need to configure that is:

User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff) and then double-click on Logon and browse via network to the batch file.

 Finalize Windows 2012R2 template procedure

Clear Microsoft Event Logs: System, Security, Application
Defragment the C drive
Shutdown Windows 2012R2 Template server

 

Customization Specifications Manager

– Computer Name: Use virtual machine name. This because I use sometimes scripts to deploy multiple VM’s with PowerCLI

image

 

– Network: configure default network settings with static

image

image

image

 

– Workgroup or Domain: configure Windows Server Domain

image

 

Operation System Options: Always select: Generate New Security ID (SID)

image

 

Geplaatst in VMware, Windows Server.