<?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>Bluehorn's Blog &#187; Technology</title>
	<atom:link href="http://www.landschoff.net/blog/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.landschoff.net/blog</link>
	<description>Ramblings of Torsten Landschoff</description>
	<lastBuildDate>Thu, 08 Jul 2010 10:43:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Weird: lenny install freezes in virtualbox</title>
		<link>http://www.landschoff.net/blog/2009/11/weird-lenny-install-freezes-in-virtualbox/</link>
		<comments>http://www.landschoff.net/blog/2009/11/weird-lenny-install-freezes-in-virtualbox/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 14:05:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Observations]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.landschoff.net/blog/?p=80</guid>
		<description><![CDATA[For testing packages of RoundCube webmail that I backported from Debian unstable to stable (lenny), I tried to install lenny in a virtualbox machine.
But for some reason, the installation reliably freezes at some (variable) point. The last time (I think on the 4th run), the final state shows a progress bar titled &#8220;Select and install [...]]]></description>
			<content:encoded><![CDATA[<p>For testing packages of <a href="http://roundcube.net/">RoundCube webmail</a> that I backported from Debian unstable to stable (lenny), I tried to install lenny in a <a href="http://virtualbox.org">virtualbox</a> machine.</p>
<p>But for some reason, the installation reliably freezes at some (variable) point. The last time (I think on the 4th run), the final state shows a progress bar titled &#8220;Select and install software&#8221; at 1% (see screenshot).<br />
<div id="attachment_81" class="wp-caption alignright" style="width: 160px"><a href="/blog/uploads/2009/11/lenny_inst_vbox.png"><img src="/blog/uploads/2009/11/lenny_inst_vbox-150x150.png" alt="Frozen lenny installation on virtualbox" title="lenny_inst_vbox" width="150" height="150" class="size-thumbnail wp-image-81" /></a><p class="wp-caption-text">Frozen lenny installation on virtualbox</p></div></p>
<p>However, I can still change into another virtual console inside the virtual machine and everything seems to work fine in there. I can create files on the target root partition, read files from the installer CD. Running <tt>ps</tt> in the machine, the only indicator that something is wrong is that all installer processes are in &#8220;stopped&#8221; state. On a fully installed machine, I would use tools like strace and gdb to find out what&#8217;s going on here, but they are not available inside the installer.</p>
<p>So I&#8217;ll go the easy way and create a Xen DomU to test my packages. If somebody has an explanation for this behaviour, I&#8217;m all ears&#8230;</p>
<h3>Software versions used</h3>
<pre>
virtualbox-ose                            3.0.10-dfsg-1
virtualbox-ose-guest-source               3.0.10-dfsg-1
debian-503-i386-netinst.iso
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.landschoff.net/blog/2009/11/weird-lenny-install-freezes-in-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Speedport W721V router as a modem for Speedport W701V</title>
		<link>http://www.landschoff.net/blog/2008/10/using-a-speedport-w721v-router-as-a-modem-for-speedport-w701v/</link>
		<comments>http://www.landschoff.net/blog/2008/10/using-a-speedport-w721v-router-as-a-modem-for-speedport-w701v/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 21:08:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Senseless hacks]]></category>

		<guid isPermaLink="false">http://www.landschoff.net/blog/?p=17</guid>
		<description><![CDATA[Finally, I got internet again. Of course I could just have waited for my new account data, but that would be boring, wouldn&#8217;t it?
The problem
For a while we were using a DSL 2000 line, which is quite slow &#8211; especially for uploads. Unfortunately, that&#8217;s as fast as ADSL gets on our phone line. But I [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, I got internet again. Of course I could just have waited for my new account data, but that would be boring, wouldn&#8217;t it?</p>
<h2>The problem</h2>
<p>For a while we were using a DSL 2000 line, which is quite slow &#8211; especially for uploads. Unfortunately, that&#8217;s as fast as ADSL gets on our phone line. But I was told by a support guy at T-Com that VDSL would likely work with a much higher speed, so I ordered the try &amp; buy package with VDSL 25.</p>
<p>Now I did not have the login data for reasons that are too long-winded to explain here. I tried to get new login data, but found out that the only way is to request it via fax and have the account deactivated until the access data arrives by snail mail. *sigh*</p>
<p>Fortunately, the documentation of my new VDSL router (the Speedport W721V) said that it would automagically configure itself when connected to a VDSL line so I had hope that we could immediately use our new, fast internet connection. OTOH I always need a plan B, after all I did not want to lose connectivity.</p>
<p>I knew that the old (W701V) router could use an external DSL modem, so I checked if the new router would talk PPPOE. Turns out that it does, so I felt that it would not be a problem to connect using the login configuration of the old router. Just degrading the newer, better, faster router to a modem should suffice.</p>
<p>You can infer from me writing this that it did not work out:</p>
<ul>
<li>Automatic configuration of login data failed consistently.</li>
<li>Just connecting the W721V as a modem did not work either.</li>
</ul>
<h2>Solution</h2>
<p>After configuring the W721V for PPPOE pass through and turning of NAT etc. to be sure, I connected the W721V to the WAN port of the W701V (which is the same as LAN1). Flipped the int./ext. mdoem switch of the W701V and booted both systems. No internet connection.. (PPPoe timeout says the log of the 701).</p>
<p>My first guess was that both ports did not have auto sense. With no cross link cable available, I connected both routers via an ethernet switch. Which did not work either, but now I could sniff the conversation of both boxes by using the wireshark packet sniffer.</p>
<p>As expected, the W701V was sending <a href="http://en.wikipedia.org/w/index.php?title=Point-to-Point_Protocol_over_Ethernet&#038;oldid=241094821#PADI">PADI requests</a>, but for some reason the W721V would not answer.</p>
<p>At first I suspected that the W721 had a bug and would not work as a DSL modem (who would test that feature anyway?). Out of frustration, I tried running</p>
<pre>pppoe-discovery -I eth1</pre>
<p>on my Linux system (eth1 being connected to the W721), and to my surprise got a PADO reply.</p>
<p>Looking closer, I noticed that the PADI requests of the W701 had an additional VLAN header. I guessed that the W721 for some reason was not able to look through this additional encapsulation. Playing around with the configuration options did not help in any way.</p>
<p>My last ditch effort to recover connectivity was to save the configuration of the W701 and load the full configuration into the W721 router. Of course, the configuration files were incompatible. <b>But:</b> Out of curiosity I looked into the config file <tt>speedportw701v.export</tt> written from the W701. Searching for <tt>vlan</tt> revealed, that there is only a small part of that (text) file that could be of interest: </p>
<pre>
        vccs {
                ...
                dsl_encap = dslencap_pppoe;
                vlancfg {
                        vlanencap = vlanencap_class_prio;
                        vlanid = 7;
                        vlanprio = 0;
                }
                ...
</pre>
<p>Now, what would I need to set to turn that VLAN encap off? I looked into the W721 export file for clues and found</p>
<pre>
torsten@transit:~$ grep -i vlanencap speedportw721v.export
vlanencap = vlanencap_none;
...
</pre>
<p>With new hope, I tried changing this section above as in the following patch:</p>
<pre>
--- speedportw701v.export       2008-10-08 21:06:49.915024974 +0200
+++ speedportw701v_novlan.export        2008-10-08 22:51:37.642653617 +0200
@@ -154,8 +154,8 @@
                 priority = 0;
                 dsl_encap = dslencap_pppoe;
                 vlancfg {
-                        vlanencap = vlanencap_class_prio;
-                        vlanid = 7;
+                        vlanencap = vlanencap_none;
+                        vlanid = 0;
                         vlanprio = 0;
                 }
                 ipbridgeing = no;
</pre>
<p>But I was unable to load the changed configuration file back into the W701. After using google a few times (connected using my mobile phone, ouch!), I found <a href="http://www.ip-phone-forum.de/showthread.php?t=79513">FBEditor</a> which finally allowed me to update the check sum at the end of the export file. Kudos to Oliver Metz!</p>
<p>With that configuration tweak, I finally got my connectivity back. Of course I will switch to a sane configuration once I get new login data. But it is possible to degrade the W721 to playing modem and have the W701 keep playing router job.</p>
<h3>Other ways to modify the export file</h3>
<p>After using FBEditor, I found more hints how the exported router configuration could be hacked:</p>
<ul>
<li>Using the perl script <a href="http://www.akk.org/~enrik/fbox/util/exportsum.pl">exportsum.pl</a> by Enrik Berkhan.</li>
<li>Disabling verification of the check sum, see <a href="http://www.ip-phone-forum.de/showthread.php?p=391810">this post</a>. In short, you need to put <code>NoChecks=yes</code> into the header, after the line starting with <code>Country=</code>.</li>
</ul>
<h3>Links</h3>
<ul>
<li><a href="http://www.congenio.de/infos/vdsl.html">http://www.congenio.de/infos/vdsl.html</a>
<li><a href="http://en.wikipedia.org/w/index.php?title=IEEE_802.1Q&#038;oldid=242825451">Wikipedia article on IEEE 802.1Q</a>, the standard for the VLAN tagging used by my W701V.
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.landschoff.net/blog/2008/10/using-a-speedport-w721v-router-as-a-modem-for-speedport-w701v/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
