Autostart VM in free version of XenServer 6.x

Unlike previous versions, VMs do not have a visible property in the GUI allowing autostart, which kinda sucks big time. This has been claimed to interfere with High Availability (HA) and produced unexpected results during HA functions. So, what we are going to do?! First approach is to set auto_poweron parameter to true at the pool and VM … Continue reading Autostart VM in free version of XenServer 6.x

How to install Nagios Grapher on debian squeeze

In case you don’t have nagios installed, you need to install it as described here After installing nagios, please install the following packages: [codesyntax lang=”bash”] apt-get install autoconf rrdtool perl perl-base perl-modules libcalendar-simple-perl libgd-gd2-perl perlmagick librrds-perl liburi-perl [/codesyntax] Download Nagios Grapher source code: [codesyntax lang=”bash”] wget -c http://downloads.sourceforge.net/project/nagiosgrapher/nagiosgrapher/NagiosGrapher-1.7.1/NagiosGrapher-1.7.1.tar.gz [/codesyntax] Extract the archive [codesyntax lang=”bash”] tar … Continue reading How to install Nagios Grapher on debian squeeze

How to install nagios3 from source on debian squeeze

1. First we will need to install the prereq’s by running: [codesyntax lang=”bash”] apt-get install apache2 build-essential libgd2-xpm-dev libperl-dev openssl gcc make autoconf automake mailutils libssl-dev libmysqld-dev libmysqlclient-dev libldap2-dev libradiusclient-ng-dev libapache2-mod-php5 libsnmp-perl nfs-common nfs-kernel-server libnet-dns-perl libnet-snmp-perl libdbi-perl libapache2-request-perl libdbd-mysql-perl libcrypt-ssleay-perl mysql-client libnet-tftp-perl snmp [/codesyntax] 2. Adding the Nagios user: [codesyntax lang=”bash”] groupadd -g 9000 nagios … Continue reading How to install nagios3 from source on debian squeeze

How to setup a NFS server on CentOS 6

This document describes how to configure your CentOS 6.x linux to act as a NFS Server to share any directories on your Network Install required software [codesyntax lang=”bash”] yum install nfs-utils [/codesyntax] Configure NFS server [codesyntax lang=”bash”] vim /etc/idmapd.conf [/codesyntax] # line 5: uncomment and change to your domain name Domain = test.org Configure NFS … Continue reading How to setup a NFS server on CentOS 6

How to clone a running Linux system over network using netcat

This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). On the target machine: [codesyntax lang=”bash”] nc -p 2222 -l | bzip2 -d | dd of=/dev/hdb [/codesyntax] On the source machine: [codesyntax lang=”bash”] bzip2 -c /dev/hda | nc 10.111.1.206 2222 … Continue reading How to clone a running Linux system over network using netcat

How to setup a NIS Slave server on Debian Squeeze

Assumptions I am assuming that we have two networks linked with a vpn connection (net1: 10.99.0.0/24 and net2: 10.34.132.0/24). Also I am assuming that on net1 is a functional NIS master server. NIS MASTER: nis1.test.org 10.99.0.10 NIS SERVER: nis2.test.org 10.34.132.195 How to setup a NIS client If you put a servername in /etc/yp.conf, make sure … Continue reading How to setup a NIS Slave server on Debian Squeeze

Automatically set the hostname during Kickstart Installation

When you want to install linux on a large number of servers kickstart approach is a very good one. But what about hostname?! You have many choices: A kickstart file for each server, but come on… what kind the choice is this?! A kickstart file for all servers and set hostname after installation (manually on … Continue reading Automatically set the hostname during Kickstart Installation