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: Download Nagios Grapher source code: Extract the archive Run the NagiosGrapher configure script Check the output checking for a BSD-compatible install… /usr/bin/install -c checking for gawk… no checking for mawk… mawk checking … 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: 2. Adding the Nagios user: 3. Download Nagios and Nagios plugins: 4. Untar the archives: 5. Compile Nagios 6. Compile Nagios plugins: 7. Add nagiosadmin user to the apache2 8. Restart apache2 webserver 9. Add www-data user to nagcmd group 10. Install nrpe server … 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 Configure NFS server # line 5: uncomment and change to your domain name Domain = test.org Configure NFS shares /home 10.0.0.0/24(rw,sync,no_root_squash,no_all_squash) Note: /home -> shared directory 10.0.0.0/24 -> range … 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: On the source machine: Note: please be VERY careful about IPs, devices and ports. after completion of dd command you have to run fsck on target … 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