<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog of a LAMP Developer based in Richmond, Surrey &#187; centos</title>
	<atom:link href="http://www.lampdeveloper.co.uk/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lampdeveloper.co.uk</link>
	<description>A day in the life of a Lamp Developer</description>
	<lastBuildDate>Sat, 13 Nov 2010 11:16:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HyperVM Manual Alternative for creating Xen Domu using LVM</title>
		<link>http://www.lampdeveloper.co.uk/linux/hypervm-manual-alternative-for-creating-xen-domu-using-lvm.html</link>
		<comments>http://www.lampdeveloper.co.uk/linux/hypervm-manual-alternative-for-creating-xen-domu-using-lvm.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 17:40:47 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[hypervm alternative]]></category>

		<guid isPermaLink="false">http://www.lampdeveloper.co.uk/?p=133</guid>
		<description><![CDATA[After the sad death of K T Ligesh I decided, like many people, to move away from HyperVM.
I searched and tried many control panels.
Openqrm &#8211; I found this over kill
karesansui &#8211; This is very nice looking and polished but seemed quite slow.
VDS Manager &#8211; Still in beta for Xen
I&#8217;ve now decided to create the VM&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>After the sad death of K T Ligesh I decided, like many people, to move away from HyperVM.</p>
<p>I searched and tried many control panels.</p>
<p><a href="http://www.openqrm.com/" target="_blank">Openqrm</a> &#8211; I found this over kill<br />
<a href="http://www.karesansui-project.info/" target="_blank">karesansui</a> &#8211; This is very nice looking and polished but seemed quite slow.<br />
<a href="http://www.ispsystem.com/en/software/vdsmanager/" target="_blank">VDS Manager</a> &#8211; Still in beta for Xen</p>
<p>I&#8217;ve now decided to create the VM&#8217;s by hand. I then hope to make a PHP control panel of my own. Here are my steps for creating Xen VPS&#8217;s using the command line and Centos 5.</p>
<p>I&#8217;m going to create a vm called testvm</p>
<p>First I needed to find out what Volume groups exist on my system and what the VG Name was</p>
<p><em>lvdisplay</em></p>
<p>VG Name                <strong>VolGroup00</strong></p>
<p>Create the disks for the VM and format</p>
<p><em>lvcreate -L8.5G -n testvm_rootimg VolGroup00<br />
lvcreate -L 384M -n testvm_vmswap VolGroup00<br />
mke2fs /dev/VolGroup00/testvm_rootimg<br />
tune2fs -j /dev/VolGroup00/testvm_rootimg<br />
mkswap /dev/VolGroup00/testvm_vmswap</em><br />
<em>mkdir /mnt/img<br />
mkdir /mnt/vm</em></p>
<p>Now mount your disk image. I&#8217;ve created a custom hardened Centos distro, but you could use <a href="http://mirror1.smudge-it.co.uk/jailtime/" target="_blank">Jailtime Images</a></p>
<p><em>mount -o loop centos.5-3.64-smudge.img  /mnt/img<br />
mount /dev/VolGroup00/looop_rootimg /mnt/vm</em></p>
<p>Copy the image onto your new partition</p>
<p>cp -a /mnt/img/* /mnt/vm/</p>
<p>Now all you need to do is configure the hostname, ip etc on the VM.</p>
<p>vi /mnt/vm/etc/sysconfig/network-scripts/ifcfg-eth0</p>
<p>DEVICE=eth0<br />
BOOTPROTO=static<br />
IPADDR=87.xxx.xxx.xxx<br />
NETMASK=255.255.255.xxx<br />
ONBOOT=yes</p>
<p>Change the hostname</p>
<p>vi /mnt/vm/etc/sysconfig/network</p>
<p>If your using Jailtime images people have advised to change this line to the following:</p>
<p><em>vi /mnt/vm/etc/inittab<br />
1:2345:respawn:/sbin/mingetty console</em></p>
<p><em>vi /mnt/vm/etc/ssh/sshd_config<br />
PermitRootLogin yes</em></p>
<p><em>vi /mnt/vm/etc/fstab</em></p>
<p>Add the line:</p>
<p><em>/dev/sda2     swap   swap     defaults     0     0</em></p>
<p><em>umount /mnt/img /mnt/vm</em></p>
<p>You will need a ram disk to boot from. This can be created by running:</p>
<p><em>mkinitrd /boot/xen-guest-initrd `uname -r` &#8211;with xenblk &#8211;with xennet &#8211;preload xenblk &#8211;preload xennet </em>&#8211;omit-scsi-modules</p>
<p>Now all you need to do is create the config file and give it an IP/ Mac address.Please check which kernel you are using first and change &#8211; kernel = &#8220;/boot/vmlinuz-2.6.18-128.1.14.el5xen&#8221;&#8230;</p>
<p>kernel = &#8220;/boot/vmlinuz-2.6.18-128.1.14.el5xen&#8221;<br />
ramdisk    = &#8216;/boot/xen-guest-initrd&#8217;<br />
maxmem = 192<br />
memory = 192<br />
vcpus = 1<br />
name = &#8220;testvm&#8221;<br />
vif = [ 'ip=87.xxx.xxx.xxx,bridge=xenbr0, rate = 1000KB/s, mac=aa:00:23:b0:de:34' ]<br />
serial     = &#8216;pty&#8217;<br />
disk       = ['phy:/dev/VolGroup00/testvm_rootimg,sda1,w', 'phy:/dev/VolGroup00/testvm_vmswap,sda2,w']<br />
root = &#8216;/dev/sda1 ro&#8217;<br />
on_poweroff = &#8216;destroy&#8217;<br />
on_reboot   = &#8216;restart&#8217;<br />
on_crash    = &#8216;restart&#8217;</p>
<p>All is ready to go.</p>
<p>Just run:</p>
<p><em>xm create testvm</em></p>
<p>And you VPS should be now running:</p>
<p>check with<br />
<em>xm console testvm</em></p>
<p>Hope this helps.</p>
<p><a href="http://www.smudge-it.co.uk" target="_blank">Smudge IT</a> will be lauching  a new site and <a href="http://www.smudge-it.co.uk">Xen Vps</a> systems soon. Watch this space..</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Blog%20of%20a%20LAMP%20Developer%20based%20in%20Richmond%2C%20Surrey&amp;siteurl=http%3A%2F%2Fwww.lampdeveloper.co.uk%2F&amp;linkname=HyperVM%20Manual%20Alternative%20for%20creating%20Xen%20Domu%20using%20LVM&amp;linkurl=http%3A%2F%2Fwww.lampdeveloper.co.uk%2Flinux%2Fhypervm-manual-alternative-for-creating-xen-domu-using-lvm.html"><img src="http://www.lampdeveloper.co.uk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.lampdeveloper.co.uk/linux/hypervm-manual-alternative-for-creating-xen-domu-using-lvm.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Email alerts from Dell Poweredge using omreport</title>
		<link>http://www.lampdeveloper.co.uk/linux/email-alerts-from-dell-poweredge-using-omreport.html</link>
		<comments>http://www.lampdeveloper.co.uk/linux/email-alerts-from-dell-poweredge-using-omreport.html#comments</comments>
		<pubDate>Wed, 14 Nov 2007 22:26:47 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[Dell Poweredge]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[omreport]]></category>

		<guid isPermaLink="false">http://www.lampdeveloper.co.uk/linux/email-alerts-from-dell-poweredge-using-omreport.html</guid>
		<description><![CDATA[Dell Poweredge Servers come with tools to monitor the hardware and driver updates. They have called it, OpenManage Server Administrator and this is how you can get it running. (if using yum and Centos)
wget -q -O &#8211; http://linux.dell.com/repo/hardware/bootstrap.cgi &#124; bash
yum install srvadmin-all
srvadmin-services.sh start.
If all goes fine, you should be able to view a web interface [...]]]></description>
			<content:encoded><![CDATA[<p>Dell Poweredge Servers come with tools to monitor the hardware and driver updates. They have called it, OpenManage Server Administrator and this is how you can get it running. (if using yum and Centos)</p>
<p>wget -q -O &#8211; http://linux.dell.com/repo/hardware/bootstrap.cgi | bash</p>
<p>yum install srvadmin-all</p>
<p>srvadmin-services.sh start.</p>
<p>If all goes fine, you should be able to view a web interface via port 1311.</p>
<p>https://localhost:1311</p>
<p>I then had to log in with my root user name and password. I was pleased with the amount of features incorporated in Open Manage.</p>
<p>To setup the alerts you can click on Alerts Management &gt; Then on the individual sensor. I chose to select, Execute application, so that I can have the software email me a complete list of errors detected.</p>
<p>Here is the script I use to email me:</p>
<p>#!/bin/bash</p>
<p>ps -ef &gt;/tmp/psout.txt 2&gt;&amp;1</p>
<p>omreport system alertlog &gt; /tmp/alertmsg.txt 2&gt;&amp;1</p>
<p>mail -s “Server Alert” root &lt;/tmp/alertmsg.txt&gt; /tmp/mailout.txt 2&gt;&amp;1</p>
<p>Obviously substitute root with your email. Now when the server detects, will receive a printout of processes running at the time of the incident and a copy of the log file.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Blog%20of%20a%20LAMP%20Developer%20based%20in%20Richmond%2C%20Surrey&amp;siteurl=http%3A%2F%2Fwww.lampdeveloper.co.uk%2F&amp;linkname=Email%20alerts%20from%20Dell%20Poweredge%20using%20omreport&amp;linkurl=http%3A%2F%2Fwww.lampdeveloper.co.uk%2Flinux%2Femail-alerts-from-dell-poweredge-using-omreport.html"><img src="http://www.lampdeveloper.co.uk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.lampdeveloper.co.uk/linux/email-alerts-from-dell-poweredge-using-omreport.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimal services on Redhat / Centos</title>
		<link>http://www.lampdeveloper.co.uk/linux/minimal-services-on-redhat-centos.html</link>
		<comments>http://www.lampdeveloper.co.uk/linux/minimal-services-on-redhat-centos.html#comments</comments>
		<pubDate>Wed, 14 Nov 2007 22:05:38 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[minimal install]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.lampdeveloper.co.uk/linux/minimal-services-on-redhat-centos.html</guid>
		<description><![CDATA[On completing a minimal install of Centos, you often find that there are quite a few unwanted services started by default.
I like to disable the folowing with the commands:
/sbin/chkconfig xfs off
/sbin/chkconfig isdn off
/sbin/chkconfig gpm off
/sbin/chkconfig pcmcia off
/sbin/chkconfig sendmail off
/sbin/chkconfig cups off
/sbin/chkconfig portmap off
/sbin/chkconfig nfslock off
/sbin/chkconfig netfs off
/sbin/chkconfig rpcgssd off
/sbin/chkconfig rpcidmapd off
/sbin/chkconfig autofs off
/sbin/chkconfig lm_sensors off

 [...]]]></description>
			<content:encoded><![CDATA[<p>On completing a minimal install of Centos, you often find that there are quite a few unwanted services started by default.</p>
<p>I like to disable the folowing with the commands:</p>
<p>/sbin/chkconfig xfs off<br />
/sbin/chkconfig isdn off<br />
/sbin/chkconfig gpm off<br />
/sbin/chkconfig pcmcia off<br />
/sbin/chkconfig sendmail off<br />
/sbin/chkconfig cups off<br />
/sbin/chkconfig portmap off<br />
/sbin/chkconfig nfslock off<br />
/sbin/chkconfig netfs off<br />
/sbin/chkconfig rpcgssd off<br />
/sbin/chkconfig rpcidmapd off<br />
/sbin/chkconfig autofs off<br />
/sbin/chkconfig lm_sensors off</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Blog%20of%20a%20LAMP%20Developer%20based%20in%20Richmond%2C%20Surrey&amp;siteurl=http%3A%2F%2Fwww.lampdeveloper.co.uk%2F&amp;linkname=Minimal%20services%20on%20Redhat%20%2F%20Centos&amp;linkurl=http%3A%2F%2Fwww.lampdeveloper.co.uk%2Flinux%2Fminimal-services-on-redhat-centos.html"><img src="http://www.lampdeveloper.co.uk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.lampdeveloper.co.uk/linux/minimal-services-on-redhat-centos.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

