TEE14 Scripted Demo 1 – Guest-Aware NUMA

As promised at Teched Europe 2014, I am sharing each of the PowerShell scripts that I used to drive my feature demos in my session. The first of these scripts focuses on non-uniform memory access, or NUMA.

image

All of my demo scripts work in this kind of fashion:

  1. Clean up the lab
  2. Create demo environment variables for hosts, clusters, machines
  3. Write-Host “some cmdlet and parameters”
  4. Do the cmdlet and some parameters
  5. Optionally display the results
  6. Do more stuff
  7. Clean up the lab.

Most of the code in these scripts is fluff, purely for display and lab prep/reset.

In this script I:

  1. Clean up the lab, ensure the VM (spans NUMA nodes cos of vCPU count) is just the way I want it.
  2. Get the NUMA config of the host.
  3. Get the NUMA config of the VM.
  4. Show that the VM is not NUMA aligned.
  5. Retrieve the VM’s advanced NUMA configuration.
  6. Shutdown the VM, set it to use static memory, and restart it.
  7. Query the VMs NUMA alignment, and see that it is aligned now, but we have use static memory.
  8. Reset the lab back to the start.

CLS
$DemoVM1="NUMA"

#Reset the demo
Stop-VM $DemoVM1 -Force | Out-Null
Set-VMMemory $DemoVM1 -DynamicMemoryEnabled:$true -StartupBytes 512MB -MaximumBytes 8GB -MinimumBytes 256MB
Start-VM $DemoVM1 | Out-Null

#Start the demo
Read-Host "Start the demo"
Write-Host "`nGet-VMHostNumaNode"
Get-VMHostNumaNode
Write-Host "`nThe host has 2 NUMA nodes. Large VMs should also have 2 NUMA nodes for best performance" -foregroundcolor red -backgroundcolor yellow

Read-Host "`nCheck the NUMA and Dynamic Memory configuration of the VM $DemoVM1"
Write-Host "`nGet-VM $DemoVM1 | Select Name, ProcessorCount, MemoryMaximum, DynamicMemoryEnabled, NumaAligned, NumaNodesCount, NumaSocketCount"
Get-VM $DemoVM1 | Select Name, ProcessorCount, MemoryMaximum, DynamicMemoryEnabled, NumaAligned, NumaNodesCount, NumaSocketCount | Out-Host
Write-Host "`nGuest NUMA isn’t alligned and the 24 vCPU virtual machine has only 1 NUMA node" -foregroundcolor red -backgroundcolor yellow

Read-Host "`nGet the advanced NUMA configuration of the VM $DemoVM1"
Write-Host "`nGet-VMProcessor $DemoVM1 | Select Count, MaximumCountPerNumaNode, MaximumCountPerNumaSocket`n"
Get-VMProcessor $DemoVM1 | Select Count, MaximumCountPerNumaNode, MaximumCountPerNumaSocket
Write-Host "`nGet-VMMemory $DemoVM1 | Select MaximumPerNumaNode`n"
Get-VMMemory $DemoVM1 | Select MaximumPerNumaNode
Write-Host "`nThis is the NUMA node configuration that Hyper-V can present to the VM via Guest-Aware NUMA" -foregroundcolor red -backgroundcolor yellow

Read-Host "`nDisable Dynamic Memory for the VM $DemoVM1 & restart it"
Stop-VM $DemoVM1 -Force
Write-Host "`nSet-VMMemory $DemoVM1 -DynamicMemoryEnabled:$false -StartupBytes 8GB"
Set-VMMemory $DemoVM1 -DynamicMemoryEnabled:$false -StartupBytes 8GB
Start-VM $DemoVM1
Write-Host "`nGet-VM $DemoVM1 | Select Name, ProcessorCount, MemoryMaximum, DynamicMemoryEnabled, NumaAligned, NumaNodesCount, NumaSocketCount`n"
Get-VM $DemoVM1 | Select Name, ProcessorCount, MemoryMaximum, DynamicMemoryEnabled, NumaAligned, NumaNodesCount, NumaSocketCount | Out-Host
Write-Host "`nThe VM now is NUMA aligned and has a NUMA configuration that matches the host hardware" -foregroundcolor red -backgroundcolor yellow

#End the demo
Read-Host "`nEnd the demo"
Stop-VM $DemoVM1 -Force
Set-VMMemory $DemoVM1 -DynamicMemoryEnabled:$true -StartupBytes 512MB -MaximumBytes 8GB -MinimumBytes 256MB
Start-VM $DemoVM1 | Out-Null

TEE14–PowerShell Unplugged

Speaker: Jeffrey Snover, uber genius, Distinguished Engineer, and father of PowerShell.

Tale of 3 Parents

  • UNIX: Small unit composition with pipes: A | B | C. Lacks consistency and predictability.
  • VMS/DCL: The consistent predictable nature impacted Jeffrey. Verb & noun model.
  • AS400/CL: Business oriented – enable people to do “real business”.

Keys to Learning PowerShell

  • Learn how to learn: requires a sense of exploration. I 100% agree. That’s what I do: explore the cmdlets and options and properties of objects.
  • Get-Help and Update-Help. The documentation is in the product. The help is updated regularly.
  • Get-Command and Show-Command
  • Get-Member and Show-Object –> the latter is coming.
  • Get-PSDrive HOw hierarchical systems like  drives are explored.

Demo

Into ISE to do some demo stuff.

He uses a OneGet and PowerShellGet modules to pull down modules from trusted libraries on the Internet (v5 from vNext).

Runs Show-Object to open a tree explorer of a couple of cmdlets.

Dir variable …. explore the virtual variable drive to see the already defined variables available to you.

$c = get-command get-help

get-object $c

$c.parameters

$c.parameters.path

get-command –noun disk

Get-something | out-gridview

Get-Help something –ShowWindow

$ConfirmPreference = “Low”

Microsoft News Summary – 8 October 2014

Welcome to today’s cloud-heavy Microsoft news compilation.

Windows Server

clip_image001

Windows Client

Azure

  • Introducing the Azure Automation Runbook Gallery: The time it takes to create functional, polished runbooks is a little faster thanks to the new Azure Automation Runbook Gallery.
  • More Changes to Azure by Scott Guthrie: Including support for static private IP support in the Azure Preview Portal, Active Directory authentication, PowerShell script converter, runbook gallery, hourly scheduling support.
  • Microsoft Certification Test Tool Preview for Azure Certified: The Microsoft Certification Test Tool for Azure Certified is designed to provide an assessment of compliance to technical requirements as part of the Azure Certified program. The test tool includes a wizard style automated section and questionnaire section to assess characteristics of a Virtual Machine image running in Microsoft Azure and generate results logs. More information on the Azure Certified program is available.
  • Announcing Support for Backup of Windows Server 2008 with Azure Backup: Due to feedback. Please note that this is x64 only and that there are system requirements.
  • Hybrid Connection Manager ClickOnce Application: ClickOnce installer for the Hybrid Connection Manager.
  • D-Series Performance Expectations: The new D-Series VMs provide great performance for applications needing fast, local (ephemeral) storage or a faster CPU; however, it’s important to understand a little about how the system is configured to ensure you’re getting an optimal experience.
  • Cloud App Discovery – Now with Excel and PowerBI Support: One of the top customer requests was to be able to perform analytics on the data collected in tools like Excel and PowerBI. Now you can take cloud app discovery data offline and explore and analyze the data with tools you already know–Excel and PowerBI.
  • A new region will open in India by the end of 2015: It makes sense; there are 1 billion people and some big corporations there.
  • Microsoft Azure Speed Test: Which Azure region is closest to you (remember that Internet geography is different to the planet’s geography. For example, where I work is a few miles from Europe North (Dublin), but the test shows me that Europe West provides me with lower latency (beaten, obviously, by CDN). My own testing using Azure Traffic Manager with geo-dispersed websites has verified this.

clip_image002

Office 365

Miscellaneous

Microsoft News Summary – 1 October 2014

There’s not all that much news to cover this morning. Oh … hold on …

Hyper-V

Windows Server

clip_image001

Windows Client

clip_image002

System Center

Azure

Security

Office 365

  • Delivering the first chapter of Groups in Office 365: Grouping of users will be rolled out to all customers that have an Exchange Online or Office 365 commercial subscription, both new and existing. Eligible Office 365 plans include the Office 365 Enterprise E1–E4 subscription plans (including the corresponding A2–A4 and G1–G4 plans for Academic and Government customers, respectively), Office 365 Business Essentials and Business Premium plans, Office 365 Small Business, Small Business Premium and Midsize Business plans and Office 365 Kiosk plan.
  • Step-By-Step – Setting up the new Azure AD Sync Tool: AAD Sync is Microsoft’s new directory synchronization tool that simplifies the process of connecting Azure AD to Windows Server AD. It also makes it more simple to connect complex, multi-forest deployments.

The Funnies

  • America’s CBS attempts to out-dumb CNN:

clip_image003

Microsoft News Summary – 19 September 2014

The positive highlight for me is the excellent TechNet article on managing tiered Storage Spaces. The lowlight was the unannounced price changes in Azure – (A) it was unannounced (B) there was no notice, and (C) it means that customers cannot plan; customers hate each and every one of those, especially the latter.

Hyper-V

Window Server

Windows

  • The September 30th Microsoft Event: Paul Thurrott (on Windows Weekly) confirmed that this event will not be streamed. Major mistake in my opinion. The attendees are a small set of media, and the subject matter is Windows “Threshold” in the enterprise. Sure … let’s not let the IT pros who will make the recommendation see the event. That’s reeeealllly sensible. Let the Windows 8 insanity continue.

Azure

Office 365

    clip_image001

Licensing

  • SPLA Audit start to finish: SPLA is based on an honour system – but audits have become a way of life with such licensing programs.

Miscellaneous

Microsoft News Summary – 10 September 2014

In other news, Apple proves that wearable devices are a pointless Gartner-esque fad, and those preachy tax-avoiding frakkers, U2, suck donkey balls.

Hyper-V

System Center Operations Manager

  • OM12 Sizing Helper: This is a Windows Phone app version of the OpsMgr 2012 Sizing Helper document.

Azure

Miscellaneous

  • Microsoft rumored to be poised to buy Minecraft creator for $2 billion: This blocky game is the hottest thing with kids. I’ve spent many an hour *cough* helping *yes, helping* with constructions & adventures on an iPad and Xbox. And to be honest, it is a good problem solving game and it encourages kids to interact, based on what I’ve observed.

Microsoft News Summary – 9 September 2014

It’s a slow day, so here’s your updates for today. I think the Azure Automation post should be useful – I’ll sure be ripping it off inspired by it for future demos Smile

Hyper-V

Azure

Licensing

Microsoft News Summary – 8 September 2014

It’s been 5 days since my last of these updates – events, meetings and travel take their toll!

Below you will see an announcement on how to deploy DPM in Azure to backup stuff from within Azure VMs (not a host level backup). Please note that this is licensed using on-premises SysCtr SML licenses and cloud management licensing is not the same as on-premises licensing. A SysCtr Datacenter SML covers 8 VMs in the cloud, so you might need lots more SysCtr licensing to manage Azure.

Microsoft has also launched a Migration Accelerator for Azure based on the InMage acquisition. Right now, the preview is limited to the USA. That’s pretty dumb; anyone who knows MSFT virtualization knows that Europe is the place to be.

Oh – the MSFT versus FBI Irish data centre case rumbles on. It’s clear that the motivations of the US government were not speed (the Irish government would have been quick to help) but are more along the lines of “Mine! MINE! MINE!!!! MY PRECIOUSSSSS!”.

Windows Server

SCVMM

Azure

Office 365

Hardware

Legal

Microsoft News Summary – 1 September 2014

Frak! It’s September already!?!?!?! Here’s my first update in a since last Wednesday – travel and events took priority.

The big news broke late on Friday and Saturday. The moron judge presiding over the FBI/Microsoft case cancelled the stay on the order to force Microsoft to turn over data from the Dublin data centre to the US feds, thus breaching privacy and violating Irish and European laws. Microsoft is refusing to comply and is appealing to a higher court in the USA.

Hyper-V

Legal

Azure

Windows Intune

PowerShell

Surface

  • What’s the Future for Surface Tablets? IMO, doom. It’s impossible to sell a business machine to business users if you don’t give businesses a way to buy the device and an SLA-enforced mechanism to support it. First of you to say "BYOD" gets a kick in the groin for drinking 2-year old Gartner KoolAid.

Licensing

VMware

Consumer

Microsoft News Summary – 25 August 2014

Not much has happened since last Friday morning. VMworld is on this week in San Francisco – maybe it’s no coincidence that there have been earthquakes nearby?

Azure

  • AzureConf, free online Azure conference: On September 25th, 2014, Microsoft will be hosting AzureConf, another free event for the Azure community. This event will feature a keynote presentation by Scott Guthrie, along with numerous sessions executed by Azure community members.

PowerShell

Intune

  • The Windows Intune Team will be performing scheduled maintenance at the end of August: All service functions and operations are expected to perform normally during this maintenance window. Once the upgrade to the Windows Intune service is complete, a number of mandatory agent updates will be pushed out to all PC client machines connected to the service. In most cases, these updates will not require a reboot after being applied.

Office 365

  • Matter Centric Legal Document Management: MSFT has launched a limited pilot program for an industry vertical O365 solution to improve the way law firms and attorneys work together by making it easier to organize files by client and matter, review documents, and find information when needed without ever leaving Microsoft Word or Outlook. < I wonder, if like some other verticals, this only applies to the USA … try set the URL to be non-US.