Having tried all the major virtualization vendor's products over the years, I am most familiar with Microsoft Hyper-V and so my network lab runs that hypervisor on hardware. Microsoft has done an ever improving job over recent years to support non-Microsoft Operating Environements, NMOE, on their Hyper-V platform.

This post is to report my recent experience and supplient other available instructions for getting CentOS 6.2 running on the Hyper-V platform. At the end of the post, there are a series of questions I am left with about how this could be replicated easily.

Step 1: Download the CentOS minimal iso. (From CentOS)

Step 2: Download the Linux Intergration Components. (From Microsoft Current as of publication, check for newer versions. )

Step 3: Create a new virtual machine:

a) Use the CentOS DVD iso to install. (Attach the file to an IDE DVD in the settings)

b) A 10GB VHD will suit most users, you can add storage if your application demands it.

c) Use at least 1GB RAM at least to install. (This gets us a graphical install albeit with no mouse, which we need to make a simpler disk layout. If you do a text install, you do not get to change the disk layout. You can change it to 512MB if you want after install.)

d) Once the machine is created but before you boot up to install, go back to the settings. Remove the network adapter and install a Legacy Network Adapter. The legacy adapter will let the OS installation see a network and set all that up for us.

e) Make sure you record the MAC address that Hyper-V assigns. You will need this information later.

Step 4: Boot the VM for the first time and Install the OS as normal for your application.

Step 5: Remember that CentOS 6 will not enable the interface by default. I usually go into the network manager during install and check the box to bring the interface up at boot.

Step 6: At the end of the OS install, it will eject the DVD and reboot. You may log in and verify that the interface was setup as you desired. Shut the VM down.

Step 7: Attach the MS Linux IC iso to the vm and boot up.

Step 8: Mount DVD.

mount /dev/cdrom /media

Step 9: Install integration components.

/media/install.sh

update on step 9 Some readers report that my fully qualified command did not work correctly for them. See the comments from Chris and Peter N regarding alternative methods to call the command.- [April 13 2012]

Step 10: Shutdown the VM.

Step 11: In settings remove legacy network adapter, insert network adapter.

Step 12: Change MAC address of network adapter to static and supply the MAC address you recorded earlier for the legacy adapter.

Step 13: Boot and verify network is still working.

As I wonder how to easily duplicate this virtual machine I am left with the problem that I cannot attach a cloned VHD to a running machine. So I cannot just mount a copy of the image and edit the required files. I could have a Linux machine dedicated to doing this and rebooting to achieve it... but that seems kind of ugly. I wish Windows Disk Manager knew what to do with EXT4.

For reference in CentOS 6, the MAC address is configured in a few places. At least one of which is new since ContOS 5.7. When devices are created the software udev is used and this represents a change from previous releases. The MAC address of interfaces is stored in

/etc/udev/rules.d/70-persistent-network.rules

as well as

/etc/sysconfig/network-scripts/ifcfg-eth0

. In production I would probably want to set static IP address as well on machines before deploying them.

Root password would need to be changed, and possibly hostnames.

Oh well, its a start. I hope the instructions help you get it going in your lab.

Cracking = terrorism ?

| No Comments
A few days ago I read an interview with a teenager who was reported to have stolen "Israeli credit cards". I know what a American Express credit card is. I know what a MasterCard credit card is. I have never...

Still looking too closely.

| No Comments
A few years ago, I happened to notice an idiocycracy about some word proccessor's spell checker. Its been fixed....

captcha hijacking?

| No Comments
The other morning I got a message from my web host that I was over my bandwidth for the month. In and of itself this didn't overly concern me; but once I thought about it and realized it was about...
MT 5.1 supports modern versions of IE (ummm not really), and then they make death jokes about a browser? (I didn't even get the joke.) It confirms my opinion of SIxApart as unprofessional, and I don't really want to be...

Backuppc on CentOS 5 (selinux fix)

| No Comments
Following the HOWTO instructions on the CentOS wiki to install backuppc, I ran into some problems. The Apache error logs told me that there was a permissions issue with the htpassword file. Permission were fine. There was a problem with...

Google Safe Search and dog breeding

| No Comments
Google Safe Search is a setting you can enable at Google so that when you search their index you will not see any results they consider "adult". This presents a decision for certain businesses. They may have words in thier...
I fancy myself a consultant. Whatever that means. I help people understand how to use a wide range of network infrastructure technologies in their small businesses. One tiny part of what I do is to help other companies write their...

Small Business Server 2011 announced

| No Comments
Someone chastised me for posting my guess as to when Microsoft would release the next version of SBS. A couple weeks ago, I was proven wrong. According to a technet blog post which announces the names, versions and pricing of...

A vision of our tearless times

| No Comments
The title of my post is from a poem by Peter Meinke entitled "Sonnet On The Death Of The Man Who Invented Plastic Roses". It may be my favorite poem. As a humorous homage to Meinke I offer my own...

SBS 7 ... already?

| No Comments
It was a little less than 2 years ago when I did my first Windows Small Business Server 2008 migration. Time rolls on, and I shouldn't be surprised that we have now heard the first rumblings of the next new...

Calabrese's Razor

| No Comments
In small business networks, we have rules of thumb for security. Use passwords Update virus protection Deploy perimeter firewalls I understand these things are important, and you probably do too. We call these controls. They are things that we agree...

AVG 9.0 pretty good; one little snag

| No Comments
I'm not one to do product promotions or even reviews. I am not an anti-virus expert by any strech of the imagination, but my business gives me exposure to a variety of environements and I have been well served by...

When memory goes bad : EDAC errors

| 1 Comment
Recently I rebooted a storage array and I saw a bunch (one per second) of errors messages spewing on the console and in the message logs. EDAC MC0: CE page 0x7f579, offset 0x800, grain 128, syndrome 0x70, row 1, channel...

CentOS 5.4 : mismatch_cnt is not 0

| 2 Comments
After I upgraded a bunch of servers, one of them started sending me warnings like this once per week, when cron.weekly ran. /etc/cron.weekly/99-raid-check: WARNING: mismatch_cnt is not 0 on /dev/md4 Steve Tendall posted about this on the CentOS list stating...

Find recent content on the main index or look in the archives to find all content.

Recent Comments

  • Peter N: Copy the contents of the CD image you have mounted read more
  • Chris: I got the same error. The below commands fixed it. read more
  • Josiah Rocke: I am trying to follow this guide and keep getting read more
  • Bernhard: Writing to /sys/module/edac_core/parameters/edac_mc_log_ce turns off the message during runtime. However read more
  • Charles: I have same issues with a bunch of servers. I read more
  • gregor: thanks, that solutions works for me (centos 5.4 i686) greetings read more
  • Eric Sundwall: I had a similar conversation about a week ago with read more
  • Internet Bandit: Other than donating your mobile or relocating to Tasmania... read more
  • Internet Bandit: Mike has always been top-shelf! Congrats Mike! read more
  • Dave Lewis: Glad I could help. :) cheers, Dave read more

Recent Assets

  • oddthings-revisited.png
  • parseroftomorrow.png
  • ModernIEcommentary.png
  • vmw-floppycap.png
  • vfdtool-floppycap.png
  • somefiles.png
  • melody-logo-mark-on-white-thumb-200x200-7.jpg
  • IfTheStartMenuHadBeenUpperLeft.PNG
  • Vista Control Panel
  • iSCSI-4.png
OpenID accepted here Learn more about OpenID

Subscribe by Email

Enter your email address:

Delivered by FeedBurner