Monday, April 26, 2010

Some cisco related stuff see it later device driver links

you don’t have to buy a full rack anymore because of Dynamips, which effectively allows you to run IOS on your PC

Device Driver Related Links a good stuff

Some good links and sources.list for debian

Advanced Bash scripting Guide

Top 10 Open Source Project Management softwares

Xen cut from RHEL

RHEL 6 released

Company behind KVM

White house with Drupal


Some thing went above head

Virtualizing without virtualizing

Video Tutorials for Linux

Xen cut from Red Hat

How to install / setup TightVNC on Debian / Ubuntu Tutorial

Linux Security Cookbook

20 best practises for SSH

Great Link about Shell scripting

Darwin Streaming Server

Darwin streaming server under Linux

Ten tips for choosing a streaming server

Which is best streaming server for Linux

Build Your Own Video Community With Lighttpd And FlowPlayer (Debian Etch)
Streaming with VLC

Addon to watch Live HTTP header

Computer Forensics Linux

Internet Protocols analyser

This site had a lot of resources and pointed to a lot of things must visit
Some web and networking tools


Following links are related to Xen management tools
Some blog links

Some books

Xen management tool Ovirt How to use it

Red Hats KVM

Exim FAQ

Official squeeze repository

A great Link from NASA

Searching packages on apt

Boot logs to enable always

deb lenny main
deb-src lenny main

deb lenny/updates main contrib
deb-src lenny/updates main contrib

deb lenny non-free
deb lenny contrib

deb sarge contrib

Squeeze sources list obtained here

## Debian Squeeze sources.list

## Debian security updates:
deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

## Debian Official Repository Mirror squeeze:
deb squeeze main contrib non-free
deb-src squeeze main contrib non-free
deb squeeze-proposed-updates main contrib non-free
deb-src squeeze-proposed-updates main contrib non-free

## Debian NL mirror:
deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

## Debian DE mirror:
deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

## Debian US mirror:
deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

## Wine repositories:
deb squeeze main

## Opera webbrowser:
deb squeeze non-free

## Tor:
# deb squeeze main

## moblock: mobloquer
## gpg --keyserver --recv 9072870B
## gpg --export --armor 9072870B | sudo apt-key add -
# deb squeeze main
## Quoted cause of index failure
# deb-src squeeze main

## EFTel mirror updates
deb squeeze main non-free contrib
deb-src squeeze main non-free contrib

## squeeze:
deb squeeze main non-free contrib
deb-src squeeze main non-free contrib

## Debian Multimedia squeeze:
deb squeeze main

## All testing repositories:

## testing:
deb testing main contrib non-free
deb-src testing main contrib non-free

## Debian Official Repository Mirror testing:
deb testing main contrib non-free
deb-src testing main contrib non-free

## Austrian testing mirror:
deb testing main non-free contrib
deb-src testing main non-free contrib

## Debian Unofficial:
## For more info visit
deb testing main contrib non-free restricted
deb-src testing main contrib non-free restricted

## Debian Multimedia - Christian Marrillat repository:
deb testing main
deb-src testing main

## Google software repository:
## (wget -q -O - | sudo apt-key add - )
## or (gpg --keyserver --recv A040830F7FAC5991 && gpg --export --armor A040830F7FAC5991 | sudo apt-key add - )
## Quoted cause of index failure
# deb testing non-free

## testing:
deb testing main non-free contrib
deb-src testing main non-free contrib

## Debian Multimedia testing:
deb testing main

## Compiz / Compiz-Fusion testing:
## Quoted cause of index failure
# deb testing compiz-fusion-git
# deb ./

## All expirimental repositories:

## Debian experimental US mirror:
# deb experimental main contrib non-free
# deb experimental main

## All unstable repositories:

## Compiz / Compiz-Fusion unstable:
## Quoted cause of index failure
# deb unstable compiz-fusion-git
# deb ./

## Legacy, obsoleted repositories:

## XFCE repositories:
## Squeeze not available yet
# deb lenny xfce460
# deb-src lenny xfce460

## Virtual box (not OSE but SUN)
## Squeeze not available yet
## Quoted cause of index failure
# deb lenny non-free

## Kirya Unofficial Debian packages:
## Squeeze not available yet
## Testing is linked to lenny and results in compatibility errors (old lenny = testing)
# deb lenny main contrib non-free
# deb-src lenny main contrib non-free

mod_rewrite etc on apache2

Apache2 wiki


Documentation of Apache2

Users mailing list Apache2

Network stuff from kernel newbies and port forwarding

Debian administration article
A good discussion which gives a lot of links for network block etc

Some network
Anatomy of Network stack

SSH forwarding

Some nice articles on Linux to be shared.

Internet connection sharing Ubuntu

Cygwin SSH from windows

Port forwarding in a restricted environment
Awesome tricks by X forwarding totem etc points to above article really a nice article with good explanation.
By passing internet censorship

Tunnel SSH over HTTP

Just in case you need documentation

Some basic doc

Online port scan

Wednesday, April 14, 2010

Drupal Debian

you have to edit the /etc/apache2/apache2.conf and, at the end of the file, add:

# added servername to avoid the could not determine fqdn error
servername myserver

place your server name in place of myserver.

it worked for me.

Monday, April 12, 2010

Apache2 as a proxy server,Squid links

DNS Caveats and Issues Regarding DNS and Apache
Apache IP based Virtual Host support

Apache module mod_proxy

Great tutorial about Reverse Proxy of Apache2.

Tutorial from IBM about reverse proxy

A problem coming in configuring hostnames

The NameVirtualHost yada yada error
some X-Forwarded-For logs

Guide by passing internet sensorship
Good guide about Squid

Some variables we need to know are

Saturday, April 10, 2010

Setting up IPTABLES Dom0 Debian Xen

Some improvement in Xen FAQ

Squid set up

Novell article for NAT etc on Xen

Some good information is here

Following text is on this link
How do I test whether network-script is running or not in Xen Dom0.
I have a Debian Lenny Dom0.Running Xen on it and 4 virtual hosts on it.
I am currently setting up a proxy server in Dom0 which DomU's will be
able to use.The problem is before I go on to set NAT I wanted to test

So I renamed the bridge in /etc/xen/xend-config.sxp

(network-script 'network-bridge bridge=ABCD')

but when I do a reboot or xend restart and do following


openworld:/etc/xen# brctl show
bridge name bridge id STP enabled interfaces
eth2 8000.0026b9824238 no peth2

the bridge is not renamed to ABCD above output is showing eth2 which
is not even default.
So I doubt that the script network-bridge has not been called so that
it renames the bridge or there is some thing else I should look for.

I had set up a dummy network interface on Dom0

modprobe dummy0
then in Dom0 /etc/network/interfaces
added the ip to dummy interface.

in network-bridge netdev=dummy0') was set so that it was used.
brctl was showing this dummy and then a simple POSTROUTING configuration.
As following
Generated by iptables-save v1.4.2 on Mon Apr 12 00:26:28 2010
:PREROUTING ACCEPT [6947:1405079]
:OUTPUT ACCEPT [37:2077]
# Completed on Mon Apr 12 00:26:28 2010
# Generated by iptables-save v1.4.2 on Mon Apr 12 00:26:28 2010
:PREROUTING ACCEPT [381404:326958136]
:INPUT ACCEPT [6810:754933]
:FORWARD ACCEPT [405217:330924920]
:OUTPUT ACCEPT [1715:334655]
:POSTROUTING ACCEPT [406680:331235857]
# Completed on Mon Apr 12 00:26:28 2010
# Generated by iptables-save v1.4.2 on Mon Apr 12 00:26:28 2010
:INPUT ACCEPT [90483:38271495]
:FORWARD ACCEPT [538682:367785045]
:OUTPUT ACCEPT [48797:6397869]
-A FORWARD -s -m physdev --physdev-in vif1.0 -j ACCEPT
-A FORWARD -p udp -m physdev --physdev-in vif1.0 -m udp --sport 68 --dport 67 -j ACCEPT
-A FORWARD -s -m physdev --physdev-in vif2.0 -j ACCEPT
-A FORWARD -p udp -m physdev --physdev-in vif2.0 -m udp --sport 68 --dport 67 -j ACCEPT
-A FORWARD -s -m physdev --physdev-in vif3.0 -j ACCEPT
-A FORWARD -p udp -m physdev --physdev-in vif3.0 -m udp --sport 68 --dport 67 -j ACCEPT
-A FORWARD -s -m physdev --physdev-in vif5.0 -j ACCEPT
-A FORWARD -p udp -m physdev --physdev-in vif5.0 -m udp --sport 68 --dport 67 -j ACCEPT
# Completed on Mon Apr 12 00:26:28 2010

My general technique for seeing what's up with the script in a case like
this is to insert at the top:
set -x
exec &>/tmp/network-script$$

Then you'll get a file with the pid on the end every time it's executed,
with an exec trace. Don't forget to clean up the /tmp files and the
script when done.

Some one is talking here not read myself completely how helpful is it.

Port Forwarding on IPTABLES

Some more IPTABLE rules

Hands on guide to Debian
You can try SSHD filter

Thursday, April 8, 2010

Virtualization with Debian

To create image
xen-create-image --hostname=vignettes --size=150GB --swap=4096Mb --ip= --memory=2048 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/

xen-create-image --hostname=education --size=114GB --swap=6144Mb --ip= --memory=3072 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/

xen-create-image --hostname=social --size=98GB --swap=2048Mb --ip= --memory=1024 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/

xen-create-image --hostname=ocw --size=52GB --swap=2048Mb --ip= --memory=1024 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/

xm console
You will see messages

xm shutdown vignettes

vignettes:~# exit

Debian GNU/Linux 5.0 vignettes hvc0

INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
Saving the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Stopping enhanced syslogd: rsyslogd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Deactivating swap...done.
Will now halt.
[ 310.169142] xen console-0: xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping
[ 310.490258] System halted.

You can confirm if it has stopped.

Following error messages were encountered while installing vim

Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED
feature is disabled in the running kernel.

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!

So a clean sources.list file is needed.

Common errors
Before I
xm create or path to domain

I mixed domain
Error 2
You appear to have a missing vif-script, or network-script, in the
Xen configuration file /etc/xen/xend-config.sxp
Please fix this and restart Xend, or your guests will not be able
to use any networking!

An ebook

Wednesday, April 7, 2010

Compiling Xen from sources on Debian

Some one explained me in detail on community so I am forwarding same here
This guide will explicate in detail about the procedure for compiling
vanilla kernel from source and customize it according to your hardware
specifications and then compiling latest XEN from source and patching
it with Linux.
First install these packages:

sudo apt-get install iproute bridge-utils gcc make gettext
sudo apt-get install libcurl4-openssl-dev è openssl
sudo apt-get install python-dev zlib1g-dev bcc libsdl-dev pciutils-dev
è zlib

First we will compile latest XEN Hypervisor from source.

Go to and download the
latest XEN hypervisor from there. [Version 3.4.1 at the time of
writing the guide]
Xen 3.4.1 is available WITH and WITHOUT 2.6.18 dom0 kernel. We need
the version without dom0 linux because we will compile our own vanilla
I am seting up XEN 3.4.1 on amd64 hardware and running debian
distribution on it with upgraded kernel.
My hardware specifications:
unme -a
Linux -04 #1 SMP Wed Oct 21 16:35:11 BST
2009 x86_64 GNU/Linux
Build / Install Xen

1. mkdir /home/tapas/xen
2. cd /home/tapas/xen
3. tar -xzf xen-3.4.1
4. cd xen-3.4.1
5. make xen
6. make install-xen
7. make tools
8. make install-tools

Build Vanilla kernel
Now we will build th PV_Ops Kernel. The Vanilla kernel source will be
downloaded from Jeremy's tree. Jeremy's git tree on
contains the pv_ops dom0 patches. If we use Jeremy's tree then we do
not any extra patches to bind XEN with kernel source.

1. mkdir /home/tapas/linux
2. cd /home/tapas/linux
3. git clone git://
4. linux-2.6-xen
5. cd linux-2.6-xen
6. git checkout origin/xen/master -b xen/master
7. make menuconfig [see Note below]
8. make-kpkg clean
9. CONCURRENCY_LEVEL=N fakeroot make-kpkg --initrd
--append-to-version=-custom kernel_image kernel_headers
10. This will make the debian packages in the parent directory which
you can install

Note: Please choose the following xen specific optiions in kernel configuration.

Processor type and features ---> Subarchitecture Type (PC-compatible)
---> (X) Enable Xen compatible kernel
Bus options (PCI etc.) ---> [*] PCI support
[*] Xen PCI Frontend
[ ] Xen PCI Frontend
Debugging (NEW)
Device Drivers ---> XEN ---> [*] Privileged Guest (domain 0)
<*> Backend driver support (NEW)
<*> Block-device
backend driver (NEW)
<*> Block-device tap
backend driver (NEW)
<*> Network-device
backend driver (NEW)
(8) Maximum
simultaneous transmit requests (as a power of 2) (NEW)
[ ] Pipelined
transmitter (DANGEROUS) (NEW)
< > Network-device
loopback driver (NEW)
<*> PCI-device
backend driver (NEW)
PCI Backend
Mode (Virtual PCI) --->
[ ] PCI
Backend Debugging (NEW)
< >
TPM-device backend driver (NEW)
SCSI backend driver (NEW)
< > TPM-device backend driver (NEW)
SCSI backend driver (NEW)
Block-device frontend driver
Network-device frontend driver
Network-device frontend driver
acceleration for Solarflare NICs (NEW)
SCSI frontend driver (NEW)
<*> User-space granted page access driver (NEW)
<*> Framebuffer-device frontend driver (NEW)
<*> Keyboard-device frontend driver (NEW)
[*] Disable serial port drivers (NEW)
<*> Export Xen attributes in sysfs (NEW)
(256) Number of guest devices (NEW)
Xen version compatibility (3.0.4
and later) --->

After xen confiuration, please make sure that .config has the
following parameter configuration:



Install these debian packages using
sudo dpkg -i
Add the following line to /etc/fstab

none /proc/xen xenfs defaults 0 0

and reboot the machine.

After installing the debian packages, the Grub Entry will look like
the following:
title Xen 3.4.1 / Debian GNU/Linux, kernel
root (hd0,0)
kernel /boot/xen-3.4.1.gz
module /boot/vmlinuz- root=/dev/sda1 ro
module /boot/initrd.img-

Hope that will help.
If you want to look at original post then here is a link
Note that file-backed VBDs may not be appropriate for backing I/O-intensive domains. File-backed VBDs are known to experience substantial slowdowns under heavy I/O workloads, due to the I/O handling by the loopback block device used to support file-backed VBDs in dom0. Better I/O performance can be achieved by using either LVM-backed VBDs (Section 6.3) or physical devices as VBDs (Section 6.1).

Time Zones

tzconfig is deprecated
openworld:~# dpkg-reconfigure tzdata

Tuesday, April 6, 2010

LVMs on Debian and LAN Issue Got Xen up and running

updated the firm ware on R710 it is on Debian site here is a link
after that it showed the lan card detected

Here is a link in case you want to know some one else had faced
similar problem and they have claimed it worked for them on R710 for
I have also manually added the firmware as he mentioned on the above link.

LVMs on Debian

If you have not installed using LVM Pvcreate is not working
this is what is actually required

openworld:~# man vgchange
openworld:~# vgchange -a n lvmxen
0 logical volume(s) in volume group "lvmxen" now active
openworld:~# pvscan
PV /dev/sda5 VG lvmxen lvm2 [93.13 GiB / 93.13 GiB free]
PV /dev/sda6 lvm2 [93.13 GiB]
PV /dev/sda7 lvm2 [93.13 GiB]
PV /dev/sda8 lvm2 [93.13 GiB]
Total: 4 [372.54 GiB] / in use: 1 [93.13 GiB] / in no VG: 3 [279.40 GiB]
openworld:~# vgremove lvmxen
Volume group "lvmxen" successfully removed
openworld:~# pvscan
PV /dev/sda5 lvm2 [93.13 GiB]
PV /dev/sda6 lvm2 [93.13 GiB]
PV /dev/sda7 lvm2 [93.13 GiB]
PV /dev/sda8 lvm2 [93.13 GiB]
Total: 4 [372.54 GiB] / in use: 0 [0 ] / in no VG: 4 [372.54 GiB]


TO activate and remove etc

Careful following link used Etch

My post

Moving on to DomU after creating LVMs

Since I used LVMs so