Setup Centos 6 with Hyper V Network

Microsoft provides integration services for Centos/RHEL on Hyper-V.

After installing Centos 6 on Hyper-V, the network driver and integration services are missing. You must download and install these manually.

  1. Download the Linux Integration Services iso from http://www.microsoft.com/en-au/download/details.aspx?id=28188 to a location available from your Hyper-V host
  2. Mount the Linux Integration Services iso to your Centos guest
  3. Log on to your Centos Guest using root
  4. Mount the CDROM on the guest operating system by typing the following commands:
    1
    2
    mkdir /media/cdrom
    mount -t iso9660 /dev/cdrom /media/cdrom
  5. Change directory to the Linux Integration Services CD and start the install by typing
    1
    2
    cd /media/cdrom
    ./install.sh
  6. After the install has completed, you need to reboot the guest. Type “reboot”
  7. When the guest has restarted, the drivers are installed in to the kernel, but no network configuration has been created. Log on as root to configure your network.
  8. Type “vi /etc/sysconfig/network-scripts/ifcfg-eth0″ to create the configuration for eth0. The configuration should look something like this.. of course substitute your own values:DEVICE=eth0
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=192.168.1.0
    NETMASK=255.255.255.0
    IPADDR=192.168.1.41
    GATEWAY=192.168.1.254
  9. Next, type “ifup eth0″ to start the interface