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
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (25 Ratings)
Paperback Nov 2012 304 pages 1st Edition
eBook
Can$38.99 Can$55.99
Paperback
Can$69.99
Subscription
Free Trial
Arrow left icon
Profile Icon Leandro Carvalho Profile Icon Leandro Eduardo S Carvalho
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (25 Ratings)
Paperback Nov 2012 304 pages 1st Edition
eBook
Can$38.99 Can$55.99
Paperback
Can$69.99
Subscription
Free Trial
eBook
Can$38.99 Can$55.99
Paperback
Can$69.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781849684422
Vendor :
Microsoft
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 23, 2012
Length: 304 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684422
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 Can$6 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 Can$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Can$ 217.97
Windows Server 2012 Hyper-V: Deploying Hyper-V Enterprise Server Virtualization Platform
Can$69.99
Windows Server 2012 Automation with PowerShell Cookbook
Can$77.99
Windows Server 2012 Hyper-V Cookbook
Can$69.99
Total Can$ 217.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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.