Sunday, January 30, 2011

Install CentOS with Integration Components in Windows Server 2008 R2 Hyper-V

Hyper-V Linux Integration Services for Linux version 2.1 is a set of drivers that enable synthetic device support in supported Linux virtual machines under Hyper-V. The Linux integration components include support for both the synthetic network controller and synthetic storage controller that have been developed specifically for Hyper-V. These components take advantage of the new high-speed bus, VMBus, which was developed for Hyper-V.


There are following features in Hyper-V Linux Integration Services

  • Driver support for synthetic devices: The Linux integration components include support for both the synthetic network controller and synthetic storage controller that have been developed specifically for Hyper-V. These components take advantage of the new high-speed bus, VMBus, which was developed for Hyper-V.
  • Fastpath Boot Support: Boot devices now take advantage of the storage VSC to provide enhanced performance.
  • Timesync: The clock inside the virtual machine will remain synchronized with the clock on the host.
  • Integrated Shutdown: Virtual machines running Linux can be shut down from either Hyper-V Manager or System Center Virtual Machine Manager, using the “Shut Down” command.
  • Symmetric Multi-Processing (SMP) Support: Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine.
  • Heartbeat: Allows the host to detect whether the guest is running and responsive.
  • Pluggable Time Source: A pluggable clock source module is included to provide a more accurate time source to the guest.


Prerequisites

  • Download CentOS 5.2, 5.3, 5.4 or 5.5 x86 and x64

1.     At Hyper-V server, login as Administrator.
3.     Download Linux Integration Services for Windows Server 2008 Hyper-V R2 and save it as C:\Temp.
4.     Double-click Linux Integration Services for Windows Server 2008 Hyper-V R2, extract the file to C:\Temp.
5.     Launch Hyper-V Manager.
6.     Create a new virtual machine and install CentOS in the virtual machine.
7.     Power on CentOS, logon as root.
8.     Enter ifconfig.


The network isn’t installed in the CentOS.

9.     Navigate to /etc/yum.repos.d folder.
10.  Enter the following command to list the file:

ll


11.  Enter the following command to rename CentOS-Base.repo to CentOS-Base.repo.bk

mv CentOS-Base.repo CentOS-Base.repo.bk

12.  Enter the following command to modify CentOS-Media.repo:

nano CentOS-Media.repo

13.  Modify the file as the following:


14.  Press Ctrl + O, and then press Ctrl + X.
15.  Insert CentOS installation Disk into CentOS VM.
16.  Enter the CentOS, invoke the following command to create a folder for CDROM:

mkdir /mnt/cdrom


17.  Enter the following command to mount the ISO file:

mount –t iso9660 /dev/cdrom /mnt/cdrom


18.  Enter the following command to verify to be mounted or not:

df


19.  Enter the following command to update Kernel devel:

yum install kernel-devel –y


20.  Enter the following command to update gcc:

yum install gcc –y


21.  Enter the following command to unmount the CertOS DVD.

umount /mnt/cdrom

22.  Insert LinuxIC v2.iso into the CentOS VM.
23.  Enter the following command to mount the ISO file:

mount –t iso9660 /dev/cdrom /mnt/cdrom


24.  Enter the following command to create a folder and copy the cdrom data to it:

mkdir /opt/linux_ic_rtm

cp /mnt/cdrom/* /opt/linux_ic_rtm –R


25.  Navigate to “/opt/linux_ic_rtm” folder, enter the following command:

make


make install


26.  Enter reboot to restart the server.
27.  After the server is restarted, logon as root.
28.  Enter ifconfig.


The Linux Integration Components is installed in the CentOS.

This posting is provided “AS IS” with no warranties, and confers no rights!

No comments:

Post a Comment