|By Kevin Remde||
|October 5, 2012 08:00 AM EDT||
Hyper-V in Windows Server 2012 (and in the free Microsoft Hyper-V Server include an easy start to a good disaster recovery solution: Hyper-V Replica. With Hyper-V Replica you can easily create and maintain an off-line copy – a replica – of a virtual machine on a separate virtualization host. This means, for example, that if your main location or host for an important virtual machine goes down becomes unavailable, you can easily fail-over to the replica. The copy will start up and be available in short-order.
“That sounds really great, Kevin! But what does it cost to set this up?”
“How do I set it up?”
I’m glad you asked. There are really two simple requirements to make it happen:
- You need to be running Windows Server 2012 with the Hyper-V Role installed (or Microsoft Hyper-V Server 2012) on both the source and destination virtualization hosts, and
- You need network connectivity between them. (and don’t forget the firewall)
Here are my 6 steps to working with Hyper-V Replica:
1. Configuring the Hosts to Allow Replication
In Hyper-V Manager, right-click on, or select the host, and choose Hyper-V Settings…
On the left, select Replication Configuration, and then enable and configure your replication options.
2. Setting up a Replica
To configure the replica using Hyper-V Manager, right click on the VM you want to replicate and choose Enable Replication…
On the Before You Begin page, click Next
On the Specify Replica Server page, Enter the name of the server that is to be the replication host.
The Specify Connection Parameters page is, um, where you specify your connection parameters.
Choose the hard disks you want to replicate on the Choose Replication VHDs page.
On the Configure Recovery History page, choose whether you want to keep just the most recent recovery point, or perhaps maintain a number of points in the past that you could recover to. You also have the option to occasionally perform a VSS copy.
On the Choose Initial Replication Method page, notice that you have options on how you want that big initial replication to take place. Maybe you don’t want to use the network for that initial large transfer, but instead would prefer to use UPS or FedEx.
Then click Finish on the summary page, and you’re all set.
If all was configured properly, you’ll see a new VM appear on the replication host that will be turned off.
3. Verifying the Replica’s Status
You can easily verify the status of your replica by selecting either your original VM or your replica VM in Hyper-V Manager, right-click the VM, click Replication, and then View Replication Health.
4. Testing the Replica
You can test your replicated machine by right-clicking on the replica VM and under Replication select Test Failover…
Pick the point in time that you want to test, and click Test Failover.
This will create a linked copy VM with the text “ – Test” appended to the name. Simply start up that VM (go ahead. It isn’t connected to the network, so it won’t interfere with anything) and verify that it is a useable machine.
5. Disaster Strikes! Time to Fail Over
The unthinkable has happened. Time to act. Your original and important production VM is no longer available.
On the replica VM, right click. Under Replication, select Failover.
Select the recovery point, and click Fail Over.
And your replica will start up configured, networked, and ready to take on Dr. Proton.
6. Removing the Replica
Easy. On both the source and replica VMs, right click. Under Replication, select Remove Replication.
Now you can safely delete your replica from the replication host.
Simple, yes? Do you have any questions?
“Can I have the failover happen automatically?”
Not natively. In its most simple form, Hyper-V Replica is a manual failover. However, because you can use PowerShell to drive this entire process, there’s no reason why you (or some third party) couldn’t develop a solution that monitors the state of the source VM and launches a script (or some automation in System Center 2012 Orchestrator) to launch the failover.
“But do I need to have Active Directory? Or do both of my virtualization hosts need to be in the same domain?”
Actually, no. You have the option of using certificate authentication to make the trusted configuration. (CLICK HERE for details on how to use certificates for Hyper-V Replica.)
“Do my virtual machines need to be running particular operating systems for this to work?”
Nope. There is nothing required of the guest operating system. You could be running the original Duke Nukum on DOS 6.22 in your VM, and this will still work.
Currently the answer to that is no. But I’ve heard this question enough times, and really it does make sense.. so I have to imagine (and that’s all I personally have to go on) that Microsoft is considering doing that. Consider the ramifications, though… setting up a replica means configuring something beyond just standing up a virtual machine in Hyper-V.. so the process has to have the ability to manipulate the hypervisor. I could see it happening sometime, but I don’t know when.
“Can I replicate machines that are in clusters? And can I replicate into or out of another cluster?”
Yes and yes. You will think of the cluster as and treat it as a single machine. And to do that there is a special role that you need to add to the cluster called the Hyper-V Replica Broker. This defines a new named entity that becomes either the source or the destination for replicas coming into or out of a cluster. For more details on this, check out this Wiki article.
“What about PowerShell? Can I use PowerShell to set up a replica? Can I use it to do the failover or even get status on current replicas?”
Yes, yes, and yes.
For example, to configure the replica destination host, you could use these commands to configure the firewall to allow inbound replication on the destination, and set a server up as a new replication host (each numbered line is a separate complete PowerShell command or script line):
- Enable-Netfirewallrule -displayname "Hyper-V Replica HTTP Listener (TCP-In)”
- Import-Module Hyper-V
- $RecoveryPort = 8080
- $ReplicaStorageLocation = “D:\Example”
- Set-VMReplicationServer -ReplicationEnabled $true -AllowedAuthenticationType Kerberos -IntegratedAuthenticationPort $RecoveryPort -DefaultStorageLocation $ReplicaStorageLocation -ReplicationAllowedFromAnyServer $true
And then to create a replication (each numbered line is a separate complete PowerShell command or script line):
- Import-Module Hyper-V
- $ReplicaServer = “Recovery1.contoso.com”
- $RecoveryPort = 8080
- $PrimaryVM1 = “CRMVM”
- $PrimaryServer = “Primary1.contoso.com”
- Enable-VMReplication -VMName $PrimaryVM1 -ReplicaServerName $ReplicaServer -ReplicaServerPort $RecoveryPort -AuthenticationType Kerberos -CompressionEnabled $true -RecoveryHistory 0
- Start-VMInitialReplication –VMName $PrimaryVM1
For the full story, here is the Microsoft online documentation of Hyper-V Replica: Hyper-V Replica Overview - http://technet.microsoft.com/en-us/library/jj134172.aspx
(NOTE: as of today, the online documents are still based on the RC code. I’m sure it will be updated soon to work with RTM.)
And to give Windows Server 2012 a try,
- CLICK HERE for the evaluation,
- CLICK HERE for the Hyper-V Server 2012 download, or
- CLICK HERE to learn more at the Microsoft Virtual Academy.
So what do you think? Good stuff? Let’s discuss in the comments.
What a difference a year makes. Organizations aren’t just talking about IoT possibilities, it is now baked into their core business strategy. With IoT, billions of devices generating data from different companies on different networks around the globe need to interact. From efficiency to better customer insights to completely new business models, IoT will turn traditional business models upside down. In the new customer-centric age, the key to success is delivering critical services and apps wit...
May. 23, 2016 06:15 PM EDT Reads: 324
With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo 2016 in New York and Silicon Valley. Learn what is going on, contribute to the discussions, and ensure that your enterprise is as "IoT-Ready" as it can be! Internet of @ThingsExpo, taking place Nov 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 17th Cloud Expo and will feature technical sessions from a rock star conference faculty ...
May. 23, 2016 05:00 PM EDT Reads: 4,591
The essence of data analysis involves setting up data pipelines that consist of several operations that are chained together – starting from data collection, data quality checks, data integration, data analysis and data visualization (including the setting up of interaction paths in that visualization). In our opinion, the challenges stem from the technology diversity at each stage of the data pipeline as well as the lack of process around the analysis.
May. 23, 2016 04:30 PM EDT Reads: 734
The 19th International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Containers, Microservices and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit y...
May. 23, 2016 04:00 PM EDT Reads: 1,781
SYS-CON Events announced today that ContentMX, the marketing technology and services company with a singular mission to increase engagement and drive more conversations for enterprise, channel and SMB technology marketers, has been named “Sponsor & Exhibitor Lounge Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York City, New York. “CloudExpo is a great opportunity to start a conversation with new prospects, but what happens after the...
May. 23, 2016 03:00 PM EDT Reads: 556
Internet of @ThingsExpo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with the 19th International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world and ThingsExpo New York Call for Papers is now open.
May. 23, 2016 03:00 PM EDT Reads: 1,635
In his keynote at 18th Cloud Expo, Andrew Keys, Co-Founder of ConsenSys Enterprise, will provide an overview of the evolution of the Internet and the Database and the future of their combination – the Blockchain. Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life ...
May. 23, 2016 02:30 PM EDT Reads: 1,674
There are several IoTs: the Industrial Internet, Consumer Wearables, Wearables and Healthcare, Supply Chains, and the movement toward Smart Grids, Cities, Regions, and Nations. There are competing communications standards every step of the way, a bewildering array of sensors and devices, and an entire world of competing data analytics platforms. To some this appears to be chaos. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists will discuss the vast to...
May. 23, 2016 02:00 PM EDT Reads: 2,316
SYS-CON Events announced today that Enzu, a leading provider of cloud hosting solutions, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to foc...
May. 23, 2016 01:45 PM EDT Reads: 2,030
Customer experience has become a competitive differentiator for companies, and it’s imperative that brands seamlessly connect the customer journey across all platforms. With the continued explosion of IoT, join us for a look at how to build a winning digital foundation in the connected era – today and in the future. In his session at @ThingsExpo, Chris Nguyen, Group Product Marketing Manager at Adobe, will discuss how to successfully leverage mobile, rapidly deploy content, capture real-time d...
May. 23, 2016 12:45 PM EDT Reads: 1,302
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, wh...
May. 23, 2016 12:30 PM EDT Reads: 1,775
IoT generates lots of temporal data. But how do you unlock its value? How do you coordinate the diverse moving parts that must come together when developing your IoT product? What are the key challenges addressed by Data as a Service? How does cloud computing underlie and connect the notions of Digital and DevOps What is the impact of the API economy? What is the business imperative for Cognitive Computing? Get all these questions and hundreds more like them answered at the 18th Cloud Expo...
May. 23, 2016 12:30 PM EDT Reads: 2,016
SYS-CON Events announced today that 24Notion has been named “Bronze Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York, New York. 24Notion is full-service global creative digital marketing, technology and lifestyle agency that combines strategic ideas with customized tactical execution. With a broad understand of the art of traditional marketing, new media, communications and social influence, 24Notion uniquely understands how to con...
May. 23, 2016 09:15 AM EDT Reads: 1,641
Whether your IoT service is connecting cars, homes, appliances, wearable, cameras or other devices, one question hangs in the balance – how do you actually make money from this service? The ability to turn your IoT service into profit requires the ability to create a monetization strategy that is flexible, scalable and working for you in real-time. It must be a transparent, smoothly implemented strategy that all stakeholders – from customers to the board – will be able to understand and comprehe...
May. 23, 2016 08:15 AM EDT Reads: 2,368
The demand for organizations to expand their infrastructure to multiple IT environments like the cloud, on-premise, mobile, bring your own device (BYOD) and the Internet of Things (IoT) continues to grow. As this hybrid infrastructure increases, the challenge to monitor the security of these systems increases in volume and complexity. In his session at 18th Cloud Expo, Stephen Coty, Chief Security Evangelist at Alert Logic, will show how properly configured and managed security architecture can...
May. 23, 2016 08:00 AM EDT Reads: 1,910
When it comes to IoT in the enterprise, namely the commercial building and hospitality markets, a benefit not getting the attention it deserves is energy efficiency, and IoT's direct impact on a cleaner, greener environment when installed in smart buildings. Until now clean technology was offered piecemeal and led with point solutions that require significant systems integration to orchestrate and deploy. There didn't exist a 'top down' approach that can manage and monitor the way a Smart Buildi...
May. 23, 2016 07:30 AM EDT Reads: 2,007
WebRTC is bringing significant change to the communications landscape that will bridge the worlds of web and telephony, making the Internet the new standard for communications. Cloud9 took the road less traveled and used WebRTC to create a downloadable enterprise-grade communications platform that is changing the communication dynamic in the financial sector. In his session at @ThingsExpo, Leo Papadopoulos, CTO of Cloud9, will discuss the importance of WebRTC and how it enables companies to fo...
May. 23, 2016 04:15 AM EDT Reads: 2,338
SYS-CON Events announced today TechTarget has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY, and the 19th International Cloud Expo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. TechTarget is the Web’s leading destination for serious technology buyers researching and making enterprise technology decisions. Its extensive global networ...
May. 23, 2016 03:45 AM EDT Reads: 2,943
Korean Broadcasting System (KBS) will feature the upcoming 18th Cloud Expo | @ThingsExpo in a New York news documentary about the "New IT for the Future." The documentary will cover how big companies are transmitting or adopting the new IT for the future and will be filmed on the expo floor between June 7-June 9, 2016, at the Javits Center in New York City, New York. KBS has long been a leader in the development of the broadcasting culture of Korea. As the key public service broadcaster of Korea...
May. 23, 2016 03:45 AM EDT Reads: 1,663
The idea of comparing data in motion (at the sensor level) to data at rest (in a Big Data server warehouse) with predictive analytics in the cloud is very appealing to the industrial IoT sector. The problem Big Data vendors have, however, is access to that data in motion at the sensor location. In his session at @ThingsExpo, Scott Allen, CMO of FreeWave, will discuss how as IoT is increasingly adopted by industrial markets, there is going to be an increased demand for sensor data from the outer...
May. 22, 2016 05:00 PM EDT Reads: 1,856