Home > HyperV > Installing CentOS 6.6 on HyperV 2012R2

Installing CentOS 6.6 on HyperV 2012R2

  • Download CentOS ISO file: You can download the latest version of CentOS at http://wiki.centos.org/Download
  • Setup a HyperV VM for CentOS
    • At least 1 CPU
    • The amount of RAM will affect the installation GUI, VM with too little RAM will be reduced to a DOS like setup guide, whereas those with higher RAM will get a nice fancy GUI
    • No need for legacy network drivers, you can use the new 10GB network adapters normally used by HyperV
    • A minimum of 20GB HDD
    • Follow the guides and screen caps below if you need a detailed step by step guide
  • Once the OS is installed successfully, reboot
  • Login using the root account that was created during the installation
  • Issue the following 2 commands (these 2 commands are very important, failure to do this can result in unexplained hanging of the VM) 

    yum -y install hyperv-daemons
    yum -y update

  • If you wish for your installation to auto check for updates every night, issue the following commands

    #install yum cron job
    yum -y install yum-cron

    #enable nightly update
    /etc/init.d/yum-cron start

    #Enable at boot time
    chkconfig yum-cron on


Congrats, you now have a working CentOS in HyperV that auto updates itself every night to always be on the safe side of security 🙂


Setup in a Low Ram Environment

If you are running in a low ram environment, CentOS will not load the GUI setup environment, and you have to content with DOS based screens.

  1. Typically I would skip the media test since this is from an ISO file, if you are doing this off a DVD, might be wise to check, but be prepared to wait
    image_thumb[12]
  2. Then you will be prompted to setup a root password
    image_thumb[13]
  3. Once done, its now time to setup the disk. For convenience, I usually go for replacing the entire drive (its empty anyway)
    image_thumb[14]
  4. Simple matter of clicking write changes to disk to commit those changes
    image_thumb[15]
  5. Sit back and wait for installation to complete
    image_thumb[16]

 

Setup in a High Ram Environment

  1. Things look different if you have enough RAM, you get treated to a nice GUI
  2. Start by choosing your country and language
  3. You will then need to format the disk attached to the VM
    image_thumb19
  4. There after, setup the hostname
    image_thumb20
  5. As well as the networking details
    image_thumb21
  6. Then its onto the date/time settings
    image_thumb22
  7. And the root password
    image_thumb23
  8. Disk layout
    image_thumb24
  9. Confirmation of disk layout
    image_thumb25
  10. Type of installation, if you are going to install Vesta Control Panel, choose minimal
    image_thumb26
  11. Now sit back and wait for the installation to complete
    image_thumb27
Categories: HyperV
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: