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
€41.99
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
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Leandro Carvalho Profile Icon Leandro Eduardo S Carvalho
Arrow right icon
€41.99
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
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to Belgium

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Belgium

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

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
€18.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
€189.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
€264.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 129.97
Windows Server 2012 Hyper-V: Deploying Hyper-V Enterprise Server Virtualization Platform
€41.99
Windows Server 2012 Automation with PowerShell Cookbook
€45.99
Windows Server 2012 Hyper-V Cookbook
€41.99
Total 129.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 the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela