---
title: But can it do live migration?
exercise: 3
date: '2024-04-14'
tags: ['openshift','virtualisation','kubernetes','kubevirt']
draft: false
authors: ['default']
summary: "Will OpenShift Virtualisation live migrate a virtual machine?"
---

During the demo with the Acme Financial Services team one of their traditional hypervisor team asked if you can show them a live migration for a running virtual machine. They say they are used to performing migrations using a feature in their existing hypervisor called "vMotion" so want to know that feature works in OpenShift Virtualisation.

You know KVM & KubeVirt has supported a similar feature called "Live Migration" for ages. Thinking on your feet you remember the Fedora virtual machine you were tinkering with last night in the `demotestwtf17` namespace on the cluster. Perhaps you can quickly use that to demo a live migration?

The Acme Financial Services team have put you on the spot, can you pull off a virtual machine live migration? 😅

<Zoom>
|![workshop](/static/images/hackathon/broken-vm-wojek.png)            | 
|:-----------------------------------------------------------------------------:|
| *He's dead Jim...*                                                            |
</Zoom>


## 3.1 - Initiate the live migration

For this challenge, your team must live migrate the virtual machine named `fedora` in namespace `demotestwtf17` from one node to another and record the name of the node the vm has migrated to.

No command line is required. However before you can complete the migration you will first need to investigate and correct why the virtual machine is not running. You had one too many coke zeros last night and can't remember how you got the machine into the state it's in 🤦.

Documentation you may find helpful is:
- https://docs.openshift.com/container-platform/4.15/virt/live_migration/virt-configuring-live-migration.html
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/advanced_vm_management/virt-specifying-nodes-for-vms.html
- https://docs.openshift.com/container-platform/4.15/virt/virtual_machines/advanced_vm_management/virt-schedule-vms.html

## 3.2 - Check your work

If the virtual machine in your `demotestwtf17` namespace has been live migrated to another node successfully please post a message in `#event-anz-ocp-virt-hackathon` with the message:

> Please review [team name] solution for exercise 3. Our vm has migrated to node [node name].

This exercise is worth `25` points. The event team will reply in slack to confirm your updated team total score.
