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.
- 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 - Mount the Linux Integration Services iso to your Centos guest
- Log on to your Centos Guest using root
- Mount the CDROM on the guest operating system by typing the following commands:
12
mkdir
/media/cdrom
mount
-t iso9660
/dev/cdrom
/media/cdrom
- Change directory to the Linux Integration Services CD and start the install by typing
12
cd
/media/cdrom
.
/install
.sh
- After the install has completed, you need to reboot the guest. Type “reboot”
- 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.
- 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 - Next, type “ifup eth0″ to start the interface