Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts

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

Add a new HDD without rebooting Linux guest OS on VMware Workstation/vSphere

-Add a HDD in VM Setting.

-Check scsi_host value:
# ls /sys/class/scsi_host

-Rescan the scsi bus:
echo "- - -" > /sys/class/scsi_host/host#/scan
fdisk -l
tail -f /var/log/message