<?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>gionn-book &#187; Software</title>
	<atom:link href="http://blog.scorpionworld.it/category/software/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.scorpionworld.it</link>
	<description>Powered by caffeine</description>
	<lastBuildDate>Sun, 25 Jul 2010 10:32:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Proxmox VE for managing KVM/OpenVZ</title>
		<link>http://blog.scorpionworld.it/proxmox-ve-for-managing-kvmopenvz.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=proxmox-ve-for-managing-kvmopenvz</link>
		<comments>http://blog.scorpionworld.it/proxmox-ve-for-managing-kvmopenvz.html#comments</comments>
		<pubDate>Sun, 25 Jul 2010 10:03:31 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=2508</guid>
		<description><![CDATA[In these days I put on production two different server (an internal machine and a EQ4 hetzner) using Proxmox as backend for managing virtual machines. What is Proxmox? Proxmox Virtual Environment is an easy to use Open Source virtualization platform &#8230; <a href="http://blog.scorpionworld.it/proxmox-ve-for-managing-kvmopenvz.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In these days I put on production two different server (an internal machine and a <a href="http://www.hetzner.de/de/hosting/produkte_rootserver/eq4/">EQ4 hetzner</a>) using Proxmox as backend for managing virtual machines.</p>
<p><strong>What is Proxmox?</strong></p>
<blockquote><p>Proxmox Virtual Environment is an easy to use Open Source virtualization platform for running Virtual Appliances and Virtual Machines.<br />
Proxmox VE is an open source project, developed and maintained by Proxmox Server Solutions GmbH.</p></blockquote>
<p><span id="more-2508"></span><br />
<strong>Installation</strong><br />
The first thing that you are going to like of Proxmox, is that the installation of the latest stable consist of installing a Debian minimal on your machine, <a href="http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Lenny#Adapt_your_sources.list">adding a custom repository</a> and apt-getting proxmox-ve-2.6.32.<br />
Keep in mind that the latest version is great for <a href="http://www.linux-kvm.org/">kvm</a> support (both performances and compatibility) but you don&#8217;t get <a href="http://wiki.openvz.org/">OpenVZ</a> support (but it&#8217;s on the roadmap for the end of 2010). If you need OpenVZ support, you should stick to proxmox-ve-2.6.24 (old kernel, maybe incompatible with newer machines).</p>
<p><strong>Network configuration</strong><br />
Before starting using your virtual environment, you need to configure network devices so you can use them. The most common configuration are <a href="http://pve.proxmox.com/wiki/Network_Model#Default_Configuration_.28bridged.29">bridged</a> or <a href="http://pve.proxmox.com/wiki/Network_Model#Routed_Configuration">routed</a> (NATted).<br />
The bridged configuration is straight-forward, and is great if you don&#8217;t need network separation for security reason: virtual machines will get IP from the DHCP of your current network.<br />
The routed configuration is highly suggested for custom network setups, but need some knowledge of routing and iptables.</p>
<p><strong>First access</strong><br />
After rebooting with the proxmox supplied kernel, you can start to configure virtual machines. What you need is HTTPS access to the proxmox server, using a browser (FireFox) with Java support (sigh, needed for getting video output of the guests).<br />
Credentials are the same of the underlying system (user root).</p>
<p><a href="http://blog.scorpionworld.it/wp-content/uploads/2010/07/proxmox-main.png"><img src="http://blog.scorpionworld.it/wp-content/uploads/2010/07/proxmox-main-300x138.png" alt="" title="proxmox-main" width="300" height="138" class="aligncenter size-medium wp-image-2510" /></a></p>
<p><strong>Storage configuration</strong><br />
You can achieve best performances and easy management using a LVM-backed storage for your guests. With LVM you can easily create or expand disks assigned to guests, without the overhead of an underlying filesystem like with disk images (qcow, vdi, vmdk, etc). The standard directory based storage is anyway needed for storing ISO images.</p>
<p><a href="http://blog.scorpionworld.it/wp-content/uploads/2010/07/proxmox-storage.png"><img src="http://blog.scorpionworld.it/wp-content/uploads/2010/07/proxmox-storage-300x133.png" alt="" title="proxmox-storage" width="300" height="133" class="aligncenter size-medium wp-image-2511" /></a></p>
<p><strong>Backups</strong><br />
A feature that I cannot find on other VE manager, is an integrated <a href="http://pve.proxmox.com/wiki/Backup_-_Restore_-_Live_Migration#Backup_with_VZDump">management of backups</a>. You need to configurare a new storage with type &#8220;backups&#8221;, I use a remote NFS share.<br />
If you have sufficient space on LVM volume group, you can use the snapshot backup model, that will ensure you only few seconds of downtime even with a very large disk.</p>
<p><a href="http://blog.scorpionworld.it/wp-content/uploads/2010/07/proxmox-backups.png"><img src="http://blog.scorpionworld.it/wp-content/uploads/2010/07/proxmox-backups-300x188.png" alt="" title="proxmox-backups" width="300" height="188" class="aligncenter size-medium wp-image-2513" /></a></p>
<p><strong>Cluster management</strong><br />
Another killer-feature of Proxmox is the <a href="http://pve.proxmox.com/wiki/Proxmox_VE_Cluster">cluster management</a>: on one page you can get the status of all of your proxmox machines and within a few clicks you can migrate guest from a server to another. The only things you need is to configure a master node and attach all others as slaves, with only one command on every server.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/proxmox-ve-for-managing-kvmopenvz.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CyanogenMod V6.0.0-RC1 (Android 2.2 &#8211; Froyo) per Nexus One, HTC Dream (TIM) e Magic</title>
		<link>http://blog.scorpionworld.it/cyanogenmod-v6-0-0-rc1-android-2-2-froyo-per-nexus-one-htc-dream-e-magic.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cyanogenmod-v6-0-0-rc1-android-2-2-froyo-per-nexus-one-htc-dream-e-magic</link>
		<comments>http://blog.scorpionworld.it/cyanogenmod-v6-0-0-rc1-android-2-2-froyo-per-nexus-one-htc-dream-e-magic.html#comments</comments>
		<pubDate>Sun, 11 Jul 2010 09:06:41 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[it_IT]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=1551</guid>
		<description><![CDATA[Google e HTC avevano detto che Android 2.2, codename Froyo, non sarebbe *MAI* stato disponibile per i &#8220;vecchi&#8221; HTC Dream e Magic. Questa è una versione di testing (RC1 &#8211; Changelog), ma che dovrebbe già esser abbastanza stabile per l&#8217;utilizzo &#8230; <a href="http://blog.scorpionworld.it/cyanogenmod-v6-0-0-rc1-android-2-2-froyo-per-nexus-one-htc-dream-e-magic.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google e HTC avevano detto che Android 2.2, codename Froyo, non sarebbe *MAI* stato disponibile per i &#8220;vecchi&#8221; HTC Dream e Magic.</p>
<p>Questa è una versione di testing (RC1 &#8211; <a href="http://github.com/CyanogenMod/android_vendor_cyanogen/blob/froyo/CHANGELOG.mkdn">Changelog</a>), ma che dovrebbe già esser abbastanza stabile per l&#8217;utilizzo di tutti i giorni.</p>
<p>La procedura di aggiornamento del <a href="http://blog.scorpionworld.it/aggiornare-firmware-android-su-htc-dream-g1-tim-android21-cyanogenmod5.html">post precedente</a> è sempre valida (DangerSPL è obbligatorio, ma non serve reinstallarlo ogni volta).</p>
<p>Download: <a href="http://forum.xda-developers.com/showthread.php?t=722801">XDA</a><br />
Refs: <a href="http://www.cyanogenmod.com/home/cyanogenmod-6-0-0-rc1">cyanogenmod.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/cyanogenmod-v6-0-0-rc1-android-2-2-froyo-per-nexus-one-htc-dream-e-magic.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to Freenode via Tor with irssi</title>
		<link>http://blog.scorpionworld.it/connect-to-freenode-via-tor-with-irssi.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=connect-to-freenode-via-tor-with-irssi</link>
		<comments>http://blog.scorpionworld.it/connect-to-freenode-via-tor-with-irssi.html#comments</comments>
		<pubDate>Sat, 10 Jul 2010 12:28:49 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[en_US]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=1382</guid>
		<description><![CDATA[For privacy paranoids, it&#8217;s possibile to hide our own location when connecting to IRC Freenode using Tor. Prerequisites: * A working tor client on your workstation * A registered nick on Freenode What you need: * http://freenode.net/sasl/cap_sasl.pl (irssi plugin for &#8230; <a href="http://blog.scorpionworld.it/connect-to-freenode-via-tor-with-irssi.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For privacy paranoids, it&#8217;s possibile to hide our own location when connecting to IRC Freenode using Tor.</p>
<p>Prerequisites:<br />
* A working tor client on your workstation<br />
* A registered nick on Freenode</p>
<p>What you need:<br />
* http://freenode.net/sasl/cap_sasl.pl (irssi plugin for SASL auth)<br />
<span id="more-1382"></span><br />
You should add or change the server for connecting to Freenode:</p>
<pre><code>servers = (
  {
    address = "p4fsi4ockecnea7l.onion";
    chatnet = "freenode";
    port = "6667";
    autoconnect = "yes";
  }
);</code></pre>
<p>wget the perl irssi script in and add it to autostart.</p>
<pre><code>cd ~/.irssi/scripts/
wget http://freenode.net/sasl/cap_sasl.pl
cd ~/.irssi/scripts/autorun
ln -s ../cap_sasl.pl</code></pre>
<p>In irssi do:</p>
<pre><code>/sasl add freenode &lt;nick&gt; &lt;pass&gt; DH-BLOWFISH
/sasl save</code></pre>
<p>Now launch irssi using the tor wrapper, torify:</p>
<pre><code>torify irssi</code></pre>
<p>As an additional note, I <a name="patch">added a line</a> to the perl script to make it working on my irssi:</p>
<pre><code>--- cap_sasl_old.pl     2010-01-28 22:38:43.000000000 +0100
+++ cap_sasl.pl 2010-07-10 13:10:04.000000000 +0200
@@ -4,6 +4,7 @@
 # $Id$
 
 use MIME::Base64;
+use Irssi::Irc;
 
 $VERSION = "1.1";
 </code></pre>
<p>For macports users:</p>
<pre><code>sudo port install p5-crypt-blowfish p5-crypt-dh p5-crypt-openssl-bignum \
p5-math-gmp p5-math-pari</code></pre>
<p>Although I&#8217;ve installed these libraries, I continue to get the error:</p>
<pre><code>Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at 
          /opt/local/lib/perl5/vendor_perl/5.8.9/Crypt/DH.pm line 6</code></pre>
<p>Comments welcome.</p>
<p>Reference: <a href="http://freenode.net/irc_servers.shtml#tor">http://freenode.net/irc_servers.shtml#tor</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/connect-to-freenode-via-tor-with-irssi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.x</title>
		<link>http://blog.scorpionworld.it/wordpress-3-x.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-3-x</link>
		<comments>http://blog.scorpionworld.it/wordpress-3-x.html#comments</comments>
		<pubDate>Sat, 19 Jun 2010 17:17:22 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[it_IT]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=671</guid>
		<description><![CDATA[Se per caso qualcuno stava già  sperando che il nuovo WordPress 3.x fosse, diversamente dalla versione precedente, meno dissanguatore di memoria&#8230; beh, non ci conti affatto. Screenshot:]]></description>
			<content:encoded><![CDATA[<p>Se per caso qualcuno stava già  sperando che il nuovo WordPress 3.x fosse, diversamente dalla versione precedente, meno dissanguatore di memoria&#8230; beh, non ci conti affatto.</p>
<p>Screenshot: <img src="http://cl.ly/8fc89e9357e0d1254e23/content" alt="htop vps linode wordpress php cgi" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/wordpress-3-x.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Aggiornare firmware Android su HTC Dream G1 Tim (Android 2.1 + CyanogenMod 5.x)</title>
		<link>http://blog.scorpionworld.it/aggiornare-firmware-android-su-htc-dream-g1-tim-android21-cyanogenmod5.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=aggiornare-firmware-android-su-htc-dream-g1-tim-android21-cyanogenmod5</link>
		<comments>http://blog.scorpionworld.it/aggiornare-firmware-android-su-htc-dream-g1-tim-android21-cyanogenmod5.html#comments</comments>
		<pubDate>Sat, 29 May 2010 10:37:22 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[it_IT]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[cyanogenmod]]></category>
		<category><![CDATA[htc dream]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=659</guid>
		<description><![CDATA[Sono riuscito ad aggiornare il mio HTC Dream dal firmware CyanogenMod 4.x a 5.x. Se avete ancora il firmware originale, dovrebbero ancora valere i passi descritti nel precedente post su CyanogenMod 4.x per poter installare una recovery image custom (fino &#8230; <a href="http://blog.scorpionworld.it/aggiornare-firmware-android-su-htc-dream-g1-tim-android21-cyanogenmod5.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sono riuscito ad aggiornare il mio HTC Dream dal firmware CyanogenMod 4.x a 5.x.</p>
<p>Se avete ancora il firmware originale, dovrebbero ancora valere i passi descritti nel precedente post su <a href="http://blog.scorpionworld.it/aggiornare-android-su-htc-dream-tim-testato-con-android-1-6-cyanogenmod-4-2-5.html">CyanogenMod 4.x</a> per poter installare una recovery image custom (fino a Installazione Android 1.6 + CyanogenMod escluso, ovviamente).</p>
<p>Ho seguito la guida presente sul wiki di CM: <a href="http://wiki.cyanogenmod.com/index.php/DangerSPL_and_CM_5_for_Dream">DangerSPL and CM 5 for Dream</a>.</p>
<p>Requisiti:<br />
* HTC Dream/G1 con immagine di recovery custom (Home+Power in fase di boot)<br />
* Radio Compatibile (versione 2.22.19.26I, vedi con Camera+Power in fase di boot)<br />
<span id="more-659"></span><br />
<strong>Files richiesti</strong>:<br />
* <a href="http://sapphire-port-dream.googlecode.com/files/spl-signed.zip">Danger Spl</a><br />
* <a href="http://kanged.net/mirror/download.php?file=gapps-ds-ERE36B-signed.zip">gapps-ds-ERE36B-signed.zip</a><br />
* <a href="http://wiki.cyanogenmod.com/index.php/Latest_version#Current_Stable_Version_2">CM5 for Dream/Sapphire</a></p>
<p>Ultima versione testata da me: <strong>CyanogenMod-5.0.8</strong></p>
<p><strong>Passi di installazione</strong>:</p>
<ol>
<li>Copia tutti e tre i file zip sulla memoria SD</li>
<li>Riavvia in modalità  Recovery (Home+Power)</li>
<li>Esegui un nandroid backup (Opzionale)</li>
<li>Data/Factory Reset</li>
<li>Apply Update: DangerSPL (spl-signed.zip)</li>
<li>Reboot e rientra in Recovery (Home+Power)</li>
<li>Apply Update: CM5</li>
<li>Apply Update: gapps-ds-ERE36B</li>
<li>Reboot e attendi con pazienza il primo avvio (circa 5 minuti)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/aggiornare-firmware-android-su-htc-dream-g1-tim-android21-cyanogenmod5.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Medibuntu mirror i386 amd64 hardy jaunty karmic lucid</title>
		<link>http://blog.scorpionworld.it/medibuntu-mirror-i386-amd64-hardy-jaunty-karmic-lucid.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=medibuntu-mirror-i386-amd64-hardy-jaunty-karmic-lucid</link>
		<comments>http://blog.scorpionworld.it/medibuntu-mirror-i386-amd64-hardy-jaunty-karmic-lucid.html#comments</comments>
		<pubDate>Sun, 18 Apr 2010 17:55:18 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[index of]]></category>
		<category><![CDATA[medibuntu]]></category>
		<category><![CDATA[mirror]]></category>

		<guid isPermaLink="false">http://blog.scorpionworld.it/?p=653</guid>
		<description><![CDATA[deb http://medibuntu.scorpionworld.it/ hardy free non-free deb http://medibuntu.scorpionworld.it/ jaunty free non-free deb http://medibuntu.scorpionworld.it/ karmic free non-free deb http://medibuntu.scorpionworld.it/ lucid free non-free]]></description>
			<content:encoded><![CDATA[<blockquote><p>deb http://medibuntu.scorpionworld.it/ hardy free non-free<br />
deb http://medibuntu.scorpionworld.it/ jaunty free non-free<br />
deb http://medibuntu.scorpionworld.it/ karmic free non-free<br />
deb http://medibuntu.scorpionworld.it/ lucid free non-free</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/medibuntu-mirror-i386-amd64-hardy-jaunty-karmic-lucid.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen 4.0 is out!</title>
		<link>http://blog.scorpionworld.it/xen-4-0-is-out.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=xen-4-0-is-out</link>
		<comments>http://blog.scorpionworld.it/xen-4-0-is-out.html#comments</comments>
		<pubDate>Sat, 10 Apr 2010 14:22:22 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=391</guid>
		<description><![CDATA[Release notes: http://wiki.xensource.com/xenwiki/Xen4.0 VT-d ftw: http://wiki.xensource.com/xenwiki/VTdHowTo New features for Xen 4.0.0 include performance improvements, better scalability, blktap2 for VHD image / snapshots / cloning support, improved IOMMU PCI pass-through for Intel VT-d and AMD IOMMU systems, VGA primary graphics card &#8230; <a href="http://blog.scorpionworld.it/xen-4-0-is-out.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Release notes: http://wiki.xensource.com/xenwiki/Xen4.0<br />
VT-d ftw: http://wiki.xensource.com/xenwiki/VTdHowTo</p>
<blockquote><p>New features for Xen 4.0.0 include performance improvements, better scalability, blktap2 for VHD image / snapshots / cloning support, improved IOMMU PCI pass-through for Intel VT-d and AMD IOMMU systems, VGA primary graphics card pass-through support to an HVM guest for high performance graphics using direct access to the graphics card, memory page sharing and page-to-disc for HVM guests, Netchannel2 for improved networking, online resize of guest disks without reboot/shutdown, para-virtual high-performance USB pass-through to both PV and HVM guests, and many other new features and changes. </p></blockquote>
<p>From <a href="http://www.phoronix.com/scan.php?page=news_item&#038;px=ODEzOQ">Phoronix</a><br />
<span id="more-1437"></span><br />
<strong>VGA Passthrough: 3D hardware acceleration inside guests.<br />
</strong><br />
<object width="425" height="344"><param name="movie" value="http://www.youtube-nocookie.com/v/1ia3IwG6tp4&#038;hl=it_IT&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/1ia3IwG6tp4&#038;hl=it_IT&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/xen-4-0-is-out.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo Install EmDebian Grip (deboostrap)</title>
		<link>http://blog.scorpionworld.it/howto-install-emdebian-grip-deboostrap.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=howto-install-emdebian-grip-deboostrap</link>
		<comments>http://blog.scorpionworld.it/howto-install-emdebian-grip-deboostrap.html#comments</comments>
		<pubDate>Sat, 20 Mar 2010 08:00:06 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[emdebian]]></category>
		<category><![CDATA[grip]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=331</guid>
		<description><![CDATA[For installing Emdebian grip on a flash or USB drive (ext2 or greater required): mkdir /media/grip/ mount /dev/sdc1 /media/grip/ sudo debootstrap lenny /media/grip/ http://www.emdebian.org/grip/ cd /media/grip/ mount -o bind /dev/ dev/ mount -o bind /proc proc/ chroot . /bin/bash aptitude &#8230; <a href="http://blog.scorpionworld.it/howto-install-emdebian-grip-deboostrap.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For installing Emdebian grip on a flash or USB drive (ext2 or greater required):</p>
<pre lang="null">
mkdir /media/grip/
mount /dev/sdc1 /media/grip/
sudo debootstrap lenny /media/grip/ http://www.emdebian.org/grip/
cd /media/grip/
mount -o bind /dev/ dev/
mount -o bind /proc proc/
chroot . /bin/bash
aptitude update
aptitude install linux-image-2.6.28-1-686 initramfs-tools
aptitude install what-you-want
aptitude install grub
grub-install /dev/sdc
update-grub
exit
umount dev/
umount proc/
cd ../
umount grip/</pre>
<p>Now you have a bootable EmDebian Grip install (less than ~80 Mb required)</p>
<p>When installing a kernel, an error may appear:</p>
<pre lang="null">Running depmod.
Running update-initramfs.
Error retreiving answer for linux-image-2.6.28-1-686/postinst/create-kimage-link-2.6.28-1-686: Unsupported command "update-initramfs:" (full line was "update-initramfs: Generating /boot/initrd.img-2.6.28-1-686") received from confmodule. at /var/lib/dpkg/info/linux-image-2.6.28-1-686.postinst line 671,  line 3.
dpkg: error processing linux-image-2.6.28-1-686 (--configure):
subprocess post-installation script returned error exit status 128
Errors were encountered while processing:
linux-image-2.6.28-1-686</pre>
<p>For fixing it, insert in /etc/kernel-img.conf:</p>
<pre lang="null">do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook   = update-grub</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/howto-install-emdebian-grip-deboostrap.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some notes about configuring RAID10, LVM, KVM and virt-manager on a Debian Lenny server</title>
		<link>http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server</link>
		<comments>http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html#comments</comments>
		<pubDate>Sat, 13 Mar 2010 15:16:51 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[virt-manager]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=370</guid>
		<description><![CDATA[Recently I&#8217;ve achieved a good setup for a virtualized environment, using Debian Lenny as host, with a RAID10, and LVM for managing VM disk images. The server was a: CPU Intel Xeon X3430 RAM 4GB HD 4x500GB During the installation, &#8230; <a href="http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve achieved a good setup for a virtualized environment, using Debian Lenny as host, with a RAID10, and LVM for managing VM disk images.</p>
<p>The server was a:<br />
CPU Intel Xeon X3430<br />
RAM 4GB<br />
HD 4x500GB</p>
<p>During the installation, on each of the 4 disks, I created:<br />
- a small /boot partition (~300Mb)<br />
- 10 Gb RAID1 for /<br />
- 1 Gb RAID10 for swap<br />
- remaining space as RAID10, with a big LVM volume on top of it.</p>
<p>Please note: at the end of the installation, you should manually install grub on every disk, because if the first disk get destroyed, you cannot boot your system.</p>
<pre lang="bash">mkdir /boot2 /boot3 /boot4
mount /dev/sdb1 /boot2
mount /dev/sdc1 /boot3
mount /dev/sdd1 /boot4
rsync -av /boot/ /boot2/
rsync -av /boot/ /boot3/
rsync -av /boot/ /boot4/
umount /boot2/ /boot3/ /boot4/
dd if=/dev/sda of=/dev/sdb count=1 bs=512
dd if=/dev/sda of=/dev/sdc count=1 bs=512
dd if=/dev/sda of=/dev/sdd count=1 bs=512</pre>
<p>At this point, installing kvm plus virt-manager is straightway:</p>
<pre lang="bash">aptitude install kvm libvirt-bin virt-manager</pre>
<p>Remember that Lenny is getting pretty old, so for getting more from your server, you should use the <a href="http://backports.org/dokuwiki/doku.php?id=instructions">backports.org</a> packages.</p>
<p>Now add your user to the libvirt and kvm system groups (/etc/groups):</p>
<pre lang="bash">[..]
kvm:x:112:bob
libvirt:x:115:bob
[..]</pre>
<p>At this point, you should connect to virt-manager GUI. As far as I understood, virt-manager support connections from remote hosts, but the TLS configuration is not so well documented, so you can simply do X11 forwarding or install a VNC server, or NX server, on the host to get the local virt-manager.</p>
<p>What I usually do on my lan from my laptop is:</p>
<pre lang="bash">
ssh -X -l myuser myserver.local
virt-manager
</pre>
<p>And the virt-manager window will popup.</p>
<p><strong>LVM Configuration</strong><br />
Edit->Host Details->Storage<br />
Add your LVM Volume Group defined during the first setup: from this window, you can create virtual disks for your machines.<br />
Using LVM instead of simple disk images give great benefits: less overhead, and the ability to expands images (and filesystems on it) without even rebooting the VM.<br />
<a href="http://tech.libersoft.it/wp-content/uploads/2010/03/Schermata-ph1-Dettagli-host.png"><img src="http://tech.libersoft.it/wp-content/uploads/2010/03/Schermata-ph1-Dettagli-host-300x208.png" alt="" title="Virt-manager: LVM based storage management" width="300" height="208" class="aligncenter size-medium wp-image-372" /></a></p>
<p><strong>Network Configuration</strong><br />
You can use both <strong>bridged networks</strong> and <strong>private networks</strong>. Bridged networks are used when a VM should have the same subnet address of the other hosts on the local networks.</p>
<p><strong>Bridged networks</strong> requires additional configuration on the host to work:</p>
<pre lang="bash">cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#allow-hotplug eth0
#iface eth0 inet static
#        address 192.168.0.4
#         netmask 255.255.255.0
#         gateway 192.168.0.1

auto br0
allow-hotplug br0
iface br0 inet static
         address 192.168.0.4
         netmask 255.255.255.0
         gateway 192.168.0.1
         bridge_ports eth0
         bridge_stp off
         bridge_maxwait 15
</pre>
<p><strong>Private networks</strong> should be use to isolate the virtual machine from the physical networks. You can create a DMZ using strict iptables rules for allowing clients to reach VM inside a private network. You can take a look on the iptables scripts I am using on the host, that use both bridged and private networks.</p>
<pre lang="bash">cat firewall.sh
#! /bin/bash
# By Giovanni Toraldo

LAN='br0'
VLAN='virbr0'
SUBNET='192.168.0.0/24'
VSUBNET='192.168.122.0/24'

## FLUSH
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X

## Default Policy
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

# Basic Routing/Forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A FORWARD -i lo -j ACCEPT

## Local Inbound Services
iptables -A INPUT -p tcp --dport 22 -j ACCEPT # ssh
iptables -A INPUT -p tcp --dport 25 -j ACCEPT # mail
iptables -A INPUT -p udp --dport 123 -j ACCEPT # ntp
iptables -A INPUT -p tcp --dport 80 -s $SUBNET -j ACCEPT # nginx

# VLAN - I accept and route all traffic
iptables -A INPUT -i $VLAN -j ACCEPT
iptables -A INPUT -i $LAN -j ACCEPT
iptables -A FORWARD -i $VLAN -j ACCEPT
iptables -A FORWARD -i $LAN -o $VLAN -j ACCEPT
# Masquerading packets from private networks only!!
iptables -t nat -A POSTROUTING -s $VSUBNET -o $LAN -j MASQUERADE
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/some-notes-about-configuring-raid10-lvm-kvm-and-virt-manager-on-a-debian-lenny-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN on a privileged port with an unprivileged user</title>
		<link>http://blog.scorpionworld.it/openvpn-on-a-privileged-port-with-an-unprivileged-user.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=openvpn-on-a-privileged-port-with-an-unprivileged-user</link>
		<comments>http://blog.scorpionworld.it/openvpn-on-a-privileged-port-with-an-unprivileged-user.html#comments</comments>
		<pubDate>Sun, 28 Feb 2010 17:18:54 +0000</pubDate>
		<dc:creator>gionn</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[en_US]]></category>
		<category><![CDATA[bind failed]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[permission denied]]></category>
		<category><![CDATA[static key]]></category>

		<guid isPermaLink="false">http://tech.libersoft.it/?p=367</guid>
		<description><![CDATA[Remember: if you are using a privileged port for your openvpn (&#60;1024, like 53/udp for bypassing captive portals), don&#8217;t configure privilege dropping, otherwise after the first timeout, the vpn will die with &#8220;TCP/UDP: Socket bind failed on local address [undef]:port: &#8230; <a href="http://blog.scorpionworld.it/openvpn-on-a-privileged-port-with-an-unprivileged-user.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Remember: if you are using a privileged port for your openvpn (&lt;1024, like 53/udp for <a href="http://www.personaltelco.net/CaptivePortalInsecurities">bypassing captive portals</a>), don&#8217;t configure privilege dropping, otherwise after the first timeout, the vpn will die with &#8220;TCP/UDP: Socket bind failed on local address [undef]:port: Permission denied&#8221;</p>
<p>My static key server config (/etc/openvpn/ogre.conf):</p>
<pre lang="null">
dev tun
ifconfig 10.0.66.1 10.0.66.2
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
# keep commented if using a privileged port
#user nobody
port 53
proto udp</pre>
<p>The logfile of the failing openvpn:</p>
<pre lang="null">Feb 28 09:48:37 ogre ovpn-ogre[6383]: OpenVPN 2.1_rc11 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Sep 18 2008
Feb 28 09:48:37 ogre ovpn-ogre[6383]: /usr/sbin/openvpn-vulnkey -q static.key
Feb 28 09:48:38 ogre ovpn-ogre[6383]: LZO compression initialized
Feb 28 09:48:38 ogre ovpn-ogre[6383]: TUN/TAP device tun0 opened
Feb 28 09:48:38 ogre ovpn-ogre[6383]: /sbin/ifconfig tun0 10.0.66.1 pointopoint 10.0.66.2 mtu 1500
Feb 28 09:48:38 ogre ovpn-ogre[6388]: UID set to nobody
Feb 28 09:48:38 ogre ovpn-ogre[6388]: UDPv4 link local (bound): [undef]:53
Feb 28 09:48:38 ogre ovpn-ogre[6388]: UDPv4 link remote: [undef]
Feb 28 09:48:47 ogre ovpn-ogre[6388]: Peer Connection Initiated with 79.47.206.122:62799
Feb 28 09:48:47 ogre ovpn-ogre[6388]: Initialization Sequence Completed
Feb 28 11:28:25 ogre ovpn-ogre[6388]: read UDPv4 [EHOSTUNREACH]: No route to host (code=113)
Feb 28 11:28:34 ogre ovpn-ogre[6388]: Inactivity timeout (--ping-restart), restarting
Feb 28 11:28:34 ogre ovpn-ogre[6388]: SIGUSR1[soft,ping-restart] received, process restarting
Feb 28 11:28:36 ogre ovpn-ogre[6388]: Re-using pre-shared static key
Feb 28 11:28:36 ogre ovpn-ogre[6388]: LZO compression initialized
Feb 28 11:28:36 ogre ovpn-ogre[6388]: TCP/UDP: Socket bind failed on local address [undef]:53: Permission denied
Feb 28 11:28:36 ogre ovpn-ogre[6388]: Exiting</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.scorpionworld.it/openvpn-on-a-privileged-port-with-an-unprivileged-user.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
