You are previewing Windows Server 2012 Hyper-V Cookbook.
O'Reilly logo
Windows Server 2012 Hyper-V Cookbook

Book Description

To master the administration of Windows Server Hyper-V, this is the book you need. With over 50 useful recipes, plus handy tips and tricks, it helps you handle virtualization using best practice principles.

  • Take advantage of numerous Hyper-V best practices for administrators

  • Get to grips with migrating virtual machines between servers and old Hyper-V versions, automating tasks with PowerShell, providing a High Availability and Disaster Recovery environment, and much more

  • A practical Cookbook bursting with essential recipes

  • In Detail

    Virtualization has proved that it can help organizations to reduce costs, and the Private Cloud has created a revolution in the way we manage and control our servers with centralization and elasticity. The new Windows Server 2012 Hyper-V release from Microsoft comes with a myriad of improvements in areas such as mobility, high availability and elasticity, bringing everything you need to create, manage and build the core components of a Microsoft Private Cloud for virtualized workloads.

    "Windows Server 2012 Hyper-V Cookbook" is the perfect accompaniment for Hyper-V administrators looking to take advantage of all the exciting new features the release has to offer. Through practical recipes, you’ll master Hyper-V deployment, migration and management.

    "Windows Server 2012 Hyper-V Cookbook" is an essential resource for any Hyper-V administrator looking to migrate, install and manage their virtual machine efficiently.

    With all the features of Windows Server 2012 Hyper-V covered, you will learn everything from installation to disaster recovery, security, high availability, configuration, automation, architecture and monitoring, all in a practical recipe format. The book also includes new features such as Storage and Shared Nothing Live Migration, Hyper-V Replica and Network Virtualization and much more.

    With "Windows Server 2012 Hyper-V Cookbook" in hand, you’ll be equipped to manage your Private Cloud with ease.

    Table of Contents

    1. Windows Server 2012 Hyper-V Cookbook
      1. Table of Contents
      2. Windows Server 2012 Hyper-V Cookbook
      3. Credits
      4. About the Author
      5. Acknowledgement
      6. About the Reviewers
      7. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      9. 1. Installing and Managing Hyper-V in Full or Server Core Mode
        1. Introduction
        2. Verifying Hyper-V requirements
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Enabling the Hyper-V role
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Installing Hyper-V using Windows PowerShell
          5. See also
        4. Installing Windows Server 2012 and Microsoft Hyper-V Server 2012
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Managing a Server Core installation using sconfig
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Enabling and disabling the graphical interface in Hyper-V
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Configuring post-installation settings
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      10. 2. Migrating and Upgrading Physical and Virtual Servers
        1. Introduction
        2. Performing an in-place upgrade from Windows Server 2008 R2 to Windows Server 2012
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Exporting and importing virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Migrating virtual machines and updating their integration services
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Converting VHD files to VHDX files
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Migrating Virtual Machine storage using Storage Migration
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Moving all the virtual machines to a new storage location
        7. Migrating virtual machines using Shared Nothing Live Migration
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Configuring constrained delegation to authenticate live migrations
          5. See also
        8. Converting physical computers to virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Converting physical computers to virtual machines using a command line
      11. 3. Managing Disk and Network Settings
        1. Introduction
        2. Creating and adding virtual hard disks
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Mounting a virtual hard disk on the host computer
            2. Adding a pass-through disk for a virtual machine
            3. Creating virtual machines on file servers
          5. See also
        3. Configuring IDE and SCSI controllers for virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Creating resource pools
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Creating and managing virtual switches
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Using legacy network adapters
          4. See also
        6. Using advanced settings for virtual networks
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Enabling and adding NIC teaming to a virtual machine
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Configuring and adding Hyper-V Virtual Fibre Channel to virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
      12. 4. Saving Time and Cost with Hyper-V Automation
        1. Introduction
        2. Installing and running Hyper-V from a USB stick
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Creating virtual machine templates
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Learning and utilizing basic commands in PowerShell
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using PowerShell to create multiple VMs in a single command line
          5. See also
        5. Using small PowerShell commands for daily tasks
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using PowerShell ISE for advanced script editing
            2. Enabling scripts to be executed in PowerShell
          5. See also
        6. Enabling and working with remote connection and administration through PowerShell
          1. Getting ready
          2. How to do it...
          3. How it works...
      13. 5. Hyper-V Best Practices, Tips, and Tricks
        1. Introduction
        2. Using the Hyper-V Best Practices Analyzer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using PowerShell to create HTML reports with the BPA results
        3. Setting up dynamic memory for virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using PowerShell to manage dynamic memory for virtual machines
        4. Enabling remote management for Hyper-V in workgroup environments
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Installing and configuring an anti-virus on host and virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
      14. 6. Security and Delegation of Control
        1. Introduction
        2. Configuring Windows Update for Hyper-V
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring Cluster-Aware Updating for cluster nodes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Delegating control in Hyper-V
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Configuring Port ACLs
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Installing and configuring BitLocker for data protection
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Configuring Hyper-V auditing
          1. How to do it...
          2. How it works...
      15. 7. Configuring High Availability in Hyper-V
        1. Introduction
        2. Installing and configuring an iSCSI Target server in Windows Server 2012
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Installing and configuring the Windows Failover Clustering feature
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Enabling Cluster Shared Volumes 2.0
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Configuring CSV Cache for Hyper-V Environments
          5. See also
        5. Using Live Migration in a cluster environment
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Configuring VM Priority for Clustered Virtual Machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      16. 8. Disaster Recovery for Hyper-V
        1. Introduction
        2. Backing up Hyper-V and virtual machines using Windows Server Backup
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Checking the Windows Server Backup commandlets
          5. See also
        3. Restoring Hyper-V and Virtual Machines using Windows Server Backup
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Configuring Hyper-V Replica between two hyper-V hosts using HTTP authentication
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using PowerShell to configure and enable Hyper-V Replica
          5. See also
        5. Configuring Hyper-V Replica Broker for a Failover Cluster
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Configuring Hyper-V Replica to use certificate-based authentication using an Enterprise CA
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Using snapshots in virtual machines
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Exporting a virtual machine out of a snapshot
          5. See also
      17. 9. Monitoring, Tuning, and Troubleshooting Hyper-V
        1. Introduction
        2. Using real-time monitoring tools
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Using Perfmon for logged monitoring
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Using VM Monitoring
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Monitoring Hyper-V Replica
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Using Resource Metering
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Tuning your Hyper-V server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Using Event Viewer for Hyper-V troubleshooting
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      18. A. Hyper-V Architecture and Components
        1. Understanding Hypervisors
          1. VMM Type 1VMM Type 2
          2. VMM Hybrid
          3. VMM Type 1
        2. Hyper-V architecture
          1. Windows before Hyper-V
          2. Windows after Hyper-V
        3. Hyper-V architecture components
          1. Hypervisor
          2. Partitions
          3. Virtualization stack
          4. Enlightened versus emulated
        4. Differences between Hyper-V, Hyper-V Server, Hyper-V Client, and VMware
          1. Hyper-V limitations improvements
          2. Windows Server 2012 Hyper-V
          3. Microsoft Hyper-V Server 2012
          4. Hyper-V Client
          5. Windows Server 2012 Hyper-V X VMware vSphere 5.1
          6. Hyper-V comparing technologies
          7. References
      19. Index