How to use Wireless networking with Hyper-V

Windows 10: How to use Wireless Networking with Hyper-V
Please share with your friends...
  • 2
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    2
    Shares

Virtual Machines

The third and final step is to configure each of your virtual machines to use the new virtual switch, either using Hyper-V Manager or via Windows PowerShell.

Hyper-V Manager

The following instructions can be used to configure your virtual machines to use the new virtual network switch using Hyper-V Manager.

  1. Start the Hyper-V Manager console.
    Virtual Machine... Settings

    Virtual Machine… Settings

  2. Right-click on the particular virtual machine, and select Settings from the context menu. The Settings for the virtual machine window will be displayed.
    Settings: Network Adapter

    Settings: Network Adapter

  3. Perform one of the following actions, depending on whether you want to Updating an existing Network Adapter or Adding a new Network Adapter.
    Update an existing Network Adapter
    1. Select the existing Network Adapter from the list of Hardware. The Network Adapter configuration will be displayed.
      Settings: Change Virtual Switch

      Settings: Virtual Switch

    2. Select the Virtual Switch created in Virtual Switch Manager and click OK.
    Add Network Adapter
    1. Select Add Hardware from the Hardware list on the left, select Network Adapter from the devices list on the right, and then click Add. The new Network Adapter will be added to the list of installed hardware, and the Network Adapter properties will be displayed.
      Settings: Add Network Adapter

      Settings: Add Network Adapter

    2. Select the Virtual Switch created in Virtual Switch Manager and click OK.
  4. The Settings window will close, and you will be returned to the Hyper-V Manager console.

Windows PowerShell

This section on Windows PowerShell is intended for advanced users. Do not use any of these commands unless you are confident that you understand what they are for.

The following instructions can be used to manage Hyper-V virtual machine network adapters using Windows PowerShell.

  1. Start a Windows PowerShell console with elevated privileges (Run as administrator).
    Windows PowerShell
    Copyright (C) 2015 Microsoft Corporation. All rights reserved.
  2. Import the Hyper-V PowerShell module using the following command.
    > Import-Module Hyper-V
    Add Network Adapter

    To add a new network adapter to a particular virtual machine, use the following command.

    > Add-VMNetworkAdapter -VMName "<vmname>" -SwitchName "Wi-Fi"

    Replace <vmname> with the name of the virtual machine, and replace Wi-Fi with the name of your virtual switch.

    Connect Network Adapters

    To connect all network adapters in a virtual machine to a particular virtual switch, use the following command.

    > Connect-VMNetworkAdapter -VMName "<vmname>" -SwitchName "Wi-Fi"

    Replace <vmname> with the name of the virtual machine, and replace Wi-Fi with the name of your virtual switch.

    List Network Adapters

    To list all the network adapters installed in a particular virtual machine, use the following command.

    > Get-VMNetworkAdapter -VMName "<vmname>"

    Replace <vmname> with the name of the virtual machine. The command will produce output similar to the following.

    Name            IsManagementOs VMName     SwitchName MacAddress   Status IPAddresses
    ----            -------------- ------     ---------- ----------   ------ -----------
    Network Adapter False          Windows 10 LAN        000000000000        {}
    Network Adapter False          Windows 10 Wi-Fi      000000000000        {}
    Remove Network Adapters

    To remove all network adapters from a particular virtual machine, use the following command.

    > Remove-VMNetworkAdapter -VMName "<vmname>"

    Replace <vmname> with the name of the virtual machine.

If you regularly switch between fixed and wireless networking, then it may be worth adding two network adapters to your virtual machines; the first using your Ethernet LAN adapter, and the second one using your Wireless Wi-Fi adapter as discussed in this post.

Please share with your friends...
  • 2
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    2
    Shares

Leave a Reply