Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Windows Server 2012 Hyper-V Cookbook
Windows Server 2012 Hyper-V Cookbook

Windows Server 2012 Hyper-V Cookbook: 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.

Arrow left icon
Profile Icon Leandro Carvalho Profile Icon Leandro Eduardo S Carvalho
Arrow right icon
$22.99 $32.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (25 Ratings)
eBook Nov 2012 304 pages 1st Edition
eBook
$22.99 $32.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Leandro Carvalho Profile Icon Leandro Eduardo S Carvalho
Arrow right icon
$22.99 $32.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (25 Ratings)
eBook Nov 2012 304 pages 1st Edition
eBook
$22.99 $32.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$22.99 $32.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Windows Server 2012 Hyper-V Cookbook

Chapter 2. Migrating and Upgrading Physical and Virtual Servers

In this chapter, we will cover the following topics:

  • Performing an in-place upgrade from Windows Server 2008 R2 to Windows Server 2012

  • Exporting and importing virtual machines

  • Migrating virtual machines and updating their integration services

  • Converting VHD files to VHDX files

  • Migrating Virtual Machine storage using storage migration

  • Migrating virtual machines using Shared Nothing Live Migration

  • Converting physical computers to virtual machines

Introduction


Microsoft has done a very good job with Windows 2012 and its new version of Hyper-V. Most of the new and cool features such as Storage Migration, Hyper-V Replica, Hyper-V Extensible Switch, and many more, focus on virtualization, increasing mobility, scalability, and reliability of your datacenters. With all of them together, we can now say that Windows Server 2012 provides the ultimate private cloud operating system. This means that you will have more flexibility, automation, and better management of virtual and physical servers, in creating your local private cloud infrastructure.

Having said that, the migration plan of the existing environment will still happen. You will probably want to start using all these features. However, the upgrade process needs attention, planning, and special configurations.

With Hyper-V 3 virtual machines, upgrades, and migrations are easier than never before. You can migrate the Virtual Machine (VM) from old Hyper-V versions using the Export/Import...

Performing an in-place upgrade from Windows Server 2008 R2 to Windows Server 2012


One of the easiest ways to adopt Windows Server 2012 in an existing environment is the in-place upgrade. You might have a scenario with a fresh installation of Windows Server 2008 R2 with Hyper-V, where you want to update to Windows Server 2012 Hyper-V on the same hardware. In case you only have Hyper-V running with all the applications and drivers on the host computer being supported on Windows Server 2012, you can use the in-place upgrade option for upgrading. This will guarantee that your host computer will be easily upgraded to Windows Server 2012 with all the configuration and files preserved.

However, in other examples where applications or drivers might not work on Windows Server 2012 or the old installation of Windows Server 2008 R2 with lots of modifications caused by uninstalled applications, the best way would be migration to a new operating system.

It does not matter what your decision is, you need...

Exporting and importing virtual machines


If you don't want to perform an in-place upgrade from Windows Server 2008 R2 to Windows Server 2012, the migration from an old Hyper-V version to Windows 2012 is not so complicated either. You need to install a new server with Windows 2012, enable Hyper-V, export the virtual machine from the old server, and import them back to your new server. That's it! This is the same process that we have been using since the first version of Hyper-V in Windows Server 2008. However, the previous versions of Hyper-V had some limitations; for example, you could import only a virtual machine that had been exported before and lots of other issues regarding different configurations in the source and destination host.

The next few steps will guide you through the new process and options to import and export virtual machines introduced in Hyper-V 3.0.

Getting ready

Before you start to export your virtual machines, make sure they are turned off or in save state. You can...

Migrating virtual machines and updating their integration services


Most people think that the process to migrate the virtual machine from one host with a previous Hyper-V version, to another one with a newer version, is simply done by the export and import process shown in the previous task. You will probably notice some strange behavior in the VMs such as mouse integration, slow performance, and some other issues. You will understand with the next steps why this problem occurs and how to migrate the virtual machine without such problems.

Getting ready

For virtual machines with a supported Linux operating system, you need to download the latest Linux integration components. You can download the current version from here: http://www.microsoft.com/en-us/download/details.aspx?id=34603 .

To know which Linux operating systems have the Hyper-V support, access the website http://technet.microsoft.com/library/hh831531.aspx .

For instructions about the Linux integration components' installation, refer...

Converting VHD files to VHDX files


Microsoft has been using the same Virtual Hard Disk (VHD) format since the one created by Connectix in 1995. That was created to allow Windows 3.1 to run on Mac computers. It has been improved, but as with any other product's lifecycle, its life ended. On Windows Server 2012, the default format is VHDX and provides lots of features and enhancements compared to its previous version.

It has been designed to work well with all the new modern storage options and has capabilities to provide reliability and store large scenarios. VHDX now supports 64 TB against 2 TB of VHD. Also, it supports larger logical sector sizes up to 4 KB, and large block sizes up to 256 MB, to optimize the virtual disk performance.

Another interesting feature is the use of the log in order to ensure the security and resiliency against corruptions that can occur in power failures, for example.

With all these excellent features, it will be very good practice to convert the existing virtual...

Migrating Virtual Machine storage using Storage Migration


In a virtual environment, with thousands of physical and virtual servers, it is normal to face some problems or limitations that require reallocating a virtual machine to another location. Let's list some examples of the issues you might encounter:

  • Hardware limitation

  • Storage upgrade and maintenance

  • Poor VM Performance (I/O)

  • Fix configuration mistakes

Windows Server 2012 Hyper-V introduces a new feature to help you in these scenarios called storage migration, providing the ability to reallocate the virtual machine storage while it's running.

This recipe will walk through all the details and steps to show you how to move the virtual machine storage using the storage migration.

Getting ready

The storage migration feature copies the current storage to the destination location, but it keeps the source files until the migration completion. Make sure that you have enough disk space when reallocating the VM storage within the same partition.

How...

Migrating virtual machines using Shared Nothing Live Migration


Mobility! That's the word that comes up when talking about Windows Server 2012 Hyper-V. On previous versions of Hyper-V, the Live Migration was introduced as a feature that allows you to move virtual machines from one node to another in a cluster with no downtime. It basically moves the virtual machine memory and the VM configuration from one node to another and switches the server access to the storage. It is handy when you need to run any maintenance task on the host server or in case of scalability, for example. The only problem was the dependency of a shared storage in a cluster environment.

Although Live Migration still exists on Windows Server 2012 with lots of improvements, Hyper-V 2012 can now move any running virtual machine from one server to another and the only requirement is a network connection, simple as that. There is no need for clustered environments to move your VMs across your servers. For a cloud infrastructure...

Converting physical computers to virtual machines


Every day we can see companies implementing virtual servers to explore the virtualization benefits such as cost reduction, flexibility, automation, and so on.

That's why physical to virtual migration is still very common and it's important to make sure that the existing servers running under old and unnecessary hardware can be converted into virtual machines.

In this recipe, you will see how to convert a physical server into a virtual machine using the tool Disk2vhd.

Getting ready

Disk2vhd is not a default Windows tool and it has to be downloaded from the following link: http://technet.microsoft.com/en-us/sysinternals/ee656415 .

The minimal operating system for client conversions is Windows XP SP2 and for server versions is Windows Server 2003. Also, you need to pay attention to the implications caused by licensed software applications such as OEM OSes.

How to do it...

In order to convert physical computers to virtual machines, carry out the...

Left arrow icon Right arrow icon

Key benefits

  • 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

Description

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.

Who is this book for?

If you are an administrator who wants to master Microsoft Server Virtualization with Windows Server 2012 Hyper-V, then this book is for you.You should be comfortable with virtualization concepts and practices, and knowledge of previous versions of Windows Server would be an advantage.

What you will learn

  • Learn to deploy, migrate and upgrade Hyper-V and virtual machines
  • Configure disks, network, memory, security and auditing settings for virtual machines
  • Take a deep dive into high availability and disaster recovery
  • Save time and money by getting to grips with PowerShell automation
  • Understand the new features around network virtualization, Shared Nothing Live Migration, Hyper-V Replica and much more
  • Gain a full view of your virtual machines and host servers with monitoring, reporting and troubleshooting tips
  • Take advantage of bonus appendice explaining Hyper-V architecture and the difference between versions

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 23, 2012
Length: 304 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684439
Vendor :
Microsoft
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 23, 2012
Length: 304 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684439
Vendor :
Microsoft
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 170.97
Windows Server 2012 Hyper-V: Deploying Hyper-V Enterprise Server Virtualization Platform
$54.99
Windows Server 2012 Automation with PowerShell Cookbook
$60.99
Windows Server 2012 Hyper-V Cookbook
$54.99
Total $ 170.97 Stars icon
Banner background image

Table of Contents

9 Chapters
Installing and Managing Hyper-V in Full or Server Core Mode Chevron down icon Chevron up icon
Migrating and Upgrading Physical and Virtual Servers Chevron down icon Chevron up icon
Managing Disk and Network Settings Chevron down icon Chevron up icon
Saving Time and Cost with Hyper-V Automation Chevron down icon Chevron up icon
Hyper-V Best Practices, Tips, and Tricks Chevron down icon Chevron up icon
Security and Delegation of Control Chevron down icon Chevron up icon
Configuring High Availability in Hyper-V Chevron down icon Chevron up icon
Disaster Recovery for Hyper-V Chevron down icon Chevron up icon
Monitoring, Tuning, and Troubleshooting Hyper-V Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(25 Ratings)
5 star 68%
4 star 20%
3 star 8%
2 star 0%
1 star 4%
Filter icon Filter
Top Reviews

Filter reviews by




Niklas Ã…kerlund (vNiklas) Dec 14, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I bought this book some weeks ago. It is a really good way to get to know the new Hyper-V 2012 and the features included.With all the information and help covered in this book you quickly learn and get the skills to administer the virtualization solution in the Windows Server 2012.The book has both informative images and examples to help you in your exploration and deployment.Leandro has done a thorough job to cover the important parts to get a good base knowledge in Hyper-V and I recommend anyone that has no or little knowledge and want to dig into Microsoft Windows Hyper-V 2012 to buy this book!
Amazon Verified review Amazon
Alberto Alarcon Feb 20, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book ir really good
Amazon Verified review Amazon
Mr System Center Mar 28, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is written by experts who work on a daily basis with VMM. So no marketing mumbo jumbo but the real deal. This book contains tons of good information for anyone running VMM. I highly recommend it since it contains information about VMM which isn't found anywhere else.
Amazon Verified review Amazon
Sepp Jan 27, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
DAs Buch ist sehr gut strukturiert und mit vielen Beispielen gespickt. Man bekommt Appetit beim lesen und kann sofort starten ohne lange Vorbereitungszeit.
Amazon Verified review Amazon
Rafael Bernardes Nov 28, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is very good! I recommend all administrators of virtualized environments or for those who are learning now virtualization. The book offers an essential theoretical basis and several "cake recipes" for the day to day challenges of the IT professional.And the author bothered to "spice up" all the guides, with small tricks and commands in powershell.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.