CentOS Hyper-v Virtual Machine Maintenance and Linux Integration Components Install

Every time CentOS Hyper-v Virtual Machine kernel is updated Hyper-V additions and Synthetic mouse support must be reinstalled. Also Grub must be edited to fix boot problem after each kernel update.

Update CentOS:

  • Update CentOS
  • “Yum update”
  • Restart Centos “reboot”

Fix Grub after CentOS Update:

  • Immediately on boot Press any key immediately on boot and edit grub using “e” for edit.
  • Edit Grub and remove “hda=noprobe hdb=noprobe” from primary grub record.

Initial Install of Hyper-v Integration Components (Drivers) to CentOS Hyper-v Virtual Machine (First Time Only):

  • Download Linux Integration Components to Hyper-v Host http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11674
  • Execute downloaded file to extract the ISO on Hyper-v Host.
  • Insert the ISO into your VM.  Mount using the virtual machine settings on the Hyper-v Host.
  • “mkdir /mnt/cdrom”
  • “mount /dev/cdrom /mnt/cdrom”
  • Copy the contents of the CD to a local folder:
  • “mkdir /opt/linux_ic”
  • “cp -r /mnt/cdrom/* /opt/linux_ic/”

Install Hyper-v Components/Drivers After Kernel Update or Initial Install  (Initial Install and After each CentOS Kernel Update):

  • As root compile and install the software.
  • “cd /opt/linux_ic/”
  • “make”
  • “make install”

Initial Copy of Synthetic Mouse Support Driver to CentOS Hyper-v Virtual Machine:

  • Download
  • There are instructions on that page as well — installation is simple though.
  • Insert the ISO into your VM.  Mount using the virtual machine settings.
  • “mount /dev/cdrom /mnt/cdrom”
  • Copy the contents of the CD to some local dir:
  • “mkdir /opt/linuxvsc”
  • “cp -r /mnt/cdrom /opt/linuxvsc”
  • Install xorg-x11-server-sdk package if it’s not already installed: yum install xorg-x11-server-sdk

Install the Synthetic Mouse Support driver (Initial Install and After each CentOS Kernel Update):

  • “cd /opt/linuxvsc”
  • “./setup.pl inputdriver”
  • Restart X11 -> ctrl+alt+backspace (or your whole VM — whichever you prefer) .

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: