NICs added to a virtual machine with a Linux guest operating system by using hot add are not activated automatically
search cancel

NICs added to a virtual machine with a Linux guest operating system by using hot add are not activated automatically

book

Article ID: 344850

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

After you use hot add to add a network card to a virtual machine with a Linux guest operating system, the network card may not activated and you may have to configure the network card. This article provides the steps to configure the network card

Environment

VMware ESXi 4.0.x Installable
VMware ESX 4.0.x
VMware ESXi 4.0.x Embedded
VMware vCenter Server 4.0.x

Resolution

To configure the network card:
  1. In the Linux guest for the virtual machine, select System > Administration > Network.
  2. Make sure that the Devices tab is selected.
  3. Click New.
  4. Click Ethernet connection and click Forward.
  5. Click the network card you added by using hot add and click Forward.
  6. Follow the prompts to configure the network card or accept the defaults to obtain an IP address from a DHCP server.
  7. Click Apply.
  8. In the Devices tab, click the Ethernet connection.
  9. Click Activate.
  10. Click Yes to confirm the network card activation.
To configure the network card from the command line interface:
The below command is just an example and this may vary depending on the guest operating system type.
  • The acpiphp module must be loaded for Linux to detect hot-added devices.

    To load the acpiphp module, run this command:

    modprobe acpiphp

     
  • Run the kudzu command to ensure that the new hardware is detected and configured.
  • Run this command to ensure that the network card is enabled:
ifup eth2

Note: eth2 is the new network card that has been added.
  • To configure the network card, edit the ifcfg-eth2 file using a text editor.

    To edit the file using vi editor, run this command:

          Example below :- 

# vi /etc/sysconfig/network-scripts/ifcfg-eth2

Additional Information

For translated versions of this article, see: