Virtual Network

My networking setup is quite similar to the one Wictor Wilen blogged about some time ago. Each virtual machine has 3 network connections:

Type Connect at power on DHCP Subnet
LAN Segment Yes No 10.0.0.0/24
Host-Only Yes No 192.168.245.0/24
NAT No    

 

The Host-Only network is used to connect to the machines with RDP, the NAT network is used to access the internet from my machines. I only connect the NAT network when needed, e.g. to activate a machine via the internet. On my host machine, I modified my HOSTS file to include the Host-Only IP addresses.

image

One of the first things I do after I power on my virtual machines is renaming the network connections and changing the network bindings order to LAN, Host-Only and finally NAT. In Server Core you can do this via the registry.

I also change the network connections other than LAN to not register their IP address in DNS. In Server Core you can do this via netsh:

netsh interface ipv4 set dnsservers name="NAT" source=dhcp register=none

Basic machines overview

For a typical (SharePoint) setup I create the following topology:

DC – domain controller (Windows Server Core)
DB – SQL 2012 (Windows Server Core)
SP – SP2010

I’m running both my domain controller and SQL server machines on Windows Server Core. This allows me to keep a relative lightweight footprint all together. I typically configure my domain controller to use only 256 MB of RAM and my SQL server to use 1 GB. My SharePoint box will consume 4 GB.

The domain controller runs on the same disk (SSD) as the host operating system, the SQL and SP machines run on the second drive (HDD).

Domain Infrastructure

My domain controller is a Windows Server Core machine, which allows me to reuse it for different lab scenario’s.

After I renamed the machine & configured networking (see above), I proceed to create the domain. In Windows Server Core you need to do this with an unattend file.

[DCINSTALL]
InstallDNS=yes
NewDomain=forest
NewDomainDNSName=lab.thomasvochten.net
DomainNetBiosName=LAB
SiteName=Default-First-Site-Name
ReplicaOrNewDomain=domain
ForestLevel=4
DomainLevel=4
DatabasePath=c:\NTDS
LogPath=c:\NTDS
RebootOnCompletion=yes
SYSVOLPath=c:\SYSVOL
SafeModeAdminPassword=pass@word1

I open notepad on the DC, copy the text above and save it as c:\unattend.txt

Then I create my domain by running:

dcpromo /unattend:c:\unattend.txt

This will install and configure all necessary components, including the DNS server. On each server with a GUI I install the remote management tools in order to administer my AD & DNS configuration.

{ 0 comments }

My Test Environment Setup (Part 1)

May 10, 2012

I often get questions on how I have set up the virtual test environment on my laptop. As I recently repaved it completely, the time was there to record all the steps. This first post discusses the general setup and all the tweaks I make to my virtual machines. Platform & Software My laptop is [...]

Read the full article →

Speaking at Community Day 2012

May 7, 2012

The Belgian community is organizing the sixth edition of Community Day! Community Day 2012 will take place on June 21st 2012 in Utopolis Mechelen. Thanks to our sponsors, Community Day 2012 is a FREE event! 17 user groups will outperform themselves to bring you their view on Microsoft products in 30+ sessions and panel discussions. [...]

Read the full article →

Acronis True Image breaking User Account Control functionalities

May 4, 2012

I’m a big fan of the Acronis backup tools since a long time. Two years ago I filed a bug with their support for an annoying issue: when you have Acronis True Image installed, you cannot use the keyboard shortcut CTRL-SHIFT-ENTER anymore to open a program with elevated privileges. Try it out: on your keyboard, [...]

Read the full article →

Claims based authentication for mere mortals

April 28, 2012

This is the presentation I gave at the SharePoint Saturday event in Belgium. The demo & logistic gods weren’t that good to me as both the projector and my last demo failed on me, but I think it was ok nevertheless. I’ll publish a video of my last demo on my blog soon. If you’re [...]

Read the full article →