Thursday, November 1, 2012

Hot add a NIC to a VM with a Linux guest OS

To configure the network card from the command line interface:
  • 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:
# vi /etc/sysconfig/network-scripts/ifcfg-eth2

No comments:

Post a Comment