Hyper-V server is the free virtualization OS from Microsoftto compete head to head with the free ESXi OS. When running in large farms ordomain joined, Hyper-V seems to work pretty decently. But when you just want asingle host that you manage with Windows 10, or let alone MacOS, Hyper-V canbecome a nightmare.
As a result, organizations can make Hyper-V applications available to Mac users as well. Abb.1 Enabling Hyper-V support in Parallels Desktop Business Edition: Learn more about using Hyper-V in Parallels Desktop Business Edition and download a free trial. Hyper-V server is the free virtualization OS from Microsoft to compete head to head with the free ESXi OS. When running in large farms or domain joined, Hyper-V seems to work pretty decently. But when you just want a single host that you manage with Windows 10, or let alone MacOS, Hyper-V can become a nightmare.
So why would you go the Hyper-V route and not the ESXi routein that case? Well.. ESXi has a very specific taste for hardware. Only certainraid controllers, certain NIC’s etc are supported. While Hyper-V based on theWindows 2016/2019 OS usually gives you more freedom to play around with, and itsupports RAID straight from the software. So essentially, you can run it onalmost any white box,.
In this post I’ll be installing Hyper-V server on my DellT710 as a single-stand-alone machine, while configuring it solely from a MacOSbased laptop.
First things first, download Hyper-V 2016. You could opt for the 2019 version, but there are some quirks on that one with regards to RDP, which we will need when we are configuring it. (so much for the good start). I installed the 2016 version on Disk 0, an SSD that is attached to a standard SAS/SATA controller. After the installation, set the password for the administrator account on the console.
And after logging in, enable RDP by typing 7 <enter>,E <enter>, 1 <enter> <enter> on the pop-up.
Next we need to know the IP of the server so we can connectto it: Type: 8 <enter> and note the IP listed:
Then on your Mac, download the latest Microsoft RemoteDesktop application and create a connection to the server.
On the application, select the + and then select Desktop. On the PC Name field enter the IP address and click save. Your connection will be saved under Saved Desktops. Double click and login with administrator/<password set>. On the pop-up regarding a certificate validation, click continue.
![Hyper-v download Hyper-v download](/uploads/1/2/9/3/129357732/281600208.png)
You will now have the remote desktop loaded on your Mac.First things first, lets get the updates by issuing 5 <enter>, D(download only) <enter> . Then 6 (download updates), A (all updates) andhave the system update itself.
In my server I have a custom NIC for which the drivers arenot loaded by default. I’ve been working on the on-board QLogic NIC for now,but I wanted to enable my 2x 10Gb SFP (HP HC523SFP) NIC as well. So, in caseyour NIC did not load either, through the console (as RDP would not work if youdon’t have any connection), follow the next steps.
NIC Drivers
In my case, the NIC driver is actually an executable thatextracts itself and starts the installer, but in my system, the drivers are for2012R2, not 2016 and thus the auto installer doesn’t work. We have to go theold-school route of installing the drivers.
First, the extraction. The extract only of the softwaredoesn’t work and as I promised I’d only use MacOS we can’t extract them onthere either. So, we run the installer, but leave the error message in thebackground while we grab the extracted files:
The temporary files location can actually be found in thelog file under c:cpqsystemlog
Once we grabbed all the required files, we can now dopnputil.
And let’s see if we have additional NIC’s by doing an ipconfig/all (or even better, issue PowerShell and then type Get-NetAdapter)
Remote Control of theserver
In order to create and manage VM’s we could opt for a full PowerShellbased management. But given we’d have to RDP constantly into the server (from MacOS),it’s probably easier to install the Windows Admin Center.
For this, download the admin center toolkit: https://www.microsoft.com/en-us/cloud-platform/windows-admin-centerput it on a USB drive to copy it to the server (or open a share or any othermeans of copying it to the server) and from a command prompt in the server run:
This will install the Admin Center on port 443 on the serverquietly. Wait for a few moments and then using the browser on the Mac go to https://server and login using the servercredentials.
Once the admin center is loaded, you can go to the Hyper-V section and create / manage VM’s. On the file-services tab you can also upload/download files straight into/from the server
Disks
The next part is getting the disks into a storage pool. Thisis required when you have multiple disks and no hardware raid controller (oryou want to have the freedom to change the disk pool quickly). You can do thisvia the admin center (Storage) or through PowerShell as I do in this example:
In order to get all our disks into the pool, we create an array of all the disks that are available for the pool:
Then we create the storage pool:
Once we have the pool, we create a new volume on that andset the volume to a stripe level. You can select Simple (no redundancy, max performance), Mirror, and Parity (raid5 or 6).
In my case, I’m just setting up a mirror, using maximum size
And that created and formatted our V: drive for storage ofVM’s. Let’s create a VM folder and Virtual HardDisk Folder and set the defaultsto those folders:
Networking
So now that the storage is done, let’s create the VirtualSwitch. Again, you can do this via the Admin Center, but through PowerShell it’sjust as easy…
In my case I want to enable the switch with my 2x 10Gb NIC’s, using Get-Netadapter I’ able to retrieve my Ethernet friendly names and I can create the switch using the following command:
If you have dedicated NIC’s for just the VM’s you can set the AllowManagementOS to $false
Remoting into the VM’s
Given we set the challenge to only work on a Mac, you willnotice that connecting to VM’s is not directly possible. Even with the officialMicrosoft Remote Desktop software available for OSX. But fear not, anothercompany has released an application that does work. It is called RoyalTSX andits available for Windows and Mac. While the suite itself can do much more, weonly need the free version of the software.
There are 2 ways to connecting to a VM. The Console (the usually screen+keyboard of a machine) or remote access (either RDP, PowerShell,etc for Windows, or SSH for Linux). In this case, we want to get to the console. And RDP for Hyper-V allows us to do so by connecting to the host with an InstanceID. In order to get the instance ID, go to your VM in the Admin Center console and select More to download the RDP file:
If you open the RDP file, you will notice a GUID if you open the downloaded file with a text editor. You can also find the GUID quickly on the Summary view of the Virtual Machines (which lists changed/started/created VM’s). Copy the GUID and open Royal TSX. Under Remote Desktop create a new entry with the name of the VM. For the Remote Desktop entries, put the name/ip of the server and port 3389.
Then scroll down to Hyper-V and put in Hyper-V host, connect to a specific instance. Put in the port 2179 and put in the InstanceID:
Then apply and close and connect.
And done!
Download Hyper-v Server 2016
Install a virtual machine in Windows 10 with Hyper V
Here’s how you can install a full-blown virtual version of an operating system in a virtual machine using Hyper-V.
- Check your PC for Hyper-V support through the Command Prompt
- If your PC does not support Hyper-V, you can enable it through Turn Windows Features On or Off in Control Panel
- Restart your PC, and then create a virtual switch on Hyper-V by opening Hyper-V Manager from the Start Menu
- Create the virtual machine through the Hyper-V Manager and the New Virtual Machine Wizard
Applies to All Windows 10 Versions
Hyper-v Download
Currently, it’s possible to run a number of Linux distros natively on Windows 10. However, these Linux environments are limited in the features and tools that you can use. In Windows 10, there are only three distros to choose from: Ubuntu, SUSE Linux Enterprise, and OpenSUSE Leap. All three distros rely on a command-line interface, so you’ll miss out on running any of the graphical experiences (GNOME, KDE, XFCE, or other Linux-based graphical applications).
To get a full featured version of Linux on Windows 10, installing your favorite distro (Linux-speak for “a distributor or distributed version”) on a second PC is always an option if you are fortunate to have one, but not everyone has one to spare. Luckily, you can just use your Windows 10 PC, it’s still possible to run a full-blown version of Linux by using a virtual machine (VM) using Hyper-V. Here’s what you need to do on Windows 10 to create a virtual machine using Hyper-V.
Enable Hyper-V on Windows 10
Hyper-V is a virtualization technology tool from Microsoft that is available on Windows 10 Pro, Enterprise, and Education. Hyper-V allows you to create one or multiple virtual machines to install and run different OSes on one Windows 10 PC. Having the correct Windows 10 version is not the only thing your PC needs; there are also hardware requirements:
- 64-bit CPU with Second Level Address Translation (SLAT).
- Processor must support VM Monitor Mode Extension (VT-c on Intel chips).
- 4GB of memory at a minimum.
Here’s what you need to do to verify that your Windows 10 PC has Hyper-V support.
- Open Start.
- Search for Command Prompt, left-click the top result and click “run as administrator.”
- Click Yes on the UAC prompt.
- Type the following command and press Enter: systeminfo.exe
- Under Hyper-V Requirements, If you see a “Yes,” your PC can run Hyper-V.
If the command displays “No” under Hyper-V Requirements, then your Windows 10 PC hardware doesn’t support this feature or you may have to enable these features manually in your system.
Now that you know your machine is Hyper-V capable, you need to enable Hyper-V. Here’s what you need to do:
- Open Control Panel.
- Click on Programs.
- Click on Turn Windows features on or off
- A Windows Features pop-up box appears and you’ll need to check the Hyper-V option. Be careful that Hyper-V Management Tools and Hyper-V Platform are selected.
- Click OK.
After Hyper-V is enabled, you will be prompted to restart your Windows 10 PC to finish installing the requested changes. Restart your computer. Hyper-V is now enabled. The next step will be to create a virtual machine using Hyper-V. Now that Hyper-V is enabled and you’ve successfully added a virtualization layer to Windows 10, you’ll need to create a virtual machine (VM) for the Linux distro you want to use. In order to do that, you’ll need to create a virtual switch to connect the VM to the Internet. Here’s what you need to do next.
Creating a virtual switch
Use the following steps to configure a virtual switch on Hyper-V:
- Open Start.
- Open Hyper-V Manager.
- Click on the Action menu.
- Select New and click Virtual Switch Manager.
Mac Os On Hyper-v Windows 10
Next, you need to follow the highlighted items in the menu, as seen in the picture below. This will create a virtual switch. A virtual switch acts like an extra layer of security between your virtual machine and your Windows 10 PC.
- Select New virtual network switch
- Select External.
- Select Create Virtual Switch.
Now, you need to customize your virtual switch. In this example, I used “Windows 10 Virtual Switch.” However, you can name your switch anything you want.
- Enter a virtual switch name (e.g., Windows 10 Virtual Switch).
- Under connection type, your network adapter should use the External network option.
- Select OK.
Now that you’ve successfully created a virtual switch, you can create a virtual machine. The purpose of a virtual switch is to provide protection by using security measures to provide an extra level of protection between virtual machines. The virtual switch is an added safeguard in case anything goes wrong. Let’s walkthrough what you need to do to create a virtual machine.
Hyper-v Mac Os Mojave
Creating a Virtual Machine
- Open Hyper-V Manager
- Open the Action menu
- Select New and Select Virtual Machine.
Next, you will be taken to New Virtual Machine Wizard, which will walk you through the steps needed to setup a virtual machine in Windows 10 using Hyper-V. The New Virtual Machine Wizard is pretty straightforward and Windows 10 handles all the default virtual machine settings. All you need to do in New Virtual Machine Wizard is to follow the prompts.
The New Virtual Machine Wizard takes the guesswork out of any questions you may have seeting up a virtual machine. Setting up a virtual machine is a breeze using the New Virtual Machine Wizard. Windows 10 makes setting up a virtual machine fast and easy. Here’s all you need to do to set up the virtual machine:
- Specify Name and Location
- Specify Generation
- Assign Memory
- Configure Networking
- Connect Virtual Hard Disk
- Pick Installation Options
- Summary
Depending on how you want to set up your VM, the New Virtual Machine Wizard will walk you step-by-step and let you customize your VM on Windows 10 using Hyper-V. In the Windows 10 Fall Creators Update, Microsoft made it even easier to create a VM with Hyper-V Quick Create. Now, you can create a VM using Windows 10 dev environment or Ubuntu 18.04.1 LTS. Quick Create can be launched independently of Hyper-V Manager and is a quick tool to use to create a VM in Windows 10.
Running #Linux on #Windows10 just got easier. The Hyper-V Quick Create feature lets you run @Ubuntu virtual machines so that you can start developing in minutes.
— Windows Developer (@windowsdev) October 9, 2018
Microsoft has a quick guide on how to use Hyper-V Quick Create available on the Windows blog. The only prerequisite for being able to use Hyper-V Quick Create is that you are running at least the Windows 10 Fall Creators Update.
![Download virtual machines for hyper v Download virtual machines for hyper v](/uploads/1/2/9/3/129357732/142885183.png)
With Hyper-V Quick Create, Microsoft shows that you can create a VM in Windows 10 in as little as three steps:
- Open Hyper-V Quick Create from the start menu.
- Select an operating system or choose your own by using a local installation source; if you want to use your own image to create the virtual machine, select Local Installation Source. or Select Change Installation Source. Be sure to pick the .iso or .vhdx that you want to turn into a new virtual machine. If the image is a Linux image, deselect the Secure Boot option. Secure Boot is only for Windows 10 dev environment.
- Select “Create Virtual Machine“
From there, Hyper-V Quick Create will create a VM for you without you needing to worry about it. Be aware that if you don’t have the OS already installed on your Windows PC, you will be required to download your preferred OS from within the Windows 10 app. You can also access Hyper-V Quick Create from the right pane within Hyper-V Manager.
Once you’ve created a virtual machine, you should see a screen like this (if you used Windows 10 dev environment).
Obviously, Ubuntu and other OS welcome screens will have different welcome screens, but you will be able to successfully create a VM using Hyper-V Manager or Hyper-V Quick Create. Windows 10 is making creating virtual machines (VM) easier and faster than ever.
Share This Post:
Tags: Developers | howto | Microsoft | Virtual Machine | VM | Windows 10