- A user account with administrator permissions for the computer.
- Enough memory to run all the virtual machines that you plan to run at the same time.
- Software to install as the guest operating system for the virtual machine (ISO).
Install Hyper-V so you can create and run virtual machines on this computer. To install the Hyper-V role in Windows Server 2012 or Windows Server 2016. You can install the Hyper-V role from the Server Manager or by using Windows PowerShell.
Install the Hyper-V role by using Server Manager.
- In Server Manager, on the Manage menu, click Add Roles and Features.
- On the Before you begin page, verify that your destination server and network environment are prepared for the role and feature you want to install. Click Next.
- On the Select installation type page, select Role-based or feature-based installation and then click Next.
- On the Select destination server page, select a server from the server pool and then click Next.
- On the Select server roles page, select Hyper-V.
- To add the tools that you use to create and manage virtual machines make sure to check the box if it unchecked , click Add Features. On the Features page, click Next.
- the Create Virtual Switches page, Virtual Machine Migration page, and Default Stores page, select the appropriate options.
- Virtual Machine Migration is basically allow the VM to between servers.
- On the Confirm installation selections page, select Restart the destination server automatically if required, and then click Install.
- When installation is finished, verify that Hyper-V installed correctly. Open the All Servers page in Server Manager, select a server on which you installed Hyper-V. Check the Roles and Features tile on the page for the selected server.
Step 2: Create a virtual machine.
You can create a virtual machine by using the wizard in Hyper-V Manager or by using Windows PowerShell. In my case I am using Hyper-V Manager.
To create a virtual machine in Hyper-V Manager.
1. Open Hyper-V Manager.
5. On the Specify Name and Location page, type an appropriate name, click Next.
6. On the Specify Generation page, choose the generation of this Virtual Machine, click Next.
7. On the Assign Memory page, specify enough memory to start the guest operating system, click Next.
8. On the Configure Networking page, connect the virtual machine to the switch you created when you installed Hyper-V, click Next.
- Create a virtual hard disk.
- Use an existing virtual hard disk.
- Attach a vitual hard disk later.
- Install an operating system later.
- Install an operating system from a bootable Media.
- CD/DVD Drive.
- Image file (.iso). This is my option I choose.
- Install an operating system from a bootable floppy disk.
- Install an operating system from network-based installation server.
- Install an operating system from a bootable Media Image file (.iso).
- Click on Browse.
- Select the location for the ISO you have, then click open.
Completing the New Virtual Machine Wizard.(Waiting)…
Step 3: Install the guest operating system.
step assumes that you configured the boot media for the virtual machine
when you created the virtual machine. It can’t be automated or done
within a Windows PowerShell session.
To install the guest operating system.
- From Hyper-V Manager, in the Virtual Machines section of the results pane, right-click the name of the virtual machine and click Connect.
- From the Action menu in the Virtual Machine Connection window, click Start.
- Proceed through the installation.
- From the Hyper-V Manger, look at the VM’S, you get all the information you need about the VM you are running like, Name, State, CPU Usage, Assigned Memory, Uptime and status.
- From the Hyper-V Manger, look at the Checkpoints, you see how many Checkpoints you have or not have.
- From the Hyper-V Manger, look at the VM you select and you can see live window of the VM also Summary, Memory, Networking and Replication.
- On the VM Configuration, go to Management then Automatic Start Action,when the physical computer starts. I chose Automatic start delay 120 seconds. so it gives the physical computer be up and ruining without extra loading applications.
- On the VM Configuration, go to Management then Automatic Stop Action, when the physical computer shuts down. I chose Save the Virtual Machine State.