Solved

How to identify the Virtual Adapter of the Management OS?

Posted on 2014-02-28
4
456 Views
Last Modified: 2014-03-21
Environment: HyperV on Windows Server 2008

My understanding of how virtual network works is the following: when you create a External virtual switch in HyperV Manager, this virtual switch binds itself to the physical adapter of the server. When you configure this virtual switch, a virtual adapter is created on the Management OS and on All guest Virtual Machines. The Management OS and the Virtual Machines use their pertaining virtual adapter to communicate with the Virtual switch (which is bounded to the Physical NIC of the server) to communicate with the physical network. Please correct me if I am wrong.

In order for me to assign a static IP to my Virtual Machines, I will need to connect to the machine itself and configure its respective "virtual" adapter.

My question is, how can I identify the virtual adapter of the management OS to configure it statically?
0
Comment
Question by:LuiLui77
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Santosh Gupta
ID: 39895504
You can try to use the following PowerShell script, it utilizes WMI to find out if machine is virtual machine or physical machine.


gwmi -q "select * from win32_computersystem"
0
 
LVL 57

Accepted Solution

by:
Cliff Galiher earned 500 total points
ID: 39895530
That isn't really accurate. Hyper-V will associate the selected NIC to the virtual switch when an external network is created. But virtual adapters for the VMs must be added manually.

As for the management OS, yes, a virtual adapter is created by default and is an active participant on the virtual switch.

As far as identifying adapters, if you view properties, it is pretty easy. The physical adapter will ONLY be bound to the "virtual network switch protocol." Don't touch any settings on that adapter.

The virtual adapter will have all of the usual bindings to TCP/IP, client networking, etc. You'd make changes there.

Now with that said, the preferred configuration is to have one physical NIC not associated with any Hyper-V external networks. That NIC will therefore not be bound to any virtual switches and can be changed and managed just as if hyper-v were not installed. And even better, it will be dedicated to the management OS, so even if something goes wrong with hyper-v's virtual switches (it happens), you have management access to the OS. Which makes the whole virtual adapter issue moot.
0
 

Author Comment

by:LuiLui77
ID: 39898174
Ok Cliff, thanks. I can see it better now, but in regards to the virtual network adapter that I have to configure manually on every virtual machine, I never had to do so. The only thing that I do is to select the virtual network switch to use on the Network adapter option under Hardware. Is this considered as configuring the virtual network adapter manually?
0
 
LVL 57

Expert Comment

by:Cliff Galiher
ID: 39898207
Yes. Creating the virtual switch did not add those adapters. They were there already. And as you are selecting the switch, those adapters were not auto configured or changed when you created the switch either.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Install esxi 6 14 48
Clone Hype V Machine with ISCSI SAn storge 3 34
Hyper v or VMWare Player? 11 88
Migrating a Linux server to VMware 3 50
When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question