2 hours 58 minutes
You are watching model file fees. Fear Advanced features Lesson one. Migrating virtual machines.
By the end of this video, you'll understand migration types have to use the motion and storage emotion to migrate, powered on virtual machines from one year's excite or another.
Now, a virtual machine is made up of two parts. A computing part which is the content of the memory and whatever tasks are awaiting to be executed in the CPU
and a storage part, which is the actual data off the fertile machines operating system and the data generated by the applications running on the operating system. So migrating virtual machines involves either moving the computing part to another host
or moving the VM data from one data store. Tow another data store
or moving both of the computing and the storage to another location altogether. But here's the thing. Some 30 machines can be migrated wild being powered off. They hold no critical application, and so downtime can be tolerated. In such case, we talk about cold migration.
On the other hand, some virtual machines must stay awake at all times so you can't afford even a second of downtime. Think about VM holding a database that is receiving thousands of transactions a second. In such case, the VM must be migrated while staying powered on
and recall this heart migration. Our focus in this lesson is going to be hot migration.
We'll start off by some definitions.
Hot migration comes in three flavors. If you're migrating the computing part of a power on V M. This is called the emotion
If you're migrating the storage part off he powered on P. M. This is called storage of emotion and if you're migrating both the computing and the storage off powered on V M. This is called shared nothing emotion Now to perform any type of emotion, there are some requirements to be met. Here's a list of those
The virtual machine to be migrated must be stored. Any shared data store that is visible to the destination. He is excited.
It must not have any CPU affinity Configured, appear must not have any connected resource is like an I S O image that is not shared between the source and destination hosts.
Now the destination hosts, to which we are migrating must have the same CPU family with same instruction sets as the source. Yes, Excite House.
And finally, you need a dedicated network for the motion between the source and destination hosts.
If you don't have enough physical nix on your server, you can use the management network as the demotion network as well. But that's not recommended.
Let's now see how you migrate. A virtual machine envies enter.
First we need to create the Emotion network,
and this involves creating of'em Colonel Port for the emotion on each of the two s X I hosts.
To do so, click on the first host, then go to configure and then Veum, Colonel Adapters.
Then click on Add Networking
True's VM Colonel Network Adapter and Click Next.
Now we're going to create a new V switch for our Veum Colonel Port toe. Isolate the V motion traffic from the other types of traffic.
Let's now at v M Nick tow our new movies Witch.
So click on the plus sign and True's Am Nick, too
in the network label, choose a name for the VM Colonel part group
and yes, Avian Colonel Port also needs support group to carry traffic. But unlike Avi Import Group, this is a V M Colonel, part group that will be used for this Veum colonel Traffic only. So let's name it fi motion. Leave all the rest of the default
checked of Emotion box to indicate that this PM Colonel Port will be used for V motion. Traffic only. Click next,
and now we need to configure an I p address for the VM Colonel Port. Let's use the static i p. I already set up my physical network with the subject for the motion,
so let's give it the 17 to 2020 not 10.
It's a slash 24 network.
Click on Override Default Gateway and enter the I P Address off the default Gateway, which in our case is the 17 to 29 29 1
Review the summary and hit finish,
and there's our new Veum, Colonel Port for the emotion labeled as V M K one.
Let's now do the exact same thing for the second host.
Everything is going to be the same, except for the I P address.
Let's give it the 17 to 28 or 29 20
default. Gateway Actress is the same
review The summary and hit finish
great the Emotion network between the two hosts is now ready.
Let's try to migrate to the database virtual machine.
But before we do that, let's first make sure that the VM is stored on a shared data store. Otherwise it won't work.
So click on the V M and on the middle pain click on data stores
and you can see here that the VM is stored on the data store called S X I Dash Data Store.
Do you recall this one? This is a local data store, so we can't v motion this virtual machine without transferring its files to a shared data store. Now how do we do that without powering off the virtual machine? Well, using storage for emotion
so storage the motion will let us migrate to the virtual machine files from this local data store. Tow another one. Let's do that
right. Click the virtual machine and choose migrate. There are three options change Compute resource is only
This is the motion
changed storage early, which means storage, the immersion and change both, which means shared nothing. Demotion.
We are interested in the second option. So True's change storage early and then hit next
Now we have to choose where to migrate RV in. That is the destination data store.
Let's move it to the shared ice scuzzy data store that we created in the previous model.
And don't forget to choose the thing provisioned mode
and then finish.
You can monitor the storage migration. In the recent past,
I'm gonna speed up the video
on and done.
You can see now that our virtual machine is stored on a shared data store,
it's now time to demonstrate the emotion
we're going to migrate the computing part off our database. PM from ear ***. I want toe. Yes, excite, too. So right. Click the VM and choose migrant.
This time we will choose the first option.
Change. Compute resources only.
Choose the destination host toe, which you want to migrant. In our case, it's the second years Excite House,
and you'll receive this warning concerning game where tools heart beats not being received. That's actually not a big deal, and it's truly not a requirement for of emotion. So just ignore that and hit next.
It will not ask you to choose a destination port group for your virtual machine
we'll keep the same metric in configuration. So leave it to the same port group and hit next.
Now leave the scheduling off emotion too high priority. This will actually cause the V motion process to be prioritized over other processes in the years Excite House, and thus it will finish more quickly
review the summary and then hit finish.
Now, behind the scenes magic is happening.
The motion is one of those features that makes you wonder if the engineers that created it at Vienna, where are actually human
and it's done.
And you can see here that our database Veum is now running on the second. Yes, X I host with zero down time.
Impressive, isn't it?
That was a brief demonstration. Orphee Motion.
Thanks for watching. And I'll see you in the next video.