Tag Archive for 'Linux'

CentOS 5.5 Installing Hyper-V Linux Integration Components v2.1

The first thing I recommend doing on your Linux VM server is running yum update. If you run ‘yum update’ after the installation you could see:
Kernel Panic after Yum Update – CentOS with Hyper-V Linux Integration Components, which would probably just add a few extra headaches.

Next, go to Microsoft, download and extract the Linux Integration Services package.

Next, install the Linux Integration Components:
Load the Linux Integration Components v2.1 iso into your VM.
When logged in as root, run:

Continue reading ‘CentOS 5.5 Installing Hyper-V Linux Integration Components v2.1’

Adding a Directory to Linux PATH Environment Variable

During custom compiling of applications, sometimes you will see error messages like the following:

make: depmod: Command not found

That doesn’t necessarily mean your computer doesn’t have something installed, but it could mean the program just couldn’t find it.
Here is how to fix it:

Continue reading ‘Adding a Directory to Linux PATH Environment Variable’

Kernel Panic after Yum Update – CentOS with Hyper-V Linux Integration Components

I am runnning CentOS 5.5 in a VM on Hyper-V. I created a fresh installation. I then installed Hyper-V Linux Integration Components. After Installing them I ran yum update.

After running a “yum update”, and rebooting I received this error.

Unable to access resume device (/dev/VolGroup00/LogVol01)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

During the yum update process, it updated my kernel. Kernels that are installed after Hyper-V Linux Integration Components don’t always mesh well together. Here is how I fixed my issue.

Continue reading ‘Kernel Panic after Yum Update – CentOS with Hyper-V Linux Integration Components’

Centos 5 linux / PHP prerequisites

If you are building PHP from source on a new server, you might run into few linux prerequisites before you can complete a ./configure. You might not need all of these, or you might need more depending on how much stuff you are including in your configure line. Here is how to fix a good majority of the issues you might run into on Centos 5.

Continue reading ‘Centos 5 linux / PHP prerequisites’

ClamAV Update Breaks Mail Delivery

Postfix + ClamAV + SpamAssassin + Amavisd-New

As we all know, ClamAV versions older than 0.95 stopped working yesterday. This was announced some time ago by ClamAV, but caught most people (Myself and Devin) by surprise when mail flow stopped cold on our email servers. ClamAV pushed down an update that broke older versions, forcing sysadmins to either disable Antivirus, or update ClamAV to a more recent version.

We were running a very old version of ClamAV, 0.91.2-1~volatile1, from 2007. An upgrade was long overdue anyway. Here are 2 ways to fix it.

Continue reading ‘ClamAV Update Breaks Mail Delivery’