Automating SQL Buildouts With Hyper-V and SQL Server 2008 R2 Robert L Davis, Sr. DBA, Microsoft Corp.

Slides:



Advertisements
Similar presentations
Contents 2 Engagement Overview Migrating to Hyper-V from VMware Consider if time allows.
Advertisements

Windows 7 Test Prep Ch 2 Part 3.
Presentation Heading – font Arial
You’ve Got a Cloud- Familiar Tools to Manage IT Bob Hunt Sr. IT Pro Evangelist
Microsoft Virtualization Last Update Copyright 2011 Kenneth M. Chipps Ph.D.
Planning Server Deployments
The Dirty Dozen: PowerShell Scripts for the Busy DBA DBA-237 Aaron
Gather SQL Server Performance Data with PowerShell
Managing a “0 Downtime” Shop Session Code Session Title About Me 15 years as a DBA (Wells Fargo, Anthem, Yellow Pages, Pulte…) SQL.
Microsoft virtual machine converter
Overview Basic functions Features Installation: Windows host and Linux host.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Inside Windows Azure Virtual Machines Vijay Rajagopalan Microsoft Corporation.
VMware vCenter Server Module 4.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
1 Management Pain points now Existing tools: Do not map to virtual environments Provisioning Backup Health monitoring Performance monitoring / management.
Deployment Management The following screens demonstrate how to: 1. Access and view deployments 2. Create a new local deployment 3. Create and modify a.
Snippet Management The following screens demonstrate how to: 1. Access and view snippets 2. Create a local standard snippet, or a local class snippet 3.
Hyper-V High-Availability & Mobility: Designing the Infrastructure for Your Private Cloud Symon Perriman Technical Evangelist Microsoft
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
System Center 2012 Setup The components of system center App Controller Data Protection Manager Operations Manager Orchestrator Service.
DB2 (Express C Edition) Installation and Using a Database
Installing Microsoft Windows Server 2008 Lesson 2.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.

Tutorial 11 Installing, Updating, and Configuring Software
Microsoft SQL Server 2008 Installation Guide Omer Alrwais.
DIY: Your First VMware Server. Introduction to ESXi, VMWare's free virtualization Operating System.
Hands-On Virtual Computing
Module 7: Hyper-V. Module Overview List the new features of Hyper-V Configure Hyper-V virtual machines.
Terry Henry IS System Manager, SharePoint SME Micron Technology Inc.
Hosted Virtualization Lab Last Update Copyright Kenneth M. Chipps Ph.D.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Four Windows Server 2008 Remote Desktop Services,
SQL2005 Cluster Build. IP Request Request 6 IP Addresses – One for EACH SQL virtual server (2) – One for the cluster – One for Distributed Transaction.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Week #2 Objectives Upgrade and Migrating to Windows 7 Image-Based Installation of Windows 7 Application Compatibility.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
How to Deploy and Configure the Smart Net Total Care CSPC Collector
System Center & SharePoint On- Prem Matija Blagus, Acceleratio
October 11-14, Seattle, WA Top 10 Ways To Break Your Deployments Or: How to Avoid Your Sorry Fate Dev Nambi Senior Software Engineer Microsoft.
Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
Virtual Machines Module 2. Objectives Define virtual machine Define common terminology Identify advantages and disadvantages Determine what software is.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Let's build a VMM service template from A to Z in one hour Damien Caro Technical Evangelist Microsoft Central & Eastern Europe
Microsoft Virtual Academy Module 9 Configuring and Managing the VMM Library.
Allan Hirt – Megahirtz LLC
Creating a Windows Server 2012 R2 Datacenter Virtual machine
Creating a Windows Server 2016 Datacenter Virtual machine
Auditing in SQL Server 2008 DBA-364-M
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
11/11/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Making PowerShell Useful
What’s new in SQL Server 2016 Availability Groups
HC Hyper-V Module GUI Portal VPS Templates Web Console
Microsoft Virtual Academy
Microsoft Virtual Academy
Making PowerShell Useful
How to add Loopback adapter in windows 7
Microsoft Virtual Academy
Governing Your Enterprise with Policy-Based Management
Service Template Creation from the Ground Up
Service Template Creation from the Ground Up
Microsoft Virtual Academy
Microsoft Virtual Academy
SQL Server on Containers
Presentation transcript:

Automating SQL Buildouts With Hyper-V and SQL Server 2008 R2 Robert L Davis, Sr. DBA, Microsoft Corp.

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Agenda

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Introduction: Who am I?

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 SysPrep for SQL Server 2008 R2  Now supported in R2  Two step process  Prepare image  Complete image  Prepare image once  Save as a VHD  Complete image as often as you like  Complete walkthrough online on my blog:

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Hyper-V on Windows Server 2008 R2  Free with Windows Server  Free as a stand-alone Microsoft Hyper-V Server  Lots of tools for easy management  Maximum support for SQL Server virtualization  Supported by SQL Server for guest host clustering

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 SysPrepping SQL Server on Hyper-V 1 Create base VM 23

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 SysPrepping SQL Server on Hyper-V 1 Create base VM 2 Prepare image 3

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 SysPrepping SQL Server on Hyper-V 1 Create base VM 2 Prepare image 3 Complete image

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 1 Create base VM 23 SysPrepping SQL Server on Hyper-V 1.Copy the VHD to the new path for the VM 2.Open Hyper-V Virtual Machine Manager 3.Create a new Virtual Machine 4.Skip the first page of the dialog 5.Specify a name for the VM and the location from step 1 6.Assign memory for the VM 7.Configure Networking 8.Connect Virtual Hard Disk 9.Check the Summary to make sure everything looks okay 10.Click on Finish 11.Start the VM and connect to it 12.Rename the instance to the desired name and reboot

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 2 Prepare image 23 SysPrepping SQL Server on Hyper-V 1.Connect to the VM 2.Copy the SQL Server 2008 R2 installation files to the VM 1.Or make the file accessible over the network 3.Start the installation 4.Install any pre-requisites if prompted 5.When Installation Center starts, select the Advanced tab 6.Click on “Image preparation of a stand-alone instance of SQL Server” 7.Install the Setup Support Files and click Next 8.Agree to licensing statement and click Next 9.Select the features you want included in this image and click Next 1.This list is a very short list (continued)

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 2 Prepare image 23 SysPrepping SQL Server on Hyper-V 10.Enter an Instance ID and click Next 1.Not the Instance name that will be used in the final install 2.Identifies the prepared image in case you have multiple 11.Confirm disk space requirements and click Next 12.Check Image Rules and click Next 13.Confirm image configuration and click Prepare 14.When image preparation completes, click Next 15.Click Close 16.Log off of the VM 17.Using Hyper-V Manager, shut the VM down 18.Copy the VHD for the prepared VM image to your VM image store

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 3 Complete image 23 SysPrepping SQL Server on Hyper-V 1.Copy the VHD you created to the location of the new VM 2.Create a new VM the same way you did in part 1 using the new VHD 3.Start and connect to the new VM 4.Rename the VM to the desired final name and reboot 5.Connect to the VM 6.Navigate to and click on “Complete SQL Server 2008 R2 Installation” 1.Microsoft SQL Server 2008 R2 -> Configuration Tools 2.Or start Installation Center and looking under the Advanced tab 7.Install the Setup Support Files 8.Enter the Product Key or select a free edition 9.Agree to the licensing terms (continued)

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 3 Complete image 23 SysPrepping SQL Server on Hyper-V 10.Select the Instance ID of the prepared image you want to complete and click Next 1.The same Instance ID you entered in Part 2 11.Verify the features you are installing and click Next 1.The features selected in Part 2 are displayed 2.Cannot change the features 12.Configure the instance to install as and click Next 1.Default instance or a named instance 13.Verify the image rules and click Next 14.Verify the summary information and click Complete 15.When the image progress completes, click Next (continued)

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 3 Complete image 23 SysPrepping SQL Server on Hyper-V 16.Click Close 17.Check the program files and see your installation 1.Feature set is limited with no SSMS, client connectivity, Books Online, etc. 18.Run Installation Center again and install the missing features that you want 19.Connect to your completed instance

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 SysPrepping SQL Server on Hyper-V Demo Environment:  Windows Server 2008 R2 Datacenter Edition  Hyper-V  Hyper-V Virtual Machine Manager  SQL Server 2008 R2 Datacenter Edition  PowerShell 2.0

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 SysPrepping SQL Server on Hyper-V

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 How do you automate it? Elfin magic? Complex machine? Complex system of tubes & monkeys? PowerShell?

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell PowerShell 2.0  PowerShell Management Library for Hyper-V   Interfaces with WMI  Created by James O’Neill (MSFT UK)  TechNet Wiki Hyper-V Portal: Scripts  /hyper-v-scripts.aspx /hyper-v-scripts.aspx

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 1 Deploy base VHD 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 1 Deploy base VHD 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 1 Deploy base VHD 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 1 Deploy base VHD 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 1 Deploy base VHD 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features 1.Copy the VHD to the new path for the VM 1.PowerShell Command: Copy-Item 2.Rename during copy 3.Example: Copy-Item –LiteralPath “D:\VHDs\My.vhd” –Destination “D:\HyperV”

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 2 Create and configure VM 2 3 Complete SQL SysPrep 4 Add additional features 1.Script existing VM as model for new VM 1.PowerShell command: Get-VMBuildScript 2.Create PowerShell script from output 3.Example: Get-VMBuildScript “SQLPASSVM” 2.Modify script 1.Add double-quotes around key values 2.Add parameter for VM Name 1.String 2.Mandatory 3.Add copy command 1.Use VM Name parameter for new VHD file name

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 3 Complete SQL SysPrep 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features 1.Follow Steps to complete image as noted previously

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell 4 Add additional features 2 Create and configure VM 3 Complete SQL SysPrep 4 Add additional features 1.Log in to VM 2.Add any additional features you want

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Automating with PowerShell

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Resources  Walkthrough for SysPrep in SQL Server 2008 R2  ysprepinsqlserver2008r2 ysprepinsqlserver2008r2  PowerShell Management Library for Hyper-V   Created by James O’Neill (MSFT UK)  TechNet Wiki Hyper-V Portal: Scripts  /hyper-v-scripts.aspx /hyper-v-scripts.aspx  VHDs for Windows – Test Drive Program  Free evaluation edition VHD’s for download 

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Resources  Microsoft SQL Server 2008 Administration with Windows PowerShell  PowerShell-Programmer/dp/ /ref=sr_1_1 PowerShell-Programmer/dp/ /ref=sr_1_1  By Ananthakumar Muthusamy (MAK) and Yan Pan  James O’Neill’s blog   Tony Soper’s blog   Hash tags for quick help on Twitter  #sqlhelp  #poshhelp

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 My Resources  Blog:  Twitter:  Movember:  All files from this presentation can be downloaded from:

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Questions & Answers

Automating SQL Buildouts with Hyper-V and SQL Server 2008 R2 DBA249 Complete the Evaluation Form to Win! Win a Dell Mini Netbook – every day – just for handing in your completed form. Each session evaluation form represents a chance to win. Pick up your evaluation form: In each presentation room At the PASS Booth near registration Drop off your completed form: Near the exit of each presentation room At the PASS Booth near registration Sponsored by Dell

Thank you for attending this session and the 2010 PASS Summit in Seattle