Building a new Hyper-V Private Cloud Lab

Two years ago I created my first real IT Lab with some HP ProLiant ML110 G5. I used this in the past years to test new products and projects. The Lab at this time was very limited, no storage, no cluster, not much RAM and weak CPU performance. Not much help if you work a lot with Hyper-V Clusters and System Center products.

I was looking around for some time now to find a cheap offer for new servers. In the last week I found a offer from Cisco with c200 M2 servers and I couldn’t resist to buy two of the for my Hyper-V Cluster nodes. The offer was a special deal which was even cheaper than building the servers by my own, at this point thanks to my former employer Atlantis Informatik AG.

Now what I will do is creating a new Hyper-V Cluster friendly environment with two Cisco C200 M2 Hyper-V nodes, one HP ML110 G5 as Storage Server and one of my old HP ML110 G5 servers as Hyper-V Server which all my Management servers and Active Directory will run on.

Lab Overview

If you want to know more about Hardware you can use for a Hyper-V Lab I recommend the posts of Carsten Rachfahl on hyper-v-server.de (german).

Hardware Configuration

Hyper-V nodes:

cisco c200 m2

2x Cisco C200 M2 - Intel Xeon 5620 2.4GHz Quad Core, 16GB RAM, Remote Management, IPMI, 6 Networkports

Storage Server:

ml110g5

1x HP ProLiant ML110 G5 – Intel Xeon E3110 3.0 GHz Dual Core, 8GB RAM, 4x 500GB Raid 10, 3 Networkports

Management Hyper-V node:

ml110g5

1x HP ProLiant ML110 G5 – Intel Xeon E3110 3.0 GHz Dual Core, 8GB RAM

PowerShell 3.0: Show-Command

Powershell

Just a simple note about a new cmdlet in PowerShell 3.0. Show-Command is something very useful if you try out a new PowerShell Command. It shows all the options and possible parameters you have with the cmdlet.

Show-Command Get-Childitem

Show-Command

 

PowerShell: Ping IP range

Powershell

Some you need to know which IP in a specific range is already in use. With Windows PowerShell there is a simple way to ping a IP range.

You can use the .Net class System.Net.Networkinformation.Ping to do this.


$ping = New-Object System.Net.Networkinformation.Ping
1..254 | % { $ping.send(“192.168.100.$_”) | select address, status } 

Commands for Windows Server Core & Hyper-V Core Server

For some KTSI projects I have been working a lot with Windows Server Core or Hyper-V Server. Now I had to do a lot of automation, so I made this little connection of commands. If you configure the server manually you can do the most important things with the sconfig utility.

Windows Server Core

Networking

Set Hostname

netdom renamecomputer %COMPUTERNAME% /NewName:<NewComputerName> 

Join Domain

netdom join %COMPUTERNAME% /domain:<DomainName> /userd:<UserName> /passwordd:*

Remove Domain

netdom remove

Rename Network Interface

netsh interface set interface name=”old name” newname=”new name”

Configure IP Address

netsh interface ipv4 set address name=”<Interface Name>” source=static address=<IPAddress> mask=<SubnetMask> gateway=<DefaultGateway>

Configure DNS Servers

netsh interface ipv4 add dnsserver name=”<Interface Name>” address=<DNS Server IP> index=1

Disable Firewall (not recommended)

netsh advfirewall set allprofiles state off

 

Remoting

Enable PowerShell Remoting

Enable-PSRemoting

Enable Remotedesktop

netsh advfirewall firewall set rule group=”remote desktop” new enable=yes

Enable Remote Administration

advfirewall firewall set rule group=”Remote Administration” new enable=yes

Enable Remote Firewall Administration

netsh advfirewall firewall set rule group=”Windows Firewall Remote Management” new enable=yes

Enable ICMP (Ping)

netsh firewall set icmpsetting 8

Enable Remote Disk Management

netsh advfirewall firewall set rule group=”Remote Volume Management” new enable=yes

 

Licensing

Enter License key

slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Activate Windows

slmgr.vbs -ato

 

Windows Update

Enable automatic updates

cscript C:'Windows'System32'Scregedit.wsf /au 4

Disable automatic updates

cscript C:'Windows'System32'Scregedit.wsf /au 1

 

Roles & Features

Get availibale features & roles

Dism /online /get-features /format:table

Enable feature & roles

Dism /online /enable-feature /featurename:<featurename>

 

Basics

Change Administrator password

net user administrator *

Restart Computer

shutdown /r /t 0

Logoff

logoff

More information about Server Core: TechNet

Windows Server 8 NIC Teaming

With the Developer Preview release of Windows Server 8 which Microsoft released at BUILD, Microsoft showed the new integrated NIC Teaming feature. Basically you could do NIC Teaming before but you had to use software and driver from network card or server vendors which was sometimes a little bit of a pain.

Now with the integrated NIC Teaming features in Windows Server 8 you can team network cards even if they are from different vendors. I am sure this will make lives of Hyper-V Engineers a lot easier.

Windows Server 8 NIC Teaming

Windows Server 8 NIC Teaming

 

Windows Server 8 NIC Teaming

TechDays 11 Bern

techdays11

In the next two days the biggest Microsoft event in Switzerland will be held at Bern.

Microsoft will bring the latest news about Windows 8, Windows Server 8 and the System Center 2012 Suite from the BUILD conference to the Swiss IT Pro audience. On the IT Pro track, private cloud will be the key topic.

More About the two days:

IT Professionals: 20. Oktober 2011

In der Keynote stellen Ihnen unsere Technikexperten die wesentlichen Neuerungen unserer anstehenden Servertechnologien Windows Server 8, SQL Server „Denali“ und System Center 2012 vor. Anschliessend werden technische Informationen und Demos für Produkte wie SQL Server „Denali“, System Center 2012, PowerShell, IPv6, Virtualisierung und Private Cloud, Windows und SQL Azure sowie Office 365 und Endpoint-Managementangeboten.

Developer: 21. Oktober 2011

Der Tag beginnt mit der Keynote des Branchenexperten Neno Loje über das neue Visual Studio 11, das kürzlich auf der BUILD-Konferenz vorgestellt wurde. Softwareentwickler und –architekten erhalten anschliessend die aktuellsten Informationen und Demos über Produkte wie Windows Azure, ASP.NET MVC 4, Windows Phone „Mango“, Silverlight 5, SQL Server 2008 R2 / SQL Azure / SQL Server „Denali“ sowie Visual Studio Lightswitch und HTML5.

More information and the agenda can you find on the techdays homepage.

See you there…