Windows 10: Hyper-V virtualization - Setup and Use in Windows 10

Discus and support Hyper-V virtualization - Setup and Use in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Hyper-V virtualization - Setup and Use in Windows 10 How to Setup and Use Hyper-V in Windows 10 for OS Virtualization [img]... Discussion in 'Windows 10 Tutorials' started by ThrashZone, Oct 2, 2014.

  1. Hyper-V virtualization - Setup and Use in Windows 10


    How to: Hyper-V virtualization - Setup and Use in Windows 10

    How to Setup and Use Hyper-V in Windows 10 for OS Virtualization


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]
    Information Windows 10 Pro, Education and Enterprise editions come with a built-in hypervisor client Hyper-V allowing users to create and run other operating systems on a virtual machine. Although Hyper-V is mainly designed to run Windows guests it can also be used to virtually install other operating systems like various Linux versions.

    In this tutorial we will enable and setup Hyper-V, create virtual switches to allow our virtual machines to communicate with network and Internet, and finally create some sample virtual machines.

    Although starting from the basics this tutorial might give some tips to the more advanced users, too Hyper-V virtualization - Setup and Use in Windows 10 :).
    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]
    Note Please notice:

    Hyper-V is only available in Windows 10 Pro, Education, and Enterprise editions. It is not available in Windows 10 Home.

    See also: Step-By-Step: Enabling Hyper-V for use on Windows 10



    Contents:
    Part One: Some vocabulary
    Part Two: Setup Hyper-V
    Part Three: Create a virtual switch
    Part Four: Create a Windows virtual machine (Windows 7 or later)
    Part Five: Create a legacy Windows vm (Windows Vista or earlier)
    Part Six: Create a Linux vm





    Part One [/i] Some vocabulary
    A short list of some terms worth to know.

    - Hypervisor
    • Hypervisor or virtual machine monitor (VMM) is a piece of computer software, firmware or hardware that creates and runs virtual machines (Wikipedia)
    - Hyper-V
    • Hyper-V is a native hypervisor; it can create virtual machines on x86-64 systems. Starting with Windows 8, Hyper-V supersedes Windows Virtual PC as the hardware virtualization component of the client editions of Windows (Wikipedia)
    - Virtual Machine (vm)
    • A virtual machine (VM) is an emulation of a particular computer system. Virtual machines operate based on the computer architecture and functions of a real or hypothetical computer, and their implementations may involve specialized hardware, software, or a combination of both (Wikipedia)
    - Host or Host System, Host OS
    • Host is the computer and operating system running the virtualization platform (in this case Hyper-V in Windows 10 host) to host your virtual machines (guests)
    - Guest or Guest System, Guest VM
    • A virtual machine, a guest operating system installed on a vm and stored on a Virtual Hard Disk (vhd)
    - Virtual Hard Disk (vhd)
    • A vhd file emulates a physical hard disk. It can contain a full operating system on a virtual machine, or it can be used to store files as any physical hard disk
    - Virtual Switch
    • A virtual switch emulates a physical network adapter. A Hyper-V vm cannot directly connect and use the network adapters on your host, it needs a virtual switch in between. The vm sees and treats the virtual switch as a network adapter and uses it to communicate with the physical host network adapter, which then forwards all communications further to network




    Part Two [/i] Setup Hyper-V
    How to enable and set up Hyper-V virtualization.



    2.1) By default the Hyper-V is disabled. To start we need to enable it as follows:- Press WIN + X to open Start context menu, select Programs and Features:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    - Click Turn Windows features on or off:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    - Select Hyper-V, click OK:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    - Windows will now install the required components. You have to reboot to let Windows finalize the installation:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    2.2) After the reboot launch Hyper-V Manager:- Press WIN + S and type Hyper-V to Start Menu search, click Hyper-V Manager:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    - Alternatively if using Start Screen instead of Start Menu, enter Start Screen and start typing Hyper-V to open Charms search and search Hyper-V, select Hyper-V Manager:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]
    Tip A tip from our admin z3r010 (original post):

    If you get an error message about Hypervisor not running, open an elevated Command Prompt by pressing WIN + X and selecting Command Prompt (Admin) and give the following command:

    bcdedit /set hypervisorlaunchtype auto

    Reboot the host PC. Hyper-V should now be able to run.

    2.3) Hyper-V should automatically connect to your host (left pane) and show the menu on right pane:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    2.4) If the left pane shows no Hyper-V servers to connect (your local host computer), click Connect to server on the right pane, select Local computer in the dialog that follows and click OK:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]



    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    2.5) If you want to change the location where your virtual machines will be saved, click Hyper-V Settings and change the location:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]



    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]





    Part Three [/i] Create a Virtual Switch
    How to create a virtual switch to allow virtual machines to communicate with network.


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]
    Note Since Windows 10 version 1709, Hyper-V now includes a default virtual switch named simply as Default. Creating your own external virtual switches is no longer required to get Internet connection to virtual machines.

    However, to guarantee best networking capabilities between host machine and its virtual machines, it is recommended to create an external switch and use it instead. Using Default switch is totally OK if networking between host and Vm is not required.

    3.1) Before creating our first virtual machine we must create at least one virtual switch, a bridge between the virtual network adapter on vm and the physical network adapter on host.

    A Hyper-V vm has no way to connect to network without this bridge. The image below shows how a Hyper-V vm connects to network:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    Above image is from a Virtual Switch tutorial at our sister site The Eight Forums, see full tutorial for more in-depth information on Virtual Switches. In this tutorial we jump ahead and just create a virtual switch, for those users wanting to know more about virtual switches I recommend to read said Eight Forums tutorial.

    3.2) Click Virtual Switch Manager (right pane, Hyper-V Manager):

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    3.3) Select New virtual network switch, select External, click Create Virtual Switch:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    3.4) Name your new virtual switch as you want to, select External network and using the drop down list, select a host network adapter you want to assign to this switch, click OK:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    Apply changes by clicking Yes in following dialog:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    Hyper-V will now create the switch.

    Notice that for a vm to be able to communicate with network, it has to use a virtual switch which in its turn must be connected to a working host network adapter connected to network. In this example I assigned the host WiFi adapter to the new external virtual switch. If the WiFi adapter on host is disabled or not connected to network when the vm using this switch is launched, the vm cannot connect to the network.

    You can have a virtual switch connected to each of host's network adapters, typically one connected to a LAN adapter and another connected to a WLAN adapter. A host network adapter can only be connected to one virtual switch at any given time.

    Looking at your network adapters now you can see that virtual switches are working, and that the host WiFi adapter is bridged to a virtual switch (subject to a virtual switch with WiFi adapter assigned to it exists):

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]
    Note When Hyper-V is enabled and one or more external virtual switches created, your host system uses these switches instead of host physical network adapters to connect to the network. This is as it should be, do not remove or disable the virtual switches!

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]





    Part Four [/i] Create a Windows virtual machine (Windows 7 or later)
    How to install a Windows operating system to a new virtual machine.



    4.1) Click New > Virtual Machine on the right pane (Action):

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.2)
    Click Next:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.3) Name your vm as you wish, click Next (if you want to save the vm in other than default location, select Store the virtual machine in a different location):

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.4) Select the vm generation. Generation 2 (GPT / UEFI) can only be used for 64 bit Windows 8 or later respective Windows Server 2012 or later guest operating systems. For all other guest systems use Generation 1 ​(MBR / BIOS). Click Next:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.5) Assign RAM to vm, select Use Dynamic Memory for this virtual machine, click Next.:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    The RAM assigned to a vm is taken from your host RAM; if you assign 1 GB to a vm, when it's run your host is missing this 1 GB. I recommend you try first following values if your host has 4 GB RAM or less:
    • Host 2GB RAM > assign max 512 MB
    • Host 2 to 4 GB RAM > assign max 1 GB
    Selecting the Dynamic memory lets Hyper-V to be flexible, use only the amount of RAM needed at any given moment. In Windows virtual machines, Hyper-V uses the amount you gave it at startup of the vm but then when it's not needed, it releases some of it back to host, getting again more when it needs it.

    4.6) Select an existing virtual switch to allow the vm to connect to network. Click Next to continue:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]


    4.7) Select how big the virtual hard disk can be. For Windows guests, 20 GB is enough if you just want to test an OS and will not install any apps, but the more you give to vhd, the more you can install apps and store files on it. Click Next to continue:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    Notice that by default Hyper-V uses a dynamically expanding vhd; even if you create a 500 GB vhd for your vm, if only 25 GB is used after you have installed an OS and some apps, the vhd file size on your host hard disk is only 25 GB. In this case the 500 GB only means that the vhd has your permission to grow to be so big if it needs more storage space. If you plan to do some heavy work and install a lot of programs to your vm, give it a bigger vhd.

    4.8) Select the install media for your vm. If you install from a CD or DVD disk on your host CD/DVD drive, select Physical CD/DVD drive and from drop down list select the correct drive. In this example I chose to use an ISO file containing Windows 7 Ultimate installation files. Click Next to continue:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    Notice that a 2nd Generation vm can only be installed from an ISO image, therefore if you selected 2nd Generation in step 4.4 the option to use a DVD drive is not available.

    4.9) Review your vm settings (highlighted yellow), if OK click Finish to create your vm:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.10) Your vm has been created. On right pane, click Connect (#1) and wait until the vm windows has opened, then press Start (#2) to boot the vm:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.11)
    Ready! The vm boots:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    4.12) You can now install the operating system on your vm exactly as you would do it on a physical computer:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]




    Part Five [/i] Create a legacy Windows virtual machine (Windows Vista or earlier)
    How to install an older Windows operating system to a new virtual machine.

    5.1)
    Follow the procedure in Part Four until Step 4.6, where instead of selecting a virtual switch select Not Connected:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    5.2) Continue setting up the vm as told in Part Four from Step 4.7 to Step 4.9. Do not launch the vm yet

    5.3) Right click your vm in the middle pane of the Hyper-V Manager, select Settings:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    5.4) Remove the NIC:

    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    5.5) Select Add hardware, select Legacy Network Adapter, click Add:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    5.6) Connect the legacy adapter to an existing external switch, click OK:


    Hyper-V virtualization - Setup and Use in Windows 10 [​IMG]

    5.7) Now you can launch the vm as told in Part Four Step 4.10 and start installing your OS.



    Part Six [/i] Create a Linux virtual machine
    How to install Linux to a new virtual machine.

    For instructions in installing Linux on a Hyper-V virtual machine, please see the tutorial on our sister site The Eight Forums: Hyper-V – Create Linux Virtual Machine in Windows 8

    I will update this part with more recent screenshots and instructions as soon as I have finished installing a few most common Linux distros to Windows 10 Hyper-V.



    Have fun with virtualization!

    Kari



    Related Tutorials

    :)
     
    ThrashZone, Oct 2, 2014
    #1
  2. Andre Da Costa, Oct 2, 2014
    #2
  3. Andre Da Costa, Oct 2, 2014
    #3
  4. Kari Win User

    Hyper-V virtualization - Setup and Use in Windows 10

    The intensity comes from the beverages I consumed while writing it *Drink1
     
    Kari, Oct 2, 2014
    #4
  5. lol the system image tutorial will be a cake walk compared to this one I'm certain *Biggrin
    Cheers.
     
    ThrashZone, Oct 2, 2014
    #5
  6. z3r010 Win User
    I'm just downloading Windows Server TP try on my Win10 hyperV.
     
    z3r010, Oct 3, 2014
    #6
  7. Excellent work, as always Kari.

    You have to enable Virtualization in BIOS to get the Hyper-V platform (Add features)

    I searched for the reason my Hyper-V platform option was inactive (greyed out). I saw mostly references to VTx (Virtual Technology) in BIOS - (Intel boards ??)

    My laptop is an HP with InsydeH20 BIOS and I was afraid that I wouldn't be able to use Hyper-V. After poking around the BIOS, I saw SVM - not very explanatory, but I enabled it and then searched - Secure Virtual Machine (SVM)

    After that everything went swimmingly.

    I did have an issue with the wireless network adapter and most searches said you couldn't use it in a Hyper-V VM - balderdash!

    I created a Network bridge between the physical wireless adapter and the virtual adapter, selecting wifi in the bridge properties. This might be due to the fact that I chose an internal virtual adapter instead of external when I set up the Win10 VM. Some quick research mentioned it was more secure - it's all new to me.
    One note - I mucked around with the virtual adapter, changing some options - that produced a warning dialog telling me that all options would be disabled (including IP4 and IP6-I can't recall if it said the physical or the virtual). So I canceled and left it alone.

    The bridge makes my connections go limited as it tries to connect to a machine that might not be running, but it clears up in a few seconds and my Internet connection doesn't seem to be affected.

    TechNet references I found after the fact (I also found your posts too late and this tutorial would have been a great help)
    Hyper-V Getting Started Guide
    Install Hyper-V and Configure a Virtual Machine
    Tip: Install and Configure Virtual Machines on Hyper-V
    Step-By-Step: Enabling Hyper-V for use on Windows 8.1
     
    Slartybart, Oct 3, 2014
    #7
  8. z3r010 Win User

    Hyper-V virtualization - Setup and Use in Windows 10

    I've just started with the server install on my hyperv and was getting a "hypervisor not running" error, a quick google pointed me to enter the following command from an admin cmd prompt and all was good.

    bcdedit /set hypervisorlaunchtype auto
     
    z3r010, Oct 3, 2014
    #8
  9. Kari Win User
    That's good to know. That was a dedicated Hyper-V Windows server version or Hyper-V running on Win 8 / 10?
     
    Kari, Oct 3, 2014
    #9
  10. z3r010 Win User
    Hyper-V running on Win 10
     
    z3r010, Oct 3, 2014
    #10
  11. Kari Win User
    Interesting, I've never had that when enabling Hyper-V on a rig with virtualization enabled. I need to add that to tutorial.
     
  12. Kari Win User
    Internal switch is more secure because it has no Internet access, it can only communicate with the local network. A bridged internal switch is no longer internal switch.

    As soon as you created the bridge, your internal switch became external. The setup you have now is an external switch setup, you are most definitely not using internal switch. This is important to understand so I repeat it: An internal switch is a switch which is connected to local network only but has no internet access. To connect to Internet you need to select an external switch. Bridging an internal switch will create a de facto external switch but can bring connectivity issues.

    This from my tutorial at Eight Forums:

    A Virtual Switch can be external, internal or private.
    • External Virtual Switch: will connect a vm to host NIC. If host NIC is connected to Internet through router, the vm is also connected to Internet. If host NIC (LAN) is not connected to router or if the router has no Internet access, the internal network will still work allowing computers (physical and vm) belonging to the same subnet and workgroup or domain to communicate with each other (file and media sharing etc.). When connecting external switch to host WLAN NIC, the vm loses all connectivity when WLAN is disabled or not connected on host.
    • Internal Virtual Switch: When a virtual NIC is connected to Internal VS it can communicate with other computers and vms on the same subnet but has no Internet access.
    • Private Virtual Switch: When a virtual NIC is connected to Private VS it can communicate with other vms on same Hyper-V server but cannot communicate with host PC nor has it Internet access. A Private vs is often needed when installing a legacy Linux or pre-XP Windows vm. After installation you need then to disable Private Switch and use Internal or External to connect to the network.
    In your case, to get rid of those minor issues, I would disconnect and delete the bridge, create an external switch and change settings for each of your virtual machines to set them use the external switch you created.

    When you create an external switch assigning a WLAN adapter to it, Hyper-V takes care of creating the bridge with correct settings.
     
  13. Hyper-V virtualization - Setup and Use in Windows 10

    Thanks Kari. I eventually did replace the 'hack' with an external switch and I noticed the bridge it created had the Hyper-V protocol installed. I had tried that a few times on the internal vs with a bridge and ended up breaking it. It was easy enough to fix, but using an external switch is a cleaner way to establish internet connectivity. All of the correct protocols are installed for you.

    Bill
    .
     
    Slartybart, Oct 4, 2014
    #13
  14. I am trying to get the Windows 10 Preview installed and running on my Windows 8.1 system. When I follow the instructions to create the external virtual switch I lose the Internet Connection for both operating systems. As soon as I remove that virtual switch I get back my Internet connection for 8.1.

    I am trying out the various options when creating the virtual switch without success. I have started to uninstall programs which use the Internet connection, nothing yet. Microsoft help suggests turning the modem off and on *Confused, nope that does not change anything.

    If anyone has any ideas on what to try to get this virtual switch working, it would be appreciated.
     
    alkaufmann, Oct 5, 2014
    #14
  15. Kari Win User
    Please post these two screenshots here:

    • Open the Virtual Switch Manager, select the virtual switch you want to connect to the Internet on the left pane and now take a screenshot of the whole virtual switch window
    • A screenshot of your Control Panel\Network and Internet\Network Connections window
    Screenshot posting instructions: https://www.tenforums.com/tutorials/1...en-forums.html
     
Thema:

Hyper-V virtualization - Setup and Use in Windows 10

Loading...
  1. Hyper-V virtualization - Setup and Use in Windows 10 - Similar Threads - Hyper virtualization Setup

  2. Virtual Machine using Hyper - V Manager

    in Windows 10 Software and Apps
    Virtual Machine using Hyper - V Manager: Hi,I made a Virtual Machine using Hyper-V Manager with VHD attached that is running XP. I do get this message when I start up it up from the image I attached. I was told to add XP IDE files that I extracted. My question is: Will I need to attach these files to the VHD for it...
  3. Virtual Machine using Hyper - V Manager

    in Windows 10 Gaming
    Virtual Machine using Hyper - V Manager: Hi,I made a Virtual Machine using Hyper-V Manager with VHD attached that is running XP. I do get this message when I start up it up from the image I attached. I was told to add XP IDE files that I extracted. My question is: Will I need to attach these files to the VHD for it...
  4. Virtual network is not created in Hyper-V

    in Windows 10 Virtualization
    Virtual network is not created in Hyper-V: Hi guys, I enabled Hyper-V feature in Windows 10 but unable to create a virtual switch. I tried to create private and internal types of virtual switch but every time the process stuck on "Applying changes". What could be the reason of that? Thank you. 61906
  5. Hyper-V Virtual Switch

    in Windows 10 Virtualization
    Hyper-V Virtual Switch: I cannot create a Virtual switch when using Hyper-V get this error message: [img] I am using a Qualcomm Atheros AR9002WB-1NG Wireless Network Adapter and running Hyper-V with Admin Privleges. Laptop is a Toshiba Qosmio i7 with 8GB Ram running Windows 10 pro. Thanks...
  6. Can a Hyper-V Virtual Machine use a Picture Password?

    in Windows 10 Virtualization
    Can a Hyper-V Virtual Machine use a Picture Password?: Greetings. I set up Hyper-V in my Win 10 Anniversary install and created a Win 10 Virtual Machine which is fully activated. I tried setting up a picture password for this VM. The Picture Password option was not available but I got it to show using gpedit. I then set a...
  7. Cannot use Hyper-V Extensible Virtual Switch

    in Windows 10 Network and Sharing
    Cannot use Hyper-V Extensible Virtual Switch: Hey, new here. I wasn't sure if this should go in Network and Sharing or Programs and Apps, so I apologize if this is in the wrong category. Anyways, while trying to set up a virtual switch I discover I need to install the 'Hyper-v Extensible Virtual Switch' network...
  8. Use Hyper-V virtual machine to get Windows 10 Insider ISO

    in Windows 10 Tutorials
    Use Hyper-V virtual machine to get Windows 10 Insider ISO: How to: Use Hyper-V virtual machine to get Windows 10 Insider ISO [img] Information To run a Windows Insider version of Windows 10, your PC does not have to be opted in for Insider builds. It's enough to have one machine opted in, use it to get Insider build upgrade and...
  9. Import Hyper-V Virtual Machine in Windows 10

    in Windows 10 Tutorials
    Import Hyper-V Virtual Machine in Windows 10: How to: Import Hyper-V Virtual Machine in Windows 10 How to Import Hyper-V Virtual Machines Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical...
  10. Export Hyper-V Virtual Machine in Windows 10

    in Windows 10 Tutorials
    Export Hyper-V Virtual Machine in Windows 10: How to: Export Hyper-V Virtual Machine in Windows 10 How to Export Hyper-V Virtual Machines in Windows 10 Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were...
Tags:

Users found this page by searching for:

  1. hyper-v quick create missing