I am running Linux in Hyper-V VMs since the launch of the Windows Server 2008 RTM. But in the beginning it was quite complex to get real performance and support for the network drivers.
Recently, with the launch of Windows Server 2008 R2, there are also new Linux Integration Components which also work for Windows Server 2008 RTM.
So, here is the list of steps to install CentOS with the integration components.
-
Download the latest CentOS distribution from https://vault.centos.org/5.0/isos/ (I use the x86_64 version).
-
Create a VM, I suggest:
-
400MB memory
- Add a Legacy Network Adapter (connect to network)
- Add a Network Adapter (connect to network)
-
-
Mount the CD-ROM and install CentOS (I use the minimal setup)
-
After the installation is done make certain you are up to date
-
Install the required components for the Linux Integration Components
-
Reboot into the latest kernel
-
Download the Linux Integration Components
-
Mount the CD-ROM and copy the contents
-
Build the drivers
If you get the message “No kernel-xen-devel or kernel-source package installed. You must install this package before installing the drivers.” edit the
setup.pl
file and change the following:If everything went OK you can now see a new nic (network interface controller) called
seth0
usingifconfig
-
You can now remove the Legacy Network Adapter.
Important
Remember, every time you update the kernel you have to run the setup.pl drivers
command.