NIC issue when import HYPERV

Adi5678 1 Reputation point
2022-01-10T13:44:54.227+00:00

Hi,

I have template hyperv machine defined with static IP address.

I am using Powershell to create a new hypre-v instance based on this template using IMPORT-VM command and the new machine is loaded properly, but NIC shown with warning yellow triangle "unidentified network".

In order to solve that ,i had manually to Disable & Enable NIC , and NIC gets connected properly.

Is there any way to avoid that ? so my imported machine will get connected after import without manually disable-enable the NIC ?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,538 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,356 Reputation points
    2022-01-10T18:24:26.02+00:00

    Hello @Adi5678

    When you import the machine a new virtual network adapter is created which is assigned an IP address via DHCP. The original adapter is now hidden (in Device Manager). Assiging the original IP address and network name to the new adapter gives an error message (which can be overruled).

    If you want to clean this up use the following steps:

    Go to command prompt
    Set devmgr_show_nonpresent_devices=1
    Start devmgmt.msc
    Click View, Show hidden devices
    Expand device tree
    Right click hidden device and Uninstall
    Rescan if necessary
    Set IP and network name for new network device

    Hope this helps with your query,

    ------
    --If the reply is helpful, please Upvote and Accept as answer--