Archive for the ‘Networking’ category

Setting up a Virtual PC Domain

July 7th, 2008

I do a lot of demos and Virtual PC 2007 is a mainstay in my arsenal for those demos.  I’ve used VMWare Server (the free one) and it is very nice, but I run an x64 OS and VMWare had neglected to sign certain emulation drives which caused me enough headache that I ditched it for the easy of VPC. 

I mentioned using Syspreping for my VPC library prior which saves me a ton of time, but one of the things I’ve always started but never finished was setting up a Virtual Domain.  Well this weekend, I finished things up and I’m happy to say, it wasn’t that bad. 

Here’s what I did:

Create My Domain Controller Machine by copying a Syspreped Window 2008 Server harddrive image and creating a new Virtual PC using an existing hard drive.  About 120 seconds later I have a free standing vanilla server ready to roll.

imageConfigure Network Adapter(s) by specifying Local Only in the VPC’s Network Settings. 

At this point you’ll want to log into VPC if you haven’t already.  We’ll want to isolate our domain and let each of the workstation VPC’s communicate with the domain controller by going into the Network Adapter’s properties.  Our little domain network is going to be rather isolated.  To accomplish this, we will specify a specific Subnet and IP address range.  Here is what I’ve used for mine:

IP Range: 192.168.8.1 – 254 (where 192.168.8.1 is my domain controller IP)
Subnet Mask: 255.255.248.0
Gateway: 192.168.8.1 (DC/DNS server)
Primary DNS: 192.168.8.1 (DC/DNS server)

image Setting up Active Directory is a breeze if you do it the easy way.  Of course, I did it the easy way the last time.  (Note to self: when just learning, take the defaults).  Windows Server 2003 and 2008 have this concept of Roles.  A server can fill one or more roles which are the conglomeration of settings, services, etc to do something more abstract… like be a DC.  We are going to add the role Active Directory Domain Services.  

After the Add Role wizard does it’s thing, you actually “promote” the machine to a DC by running dcpromo.exe (Start, dcpromo, Enter).  This is where you make your selections, which in this case, I’ve chosen:

Create a new domain in a new forest
FQDN: vpc.com

You’ll want to let the machine also be a DNS server.  This is where I screwed up the first time.  Don’t get scared here, with our networking settings this domain we’re setting up won’t touch your corporate domain or anything crazy like that.

Let the Wizard do it’s thing and reboot when it is complete.

Your Active Directory Domain Controller is ready to roll.  Great job.

Adding Workstations is a matter of adding a Computer entry into the Active Directory Users and Computers console and then actually adding the computer to the domain.  You’ll find the AD Users and Computers MMC console in Administrative Tools.  Once you’ve added a computer entry, log into another VPC instance which has the same Network Adapter settings as above (different IP of course .2, .3, etc) and add the machine to the domain (vpc.com) in my case. 

imageHere’s a quick screen capture of my Network Adapter on the Workstation I added to the domain.

It’s great being able to demo Enterprise software this way or test things like integrated authentication for intranet applications.

Virtual PC and Network Places

March 21st, 2008

I use Virtual PC a lot, especially for development.  I try to emulate a mini-infrastructure of how I’ll be deploying my solutions, so no SQL Server on my box, no IIS on my box, etc.  To support this I use Virtual PC Guy’s steps for enabling communication between my host and the VPC’s.  If you are on an Active Directory environment this can have a pretty negative impact on name resolution, specifically when browsing through “My Network Places” (XP) or just “Network” (Vista).  imageIf you are running into this and it bugs you, go into your Microsoft Loopback Adapter properties and disable/uncheck “Client for Microsoft Networks”.  I personally disable everything except Virtual Machine Network Services and IPv4 since this just a small private network running on my computer.