Azure Cloud Migration Services Migrate Hyper-V VM to Azure Cloud

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi there welcome back in this lecture we're going to migrate some of the virtual machines which are available on our hyper-v server and migrate to our azure so to do this we actually have to go to azure migrate as a service as we talked in the previous lecture or the overview lecture and from there you have an actually different options to migrate so in our case this demo is limited i know this is going to be close to 25 to 30 minutes but if we try to do it at one go it would go close to one to three hours between but i'm trying to minimize the time that it takes actually for the replication and all other parameters considering and now for this demo we are actually trying to migrate the physical servers so there are different scenarios so if you see here we have here service migration database migration vdi and web apps and data box so out of this we are going to actually work on the service at this point of time and for that as a first step um in the overview lecture we have to create our project uh project basically so any of these you know five of these migration goals you have to actually create your project so that's the first step so let's create a project by clicking on create project um this project is going to be in my one of the resource groups so i have already created easy mig demo as my resource group so i'm going to put it there and i'm going to give a meaningful name so that i know that it it's going to be a a project specific to my hyper-v so i'll just give without any spaces so like i have some of the web servers might be running on my servers uh so i'll just give us a web server migration project one or something like that and this is going to be geography again to years because all these servers are located in geography location so i'll just use that and i'll stick to that and create this migration project what would happen why we need to create migration project the reason being so whatever the replication gonna happen or the things which you wanted to consider for the migration of physical service that all comes into this project so this is called the uh migration project so if you want to change or you might have multiple projects then simply have come back here and click on change and select whatever the project you want in a switch so that the information that you are going to discover or you're going to assist will come in their specific project that's how it's going to work so that's the frame so what we're going to do is as a first step we're going to do the assessment that would actually give you the assessment of the server whether it can be a good candidate for migrating to azure or not and you know that you would come to know that you know what kind of server it is all that information and then you are actually going to do the migration that's this so as you migrate which which would be the second step so as a first step what we do is either in the first or second step as a first step for these two phases would be the discovery later point we do and we assess or we replicate or we migrate so it all depends so in this case it's going to be a here discovery and then it's going to be ss and then uh in the other section we're gonna instead of the uh overview we would actually go for the migration so if you just click on the tools that are available if you see here these all are the third party available tools which are which does this migration made easy for you you see if you read these documentation which were provided by marketplace let's say claude recon who's gonna do this is they're gonna you know basically do the assessment and discovery on that for you and give you a wonderful report whether it can be migrated or not if you tell you are not trusting or you're not going with microsoft uh built-in assessment for servers yeah you do have these are coming from marketplace and in fact you're gonna pay for that so as a first step i just clicked on the uh disk level so what happens is with the disk cable either you wanted to migrate from either vmware or from a physical server or from a hyperv you have to choose here or if you have any csv file that needs to be imported you can do that for the replication in our case we would actually go with the discovery process and this actually involves few of these steps and you see here these steps whatever you have here the generating is your migration project key downloading migration airplanes and you know preparing your vm all that appliances on your vm it all remains the same thing but what differs is whether your source is actually a vmware or from a hyper-v or a physical server you need to decide this first and once you decided once you know you know which one you're going to choose so in our case i'm actually trying to demonstrate with the hyper-v the steps remain same either you go with a vmware or any other the four steps remain same the first one and the second third fourth uh so what happens is i'm going to talk all these in detail with help of hyper-v so you see here i have already logged into my hyper-v server this is my hyper-v and i can have only a single vm here and this vm is running perfectly without any issues and so i just wanted to migrate this this vm whatever here this is going to migrate to my azure cloud that's what we are going to try to do it if you have already gone through asr as your site recovery as a lecture yeah that's also very similar but what happens is that we are actually talking in the asr or for the failover and other parameters we are actually talking here it's going to be migration just for the migration and in fact the entire back end for as you migrate whatever we are trying to do is going to be again depend on asr that's nothing but azure site recovery services but it would be a little bit different or the front end might they have you know changed uh to show you you know instead of you know you go and work with the as your side recovery blade you are actually working in as you migrate bleed that's only difference technically and but in the back end everything remains same so let's have a look on uh properly about this vm so this vm is just a vm with the name called a small vm with the two core processor and and about you know 8gb ram so what happens is here you are actually going to download a vhd file so this vht with the help of this vhd we are going to actually create a airplane so we actually call this as the airplanes so why we call this as appliances and within our hyper-v we create this with the help of this vhd so it's not just a vht it is actually a complete exporter of a vm so we would actually import that entire vm and then it's going to spin up as the vm it would ask you for entering the username and password once you enter that you have to run some kind of in a wizard so for that wizard also it automatically starts a with a web page or to load it for you so you just have to follow that video we're gonna view that maybe in another 10 minutes or so but just wanted to show you and explain to you there are actually in the step two you have either vhd option or maybe a gif file which contains certain uh powershell scripts that's gonna execute on existing physical or a virtual machine so that that becomes as your appliance why we call appliances it actually sends the information back to azure uh in a way that you know how many vms are there whether um it actually helps the discovery process because if you remember we are actually doing the discovery so it's gonna help us as the airplanes or the scrapes it's gonna actually help for us in terms of the discovery purpose okay so that's a step step two but what exactly the step one step one what happens is this actually whatever the name you're gonna give here and you're gonna generate a key so this is very similar um what we do with the asr but here it's gonna generate lengthy key along with the subscription all that detailed and and that information are registered in the process of azure appliance so we need to input that information in the airplanes then uh then automatically you know that that's nothing but you know you're actually implementing the uh appliance so that means you're importing exporting and once you export it once you imported this airplanes with the uhd format it's gonna give here within this process of setting up the airplanes that key and then you wait for some time for the initial discovery and then that actually sends the information back to is your cloud and you can view the assist information for you so that's the ultimate goal so we're going to do that all from right now so let me enter here a airplane's name and generate a key so that's going to be my airplane's name and based on that it's going to create a key flash and this key is a unique key and would work of to generate or to register within my microsoft azure migration project only so it might take some time and now the key has been created if you see here in a minute we are going to get this migration project key so what i will be doing is i would be actually copying this key and i would save somewhere and also i have to download the file which is the close to 10 gb of the file if you see here that's coming as a vhd format which is coming from the step two so once this uh is completely downloaded as a zip file of which will be available in my downloads folder if i'm correct and from there what i'm gonna do is i would be extracting this so i just got downloaded so i'm going to extract to my folder a specific folder just wanted to be assured that it should be in a right folder so i have created appliances folder and the c column vm so i'm just you know putting there to extract everything that it has so in this case it has close to 10 gb plus of the content so it's just gonna extract it in a minute or so so this extracted files is nothing but exported a virtual machine so as a next step i have to import to my virtual machine this expo this extracted files so if you just go to the folder you would be getting like virtual machines snapshots all that you know normal things like virtual machine hard disk snapshot all that are available so as a next step i'll simply have to just go ahead and import it so i'll just copy to the appliance or maybe to the actually to the airplane's name but you know i'll just go and import here and later point i'll just put a backslide so that it would actually discover it so i'll just enter here uh backslash and that folder of azure application appliance and then click on next and this way i'm going to choose as the existing unique ids so that would actually use the same configuration and if you see here i got a small error the reason being my machine does not have a 8 code processor it does the test machine so my physical machine hyper-v is a test machine so i'm just gonna reduce the cpu power uh to four and then also the ram later point i'm gonna choose here the network called as vm nat which would give the internet accessibility and if i just go to the settings i would like to adjust according to my existing memory so let's say i just wanted to go for 6gb or something like that and then i would start the virtual machine so when i start it's going to do the windows oops setup that means the couple of reboots and then it would actually prompt for entering the user id and password you see here the license terms and all that pre-populated for me from that virtual appliance and it is also asking me to enter the password so i just have to set some password so that that way i can actually log into this uh vm as appliance and uh opposed to that if i have internet and automatically actually if you see here i don't have internet so i'll just you know pause this video for a minute or so to configure my ip address so that i know i'll be getting the proper internet and as soon as i start this if you see here it actually pointed here automatically opened with a web page and it is actually doing all the pre-requests that needs to be connecting and registering with azure migrate as a service for that it's actually doing all the backend things for us uh in in the automated fashion for us and this url uh is a purely purely uh generated with the airplanes on a port so if you see here new updates go to install i'm going to actually refresh the page and that's it it's going to actually takes me to the second step so this is the first step where we have actually done the pre request and the second step is registering as you migrate you remember we did actually copied a key and that key to be you know pasted here so you see here as your migration project key i just copied one more time and i can paste here the reason being you know i have to um it's it's not actually rdp enabled right so i'm just gonna paste it so as it is instead of typing so that takes a minute or so and it's just copied and if i just click on login it's gonna pop up a new window i'll come up with a some code automated code that's gonna pre-populated for this and if i just click on next it's gonna actually ask me for username and the password uh to run the powershell script the reason being in the in the back end actually in this specific to the second step that's the azure uh migration that's where actually it's gonna run in the back end a partial script so to do that i need to know simply uh log in with my credentials one more time and you see here it says that hey you can close this safely because i finish it in the backend for the powershell applications to run and configure for you that would actually go ahead and register you see here it's gonna do all that registration with the powershell and it might take 10 minutes also so i have done that registration automatically by passing all that and now if you see here this is where actually i'm gonna use the credential let's say i wanted to enter a wrong credential so let me tell you why these credentials are needed so these credentials are needed in order to discover from your hyper-v server let's say i gave as admin as a wrong and in fact because there's no admin account i have as a party account i would be in a giving later point but let's say i just gave the wrong credentials and see if i try to discover a single multiple items so in my case i'm gonna discover a single uh virtual machine with the help of existing credentials that we have given and it's if i just put my computer name or maybe ip address you see here and it's going to actually that's nothing but my hyper-v server so it's going to fail actually you see the validation is failed the reason being the account is does not exist or might not have a permissions so what i have to do is i have to re add that specific account that would actually have a permissions fully uh for hyper-v manager so i'll just edit this the password remains same just the account so let me type here as a party that's account id and click on save so it's saved and now if i go back and see here validation is successful thank you and see i'm gonna actually if i want i can start revalidate or start discovery so when i click on start discovery that means the first and second and third step three steps has been done the first one is a pre-request second one is registering with azure migration service third one is entering the credentials and giving the server hyper v server uh name so it's gonna actually start discovery in case if you are running with some kind of test environment if you don't have a proper dns you might get an error so just enter the host names simulator like this in the host file uh give your computer name and the ip address of your hypervisor that would actually fqdn kind of thing you know it it does that a discovery phase so if you see here the discord is completed you have to go to the azure portal and review the discovery inventory so whatever the step we have done here let me go back here and explain to you so what we have done is as a first step we have created a project for hyper-v and we generated a key if we downloaded this vht file we set it up a appliance within our hyper-v server and we also initiated the discovery which is we have what we have done now and that we waited for some time to collect the data so this is the complete four steps that we have done so post to that what if we have to do we have to just go back to his your migrate and refresh it because the project that is not it updated so select the proper project which is migration project and click on refresh when you do actually refresh it's gonna pull up the latest information that actually formed as a discover so in this case you see here two service code discovered and the next thing is we are going to actually review that as the assessment so we have done the discovery next is assessment so if i just go to the assessment this is a complex thing i would say but it's very important that you know how you wanted to migrate let's say you want to go for three years reserved instances this assessment you want to see or do you want to just go for a different region or or pay as you go model all that different things you can you know check out here let's say here location i want maybe australia location of canada or east us and then i might have a different v different vm series i needed that i can choose or maybe a reserve instance for one year three year or no reservation that's nothing but a pay-as-you-go model so i can choose different things here so why we are talking all this is based on this information you are actually getting the assessment information so if you are sure that this is what you wanted you can simply save so in my case i just want you to go for the built-in because there's nothing much for me instead of you know pay as you go because mine is pay as you go if not if needed i can choose for other offers all that and also if you have the windows licensing you can choose the hybrid or licensing option also so i'm just discarding this changes i'll simply go back here for assist um accessing the server so you see here i'm just selected here default and the second thing that's the first thing is the basic and we have selected here the machines which are coming from our marketplace and i'm entering here assessment name so with this name the assessment name will be available and later on we will be using that assessment for further analysis of migration all that so i'll just enter here assessment for web server for california web servers or something like that and you see here i'm going to create a new group let's say you have multiple groups why we need to create a multiple groups is within that server you might have to group like you know two web servers and one sql server or might be an lb servers or front-end a back-end service to be known in one group or you wanted to put it some other service in a different group which might be a represent a different web or different project purpose you are actually putting into a different group so you can do that grouping here so in our case we're just going with a single group so i'll just choose your one group called uh here by selecting the virtual machine which is found from the uh based on the discovery so in the previous phase which we have done is a discovery right this is going to be assessment so in the discovery phase i found one server so this is a server so this server uh i'm going to actually group into this specific group and you see here that's a group and i'm going to create as the review and create a assessment so this would actually finalize our asset discovery and assessment phase as a next step we're going to actually do the one more discover with the migration services so the part one is completed i put it which is assessment uh a tool section so this section is completed let's have a look on you know uh by doing a quick refresh actually so whatever we have to do we actually select the project and do a quick refresh so that would actually properly it's the latest data here and you see here assessment is one now so if i just go to this assessment i get a wonderful report here and you see here the convergence rating is very important in this case this actually tells about the data that has populated so let me click on that so you are actually getting here as your readiness information ready for azure and monthly cost what would happen if this vm is migrated based on the values that we have given so we have chosen for ps you go model we didn't choose in maybe uh three years reserved something like that if at all you put that values based on that values this assessment report will generate so you can create as many as you wanted and you would actually get the an idea based on that and if you quickly read actually what is happening is the discovery was not even happen a d a complete day so it would actually impact or it would not give you the exact information so that's why you have to wait for some time to actually populate the data so that you know that what's the input output in the storage it's gonna use all that so you can see here it's gonna actually boot it with the bios mode and the networks it's not a ufi in fact anything disks how many number of disks and the core cpus a memory vsn just a 2gb for that server and all that information it's actually pulled up as the assessment so now we know the assessment which we use for the by using the microsoft default assessment we didn't use any of the third party assessment we ran with the microsoft azure specific specific assessment uh services and that's good the next step is a migration tool so once we complete this assessment tool we would move to migration tools so we have done the assessment so let's jump into migration that's the next step which it is talking about it so so within this again we have to follow from left to right that's a discovery replication should we go so this is a discovery so as we talked earlier also so the steps remains always same like in the previous uh for the assessment side also we did for the installing the airplanes all that similar fashion here also whether you do it in the previous assessment for vmware as airplanes or for hyper-vs appliance similar thing similar options here so it remains the same thing it doesn't matter for us whether it's a hyper-v or not so i'll just go with uh hyper-v not the gcp or other cloud or maybe physical thing so i'm going to actually choose here the thing or from the east us this is very important because later point you cannot change so what you're trying to do is you know you got the assessment information now you are content that it can be migrated and this phase you are actually discovering the machines and you wanted that machines to target to a specific region that the region cannot be changed later point so in this case it's going to be east u.s so i'm going to choose that and once i've chosen that i'm going to create this specific discover information so let's click on create resources that might take a minute or so to create the specific target with hyper-v as the target here so that's good and it has done that step now if you see here there are three more steps out there the first uh step what we have done is we have chosen the we have actually chosen the hyper-v as a virtualization and we have also selected the target region within the first step so i would say this is the second step here what would happen is actually uh this is nothing but if you remember as our lecture we actually downloaded some kind of credentials which we have shown to our sr that's a site recovery recovery installation once we you know install that we have shown that similar thing here again we are going to actually download here the asr file which is nothing but the seo site recovery provider.exe and also the credentials from here and we would actually install this exe on our hyper-v server that's nothing but asr component and you are going to register that component with this credentials which we are going to download and then we are going gonna actually do the once it is registered it's gonna show here that hyper-v server and then we would actually click on registering and then we are gonna actually finalize the registration so these are the steps are pending in the which are gonna upcoming so let's do that one by one without any confusion so here it says that preparing hyperb host for that you need to download so i just downloaded that credentials that's a nothing but a secure uh vault credentials and also i'm gonna download that so in fact what i've done is actually i downloaded that and i'm actually running that exe file so it's straightforward as your site recovery provider setup once the installation is completed click on register that's going to actually ask me a key which we have downloaded that's downloaded by using that button which is in my downloads so i'll choose that download it's going to actually register this site name all that to azure migrate services so it's nothing but in the back and it is actually doing the sr right and once this is done in a minute or so if i just you know refresh this i would actually get it as the this is already registered one of the hype creek console so i'm just going back to the discovery so i'll see here again one more time with the hyper-v and you see here it's actually one is connected so what is pending is the pending is a finalizing registration so i'll just simply click on that registration so earlier the exe was installed on my hyper-v server it was connected but it was not actually fully registered so when i click on this button it's going to register it and if i just go back here and do a quick refresh that would actually pull up the information right so you see here that's where actually we have found the discovery now it's time for us to do the replication so here i'm actually choosing the source as hyper-v and similarly this application is migration assistance what we have run earlier you remember that we have run all this project all that earlier for the assessment purpose so we're going to use that and we're going to select one whatever the vm we wanted to migrate so in our case i have to select single vm so in this case usca srv 2019 and then click on next so that would actually uh picks that vm to a target location so if you remember asl also we are actually choosing the fvm because when we migrate it should have a proper v-net as well as for the storage purpose we need to have a storage record so these things are quite same uh what we have done with asr so similarly with the migration that's azure migration for the replication purpose uh in fact actually post replication what you do is you are going to actually fail or when you fail over you need to have a v net and also the storage right so that's why it's going to ask us so i'm going to choose your easy make demo that's my thesis group and my resource for storage account is this and we need that we have already been it my subnet i can choose and if i want availability all that scales that i can choose if my machines are wanna use for hybrid benefits i can choose that and this is where actually uh you can choose you want to you know migrate that to core 4gb ram to something because i had actually 2gb so now i can go for a different size of vm and also i can choose here the os type which is definitely windows os and then my size of hard disk and then a replicate so what would happen is so earlier we registered the hyper-v server now that vm we have chosen here as the replication job so this would actually does the back-end job for replication so what else spending is once it is replicated in fact i just paused and resumed so it's just replicated and it's gonna refresh once it's refresh it's gonna show as the one replicating services one if i just click there it's going to show me one server as a synchronized with a zero person because it's just done right so if i just wait for some more time it's never actually performed the migration also and zero percentage and i'm gonna actually wait for maybe 30 minutes or so to do the complete replication poster that i would actually go with the migration step so because we have done the discovery replication is done and then the migration so if you uh if i wait for 15-20 minutes or maybe 30 minutes or one hour based on my availability bandwidth it got replicated and you see here it's now status is completely protected that means i waited in fact i don't know one one and half hour for complete replication of 127 gb um based on my bandwidth availability in fact i have a great bandwidth that's why it was replicated quickly and in your case it all depends on the size of your vms and the bandwidth availability so once it is replicated either you can do the migrate button there or you can actually let's actually have a look on here so the application is healthy there's no errors you can do for test migration and the final step would be the migrate so all that process you can follow and in our case i'm going to actually click on migrate and if you see here in order to prevent uh the data loss information it's going to actually shut down my physical vm my vm which is on on my on premises network and then it's going to start the migration to switch over to azure cloud so that's it's that's what it's going to do it and before it actually does the final shutdown it's going to do the final duplication too so you see here it's still running my vm this is a vm which is running and which is in a static state and i'm also shown here this is a vm which is running good so i'll say that hey you go ahead and restart sorry shutdown and if you see here i'm not showing here as your migrate appliances uh but instead if i just go here other i can actually pull up here this is the vm which i wanted to migrate so definitely i would you know select this and it is fully fully protected and it's healthy so it was never tested for the migration also i'm gonna do that now so i'll just select that and click on migrate these are all of these technical steps actually you have to follow one by one so if you just quickly notice here and this might take a minute or so because it has to do a initial one more final actually sync up to azure cloud or for your migration services and then it simply executes a shutdown button if you see cpu spiked up and then it has shut it down and turned off and that's good and you see here i'm gonna actually wait for some time and starting migration is completed uh successfully and if i just go back to my as your virtual machines i have my a new vm which was just created which is from my on premises and if you remember with asr also we never had a public ip information and also we never had the nsg all that so you need to consider all these changes also if at all you know you have just migrated so make sure that if you have a side to side vpn you will not have any problem because the mission is available with a new ip address or if you have a proper v nade which uh which can which consists of uh correlation with the on-premises network to there there's no down time for your samples so that's good and this is where i'm gonna actually review the entire thing what we have done i know that this is the 35 minutes already we have passed and it's good to you know review what we have done so far so we started as your migration for service and then within this we have as a step one as we have done the assessment and step two as the migration and for the assessment there are uh typically third party uh tools also available but we use the microsoft default tools but those third party is actually coming from market please that means you have to pay and you can use it and for the assessment we have done initially discovery then assist and then we have also reviewed what we found and next step we have done similar thing so let's go back here and see you have actually two virtual machines got you know assessed and one group we have created we did talked about the groups like you have a multiple groups you can do it and also assessment is just the one assessment we have done you can go for multiple assessments definitely and in this case uh once we have done this major phase one we have done the phase two in this case that's the migration tools and we started with the discovery then replication and then the overview so uh within this uh discovery we found there you know obviously there are a one single virtual machine we wanted to migrate so that's a machine so we followed the replication and then we tested the migration and then we migrated one machine successfully and we found in the infrastructure side one machine that's the hyper-v machine uh which was connected and the type is basically hyper-v so within that hyper-v whatever the machines are there that can be automatically pulled and you can see the job uh tasks which are all of them are successful and there were no events which are failing all that so that's what we have done so like we started with the assessment and migration of that specific vm i hope this lecture is useful for you thank you for watching take a time to review and replay if you have any questions
Info
Channel: Paddy Maddy
Views: 1,159
Rating: undefined out of 5
Keywords: Azure cloud migration services, migrating on-premise vms to azure, azure migration tool, azure migrate, migrate vms to azure, server migration, azure migration tools, azure migrate physical server, azure migrate hyper-v, azure migration assessment tool, azure migration from on premise, azure migration strategy, azure migration step by step, azure migration services, azure migration challenges, azure migration best practices, azure migration program, azure migration tutorial
Id: 4AfKQ0nq1Nc
Channel Id: undefined
Length: 38min 14sec (2294 seconds)
Published: Mon Dec 28 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.