7 tutorials Hyper-V

Hyper-V is a server role in the Windows Server operating systems that let you create and manage virtual machines. The Hyper-V role can be enabled using the server manager dashboard in Windows server 2008, Windows Server 2012, and Windows server 2016. you can also enable the role in Windows 8 and Windows 10 by going to Control Panel > Programs > Turn Windows features on or Off 

Top Hype-V features

  • Backup and Restore in Hyper-V you can easily backup and restore  VMs
  • Checkpoints checkpoints in Hyper-V are essentially snapshots that you can capture the state data and hardware configuration of a virtual machine.
  • Dynamic Memory in Hyper-V you can assign dynamic memory to a virtual machine.
  • Export and import easily export and import VMs to your hosts
  • Hyper-V Replica Hyper-V allows you to replicate virtual machines from site to another. this is good for fail-over purposes.
  • Live migration This feature allows you to move VMs live from one host to another…

Hyper-V requirements

  • Software Hyper-V is a server role so you need to have Windows Server 2008, 2012 or 2016 installed in order to enable it. There is a free Hyper-V version you can download from the Microsoft website that lets you install just the server role in the server.
  • Hardware  Hyper-V needs hardware-assisted virtualization. this technology is available in processors that include a virtualization option—specifically processors with Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) Hardware-enforced Data Execution Prevention (DEP) must be available and enabled.

Guest OSs supported

In hyper-V you can create guest VMs using most Microsoft desktop operating systems starting from Windows XP, and server operating systems starting from Windows server 2003. You can create VMs from most up to date Linux distributions like Ubuntu, Redhat, CentOS, Suse, etc. Linux distributions are only supported in hyper-Gen1 mode for now.

Hyper-V Tutorials

Most Popular Linux distributions are supported in Hyper-V 2016. Below is the list of all the Linux distributions officially supported by Microsoft in Hyper-V in Server 2016. Red Hat SUSE OpenSUSE CentOS Ubuntu Debian Oracle Linux All features available for Windows guest OSs are available for Linux as well. Features like adding and removing virtual NIC and resizing and and adding disk drives without rebooting, etc.

If you have enabled the hyper-v  feature in Windows 10, but now you need to to disable it for some reason, you can do that following these two methods: Using PowerShell Open PowerShell with administrator privilege and type the following command:  Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All Type “Y” to Reboot the computer. After rebooting the computer the hyper-v role should no longer be installed on your computer. Using Control Panel Click on the Start menu and search for “Control Panel” after the control panel comes up, click on “Programs” Then click on “Turn Windows features on and off” Then “”uncheck” the Hyper-V feature from the list: Click on OK and reboot the computer when it prompts you for..

In this tutorial I will show you step by step how to enable the Hyper-V role in Windows Server 2016. Windows Server 2016 was released in October 12, 2016 and it packs many new virtualization features. To learn about all the new features in Windows 2016 take a look at this section. These are some the features I find interesting in Hyper-V 2016: Hot swappable network cards and memory Yep! no more reboots to add network adapters or memory to VMs.  With hyper-V 2016 you can add and remove network adapters and memory to a VM without rebooting the server.  This feature only works on Gen2 VMs and it works on Windows and Linux VMs Nested Virtualization This feature let you run Hyper-V on a virtualized server. In previous Windows versions, you needed to have a physical server to enable…

The pitfall of VM backup is that when it fails to work right, it is a disaster itself.  Many VM backup applications, whether on ESXi or Hyper-V, are using some sort snapshot technologies.  When VM backup works right, it will freeze the VMs and create snapshots of these VMs so it can backup the static files.  Once complete the grabbing of these static files, it will responsibly merge the still changing data with the previously frozen static files and thus remove the snapshots.  If this VM Backup application for some reason cannot complete the whole freezing-grabbing-merging cycle, it will leave the snapshots going.  Unlike manual snapshotting, human operators or monitoring software may not be aware the “bastard” snapshots and this will eat up the disk storage very fast, especially when there were a lot of half-baked VM backups.  At a…

if you are running hyper-v in a cluster ( I haven’t tried it otherwise ) and get the following error when trying to do a checkpoint in a VM: An error occurred while attempting to checkpoint the selected virtual machines. Checkpoint operation failed. cannot create the checkpoint. The reason you might be getting this error is because your disk drives for this VM are at the root of the drive. C:clusterstoragevolume1 for example.  what you need to do is move the drives of this VM to a different folder deeper than that path. C:clusterstoragevolume1myvm for example. recreate the VM if necessary, and point the drive location to the new path. after than you should be able to do the checkpoint fine. I hope that helps, Nelson.

If you have a Hyper-V server in a workgroup and you want to manage it remotely from a client computer in a different domain, then you will have to configure the server to allow connections from a client in a different domain. the process is a pain, but luckily there is a script that do that for you with just one click. download the script from this link http://code.msdn.microsoft.com/HVRemote and look at the 10-second guide in the front page. the setup  I did was Client domain, Server workgroup follow the instructions in the link above, and let me know if it works for you. I still cannot manage the server through server manager snap-in, but I think that’s an issue with my client computer.

Hyper-V 2008 R2 is 1.50 GB big, so it cannot be burned to a CD-RW media. the media needs to be either DVD-RW or a USB flash drive with 2 GB of free space or more. I know the DVD media is widely used for Hyper-V installations, but I find the installation from a USB drive to be quicker. so if want to save some time installing Hyper-V here is a 10 minutes procedure on how to make a USB drive bootable with Hyper-V 2008 R2. In this tutorial I assume you are using Windows 7 and you have a USB thumb drive with 2 GB of capacity ore more. also, the USB drive needs to be formatted so make sure you don’t destroy important data in the process. let’s get started. Run CMD.EXE as administrator: at the command prompt…