An Azure service that is used to provision Windows and Linux virtual machines.
NIC setup and MAC address assignment
- Once the machine is built, shut it down, as it will need to be powered off to perform the next steps.
- Once powered down, navigate to the virtual machine: 'settings' > 'Networking'. Select 'Attach Network Interface'. Select the former NIC from the previously built server. Note, we couldn't move the NIC, but if you are working in the same vNET, this is were you will attach a working NIC.
Once the NIC is attached, proceed to step 5. If you have to assign a new NIC, go to step 4
In the case that there is not a previous NIC to assign, create a new resource from the portal in Azure. Create a new 'Network interface'. Configure the network interface with the vNET and configuration details that you require. Attach the newly created network interface to the VM by navigating back to the VM networking configuration in step 2.
Power on the virtual machine. The virtual machine will have the new name assigned in the Azure portal, but in our case, we re-purposed the original hard disks, thus the Windows machine name persisted on the OS disks. For our purpose, the machine name was also embedded in the license file. Log into the server and navigate to the 'device manager':
Start > Search > type in Device Manager
Press Windows + x and select Device Manager
Press Windows + r and type devmgmt.msc
Navigate to Network Adapters and select the arrow to expand the icon. There will be 2 Hyper-V Virtual Ethernet Adapter's listed. Right click the one noted with #2 or the the one with the higher number (i.e. virtual network adapter #5 and virtual network adapter #6), the higher numbered one will be the second NIC that you have recently attached.
- Right click on the network adapter #2 (or higher numbered) and select properties. Select the Advanced tab.
- Select Network Address and tick the item that reads 'Value'. Copy and paste the MAC address that is required for the licensing.
Select okay
You have successfully created/attached a second NIC and configured the MAC address for that NIC as a loopback for the virtual machine.
To confirm that the MAC address was assigned correctly, open a cmd prompt or PowerShell window and type: 'ipconfig /all'
You should see the new MAC address assigned to the ethernet adapter.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin