Wednesday 31 August 2016

Hyper-V - Creating VM, Export VM & Import VM - Part 5

Hello Everyone,

In this post, I will show the process the to create Virtual Machine, Export Virtual Machine & Import Virtual Machine step by step.


PART 1: To see Hyper-V Features, Click Here!

PART 2: To see Hyper-V Installation Process & Console Overview, Click Here!

PART 3: To see Hyper-V Network Configuration Concept & Process, Click Here!

PART 4: To see Hyper-V Console Overview & Configuration changes, Click Here!


Let's start in details...


How to Create Virtual Machine:


Open Hyper-V console, Click on New & then click on Virtual Machine in Actions Pane from Right Hand Side:


Give Name & Choose path for deployment (NOTE: If You have already defined VM deployment path in Hyper-V Settings then it will automatically pick the same path):


Choose Generations Type & Click Next: (To know difference between both generations, See Hyper-V Features: Click Here!)


Provide Startup Memory and tick mark to use dynamic memory if You want:



NOTE: 

In Hyper-V 2012 R2: 

  • Maximum Memory Limit for Virtual Machine is 1 TB (1024 GB).
  • Support maximum 64 Virtual Processor per VM.


In Hyper-V 2016: 

  • Maximum Memory Limit for Virtual Machine is 16 TB (16384 GB).
  • Support maximum 240 Virtual Processor per VM.

Tag network if You want or You can add later as well, Click Next:



Now, You have to choose Disk: Either Create New Disk for OS or use existing VHD or add it later, give Path and size & click Next:



Select the OS ISO or add it later:



Check Summary & Click Finish:



Once VM is created, Open settings to change  Virtual Processor because by default it is 1:




Change Processor as per Your need and also You can set resource control options:



Once done, start VM to install OS: (OS Installation Process is same so I will not show that)




VM Installation is in process:



Virtual Machine is ready now:







How to Export Virtual Machine:


Either right click on VM & Click Export or Click on Export from Action Pane in right hand side of Hyper-V Console:





Give path and Click on Export:




VM Export status can be seen in Hyper-V Console:



Once export is done then it creates three folders: Snapshot, Virtual Hard Disk & Virtual Machine. If any snapshot was also created then it will export the same as well:




How to Import Virtual Machine:



Click on Import Virtual Machine from Action Pane at right hand side of Hyper-V Console:



Click Next:




Give path for Exported File & Click Next:




Click Next:




Choose Import Type from below & Click Next:



  • Register: If you have a virtual machine in which you have already put all of the virtual machine files exactly where you want them, and you just need Hyper-V to start using the virtual machine where it is then this is the option you want to choose.


  • Restore: If your virtual machine files are stored on a file share / removable drive / etc… and you want Hyper-V to move the files to the appropriate location for you, and then register the virtual machine then this is the option for you.
  • Copy: If you have a set of virtual machine files that you want to import multiple times (e.g. you are using them as a template for new virtual machines) this is what you want to choose.  This will copy the files to an appropriate location, give the virtual machine a new unique ID, and then register the virtual machine.




Check Summary & Click Finish:



NOTE: As I already have VM in my hyper-V so I deleted the same and will import from exported files.

Virtual Machine is Imported & it is in saved state:




Now, You can start the virtual Machine & Use it in different Hyper-V. When You start the Virtual Machine, It will start restoring all configurations:



NOTE: VM Export & Import is used when You need to move Your Virtual Machine from One Server to Another Server which are not in cluster... Also It is used to move Virtual Machine from 1 Cluster to Another Cluster as well... Multiple scenarios are possible...

After VM is restored, It is ready to use:





This is all about VM creation, export & import VM.

Happy Reading!!!


If You like my post then follow my updates:


Join my Facebook group for updates on trending technologies/technical references/issues etc:

No comments:

Post a Comment