<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Cyconet Blog &#187; vserver</title>
	<atom:link href="http://blog.waja.info/tag/vserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.waja.info</link>
	<description>Just a place to be!</description>
	<lastBuildDate>Fri, 07 Oct 2011 07:45:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
		<item>
		<title>vroot support gone in debian kernel 2.6.18 &#8230; why?</title>
		<link>http://blog.waja.info/2007/03/08/vroot-support-gone-in-debian-kernel-2618-why/</link>
		<comments>http://blog.waja.info/2007/03/08/vroot-support-gone-in-debian-kernel-2618-why/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 19:33:12 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/03/08/vroot-support-gone-in-debian-kernel-2618-why/</guid>
		<description><![CDATA[# grep -i vroot /boot/config*-vserver* /boot/config-2.6.16-2-vserver-686:CONFIG_BLK_DEV_VROOT=y /boot/config-2.6.17-2-vserver-686:CONFIG_BLK_DEV_VROOT=y /boot/config-2.6.18-3-vserver-686:# CONFIG_BLK_DEV_VROOT is not set /boot/config-2.6.18-4-vserver-686:# CONFIG_BLK_DEV_VROOT is not set Does anybody know, why it&#8217;s not compiled in since 2.6.18 anymore?]]></description>
			<content:encoded><![CDATA[<p class="code"># grep -i vroot /boot/config*-vserver*<br />
/boot/config-2.6.16-2-vserver-686:CONFIG_BLK_DEV_VROOT=y<br />
/boot/config-2.6.17-2-vserver-686:CONFIG_BLK_DEV_VROOT=y<br />
/boot/config-2.6.18-3-vserver-686:# CONFIG_BLK_DEV_VROOT is not set<br />
/boot/config-2.6.18-4-vserver-686:# CONFIG_BLK_DEV_VROOT is not set
</p>
<p>Does anybody know, why it&#8217;s not compiled in since 2.6.18 anymore?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/03/08/vroot-support-gone-in-debian-kernel-2618-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>LVM and Quota with Vserver on Debian</title>
		<link>http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/</link>
		<comments>http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 13:34:49 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/</guid>
		<description><![CDATA[This article is based on the excellent article on 5dollarwhitebox.org. At first install nessesary packages: # aptitude -t sarge-backports install lvm2&#92; util-vserver coreutils linux-image-2.6-vserver-686 Create Volume and Group: Replace &#8216;/dev/hda3&#8242; to your own needs! # pvcreate /dev/hda3 Physical volume &#8220;/dev/hda3&#8243; successfully created # vgcreate vg0 /dev/hda3 Volume group &#8220;vg0&#8243; successfully created Create a Logical Volume [...]]]></description>
			<content:encoded><![CDATA[<p>This article is based on the excellent article on <a href="http://www.5dollarwhitebox.org/wiki/index.php/Howtos_Linux-Vserver_With_LVM_And_Quotas"> 5dollarwhitebox.org</a>.</p>
<p>At first install nessesary packages:</p>
<p class="code">
# aptitude -t sarge-backports install lvm2&#92;<br />
util-vserver coreutils linux-image-2.6-vserver-686
</p>
<p><span id="more-92"></span><br />
Create Volume and Group:</p>
<p class="alert">
<font size="-1">Replace &#8216;/dev/hda3&#8242; to your own needs!</font>
</p>
<p class="code">
# pvcreate /dev/hda3<br />
Physical volume &#8220;/dev/hda3&#8243; successfully created<br />
# vgcreate vg0 /dev/hda3<br />
Volume group &#8220;vg0&#8243; successfully created
</p>
<p>Create a Logical Volume</p>
<p class="code">
# lvcreate -L2048 -n vserver1 vg0<br />
Logical volume &#8220;vserver1&#8243; created
</p>
<p>Create and mount Filesystem, installing base system into vserver and stopping it:</p>
<p class="code">
# mkfs -t ext3 -j /dev/vg0/vserver1<br />
# mkdir /var/lib/vservers/vserver1<br />
# mount -t ext3 /dev/vg0/vserver1 /var/lib/vservers/vserver1<br />
# vserver vserver1 build -n vserver1 &#92;<br />
&#8211;hostname vserver1.vs.domain.net &#92;<br />
&#8211;interface eth0:10.0.0.1/32 -m debootstrap &#8212; -d sarge &#92;<br />
-m ftp://ftp.debian.org/debian<br />
# vserver vserver1 stop<br />
# umount /var/lib/vservers/vserver1
</p>
<p>Vroot operations and attaching vroot to LVM partition (and detaching again)</p>
<p class="alert">
<font size="-1">&#8216;/dev/vroot3&#8242; is used, cause we use &#8216;/dev/hda3&#8242; in our example. Please adjust it!</font>
</p>
<p class="code">
# e2fsck -p /dev/vg0/vserver1<br />
# mount /dev/vg0/vserver1 /var/lib/vservers/vserver1<br />
# rm -f /var/lib/vservers/vserver1/dev/hdv1<br />
# vrsetup /dev/vroot3 /dev/vg0/vserver1 # vroot3 cause /dev/hda3<br />
# cp -fa /dev/vroot3 /var/lib/vservers/vserver1/dev/hdv1<br />
# mount -o remount,ro /dev/vg0/vserver1<br />
# umount /dev/vg0/vserver1<br />
# vrsetup -d /dev/vroot3
</p>
<p>Enable Quota Capabilities:</p>
<p class="code">
# echo &#8220;quota_ctl&#8221; >> /etc/vservers/vserver1/ccapabilites
</p>
<p>Starting Vserver:</p>
<p class="code">
# e2fsck -p /dev/vg0/vserver1<br />
# mount /dev/vg0/vserver1 /var/lib/vservers/vserver1<br />
# rm -f /var/lib/vservers/vserver1/dev/hdv1<br />
# vrsetup /dev/vroot3 /dev/vg0/vserver1<br />
# cp -fa /dev/vroot3 /var/lib/vservers/vserver1/dev/hdv1<br />
# vserver vserver1 start
</p>
<p>Make it start and stopping automaticaly:</p>
<p class="code">
# vserver vserver1 stop<br />
# sed -i s/MARK=default/MARK=production/ /etc/default/util-vserver<br />
# echo &#8220;production&#8221; > /etc/vservers/vserver1/apps/init/mark<br />
# sed -i s/AUTO=false/AUTO=true/ /etc/default/util-vserver<br />
# wget -O /usr/local/sbin/vserver-mount-fs &#92;<br />
ftp://ftp.cyconet.org/pub/debian/scripts/vserver-mount-fs<br />
# wget -O /usr/local/sbin/mount-lvm-vservers &#92;<br />
ftp://ftp.cyconet.org/pub/debian/scripts/mount-lvm-vservers<br />
# chmod 700 /usr/local/sbin/mount-lvm-vservers<br />
# chmod 700 /usr/local/sbin/vserver-mount-fs<br />
# echo &#8220;/dev/vg0&#8243; &gt; /etc/vservers/vserver1/apps/init/lv_exists<br />
# update-rc.d mount-lvm-vservers defaults 20 21
</p>
<p>That should be all to make it work! :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Thoughts about LVM</title>
		<link>http://blog.waja.info/2006/05/29/thoughts-about-lvm/</link>
		<comments>http://blog.waja.info/2006/05/29/thoughts-about-lvm/#comments</comments>
		<pubDate>Mon, 29 May 2006 20:19:58 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/05/29/thoughts-about-lvm/</guid>
		<description><![CDATA[Since I started playing around with vserver there is the problem left restricting the capacity of the disk usage of the guests. One solution may be to use one partition per vserver guest. But what to do if there is more (or less) space needed on the systems? Shutting them down and copying to bigger [...]]]></description>
			<content:encoded><![CDATA[<p>Since I started playing around with vserver there is the problem left restricting the capacity of the disk usage of the guests.<br />
One solution may be to use one partition per vserver guest. But what to do if there is more (or less) space needed on the systems? Shutting them down and copying to bigger or smaller partition may not acceptable in any cases.<br />
An other path can be LVM and (online-)resizeable filesystems.
</p>
<p><span id="more-82"></span></p>
<p>
There are some pitfalls:</p>
<p>* /boot &#8211; If you use an initrd ramdisc, you shouldn&#8217;t setup /boot on the LV, cause you need the ramdisc to access the logical volume, which is on the LV in this case. :)</p>
<p>* swap on the LV &#8211; you dont want this! The performance will be bad cause normally the data is written near together. But with LV your data will be written across multiple zones and your swap will slow down.</p>
<p>* Rescue System &#8211; needs LVM support. Take care on choosing your rescue cd. For example  <a href="http://bouncer.gentoo.org/?product=gentoo-2006.0-livecd&#038;os=x86">Gentoo 2006.0 LiveCD</a> should work well.</p>
<p>* Wrong filesystem &#8211; You did choose to use LV to be flexible, but is your filesystem flexible enought too? With Ext3 you can online and offline expand and reduce, the latter with kernel patch. Reiser-FS is able to online expand but only to reduce offline. XFS and JFS can be expanded online but not reduced neither online nor offline.</p>
<p>* Check if your (backup-) restore scenario supports LV and the filesystem you choosed</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/05/29/thoughts-about-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>X11 forwarding via ssh on vserver</title>
		<link>http://blog.waja.info/2006/05/29/x11-forwarding-via-ssh-on-vserver/</link>
		<comments>http://blog.waja.info/2006/05/29/x11-forwarding-via-ssh-on-vserver/#comments</comments>
		<pubDate>Mon, 29 May 2006 12:41:17 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/05/29/x11-forwarding-via-ssh-on-vserver/</guid>
		<description><![CDATA[If you want to use X11 forwarding through ssh you need to modify your /etc/ssh/ssh_config: # echo &#8220;X11UseLocalhost no&#8221; > /etc/ssh/ssh_config # /etc/init.d/ssh restart]]></description>
			<content:encoded><![CDATA[<p>If you want to use X11 forwarding through ssh you need to modify your /etc/ssh/ssh_config:</p>
<p class="code"># echo &#8220;X11UseLocalhost no&#8221; > /etc/ssh/ssh_config<br />
# /etc/init.d/ssh restart</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/05/29/x11-forwarding-via-ssh-on-vserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Vserver Debian sarge as host and guest system</title>
		<link>http://blog.waja.info/2006/05/20/vserver-debian-sarge-as-host-and-guest-system/</link>
		<comments>http://blog.waja.info/2006/05/20/vserver-debian-sarge-as-host-and-guest-system/#comments</comments>
		<pubDate>Sat, 20 May 2006 20:16:29 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/05/20/vserver-debian-sarge-as-host-and-guest-system/</guid>
		<description><![CDATA[Starting with starting with installing some packages from backports.org: # aptitude install -t sarge-backports util-vserver &#92 linux-image-2.6-vserver-&#60;arch&#62; This may be a good moment to reboot your host system. :) Following the setup process of the virtual server will guide you to a running guest system. The next step is to configure your base system with: [...]]]></description>
			<content:encoded><![CDATA[<p>Starting with starting with installing some packages from <a target="_blank" href="http://www.backports.org">backports.org</a>:</p>
<p class="code">
# aptitude install -t sarge-backports util-vserver &#92<br />
linux-image-2.6-vserver-&lt;arch&gt;
</p>
<p>This may be a good moment to reboot your host system. :)</p>
<p><span id="more-68"></span>Following the <a target="_blank" href="http://www.5dollarwhitebox.org/wiki/index.php/Howtos_Linux-Vserver_Debian_Sarge#Setting_Up_The_Virtual_Servers">setup process of the virtual server</a> will guide you to a running guest system.</p>
<p>The next step is to configure your base system with:</p>
<p class="code"># vserver &lt;vserver name&gt; start<br />
# vserver &lt;vserver name&gt; exec base-config
</p>
<p>But I would recommand you to escape the dialog after configurating apt and installing packages.<br />
Next step would be to install ssh with:</p>
<p class="code"># vserver &lt;vserver name&gt; exec aptitude install ssh</p>
<p>There are some corners you have to solve:</p>
<p>For running bind9 you have to disable &#8216;OPTIONS=&#8221;-u bind&#8221;&#8216; in /etc/default/bind9, cause there are some <a target="_blank" href="http://linux-vserver.org/ProblematicPrograms">problems with its capabilities</a>. You also need to force rndc to use your vserver ip in /etc/rndc.conf:</p>
<blockquote>
<pre>options {
default-server &lt;vserver ip&gt;;
};</pre>
</blockquote>
<p>For running postfix you need to bind it to your vserver ip in /etc/postfix/main.cf:</p>
<blockquote>
<pre>inet_interfaces = &lt;vserver ip&gt;</pre>
</blockquote>
<p>Mysql needs also bind to vserver ip in /etc/mysql/my.cnf, but keep in mind that with the shiped config you are only allowed to connect from localhost, so you need to get managed permissions:</p>
<blockquote>
<pre>bind-address = &lt;vserver ip&gt;</pre>
</blockquote>
<p>So if you have trouble starting any daemon, try to bind it to your local ip. Openssh didnt make any trouble for me.<br />
You may also find usefull:</p>
<p class="code"># vserver &lt;vserver name&gt; enter</p>
<p>Updates to other daemons or issues may follow.</p>
<p>Possibly <a target="_blank" href="http://www.5dollarwhitebox.org/wiki/index.php/Howtos_Linux-Vserver_With_LVM_And_Quotas">this</a> article about LVM and quota with vserver will be interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/05/20/vserver-debian-sarge-as-host-and-guest-system/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
