<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Virtualisation – Yeri Tiete</title><link>https://yeri.be/category/virtualisation/</link><description>Yeri Tiete's blog</description><language>en</language><copyright>© Yeri Tiete</copyright><lastBuildDate>Sat, 12 Nov 2022 16:36:32 +0100</lastBuildDate><atom:link href="https://yeri.be/category/virtualisation/index.xml" rel="self" type="application/rss+xml"/><item><title>Feed2Toot</title><link>https://yeri.be/feed2toot/</link><pubDate>Sat, 12 Nov 2022 16:36:32 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/feed2toot/</guid><description>&lt;p&gt;Started looking into a service to auto-post from this blog onto my &lt;a href="https://yeri.be" data-type="URL" data-id="mastodon.yeri.be" target="_blank" rel="noreferrer noopener"&gt;Mastodon&lt;/a&gt; feed. &lt;a href="https://feed2toot.readthedocs.io/en/latest/" target="_blank" rel="noreferrer noopener"&gt;Feed2Toot&lt;/a&gt; fit the bill perfectly. &lt;/p&gt;
&lt;p&gt;I wanted to run the whole thing from a Docker container, though, so I'll quickly write a how-to.&lt;/p&gt;
&lt;p&gt;This whole thing runs from a Raspberry Pi, as root. No k8s or k3s for me. The path I use is &lt;code&gt;/root/git/feed2toot/&lt;/code&gt;, so be sure to modify that to whatever you're using.&lt;/p&gt;</description><content:encoded><![CDATA[<p>Started looking into a service to auto-post from this blog onto my <a href="https://yeri.be" data-type="URL" data-id="mastodon.yeri.be" target="_blank" rel="noreferrer noopener">Mastodon</a> feed. <a href="https://feed2toot.readthedocs.io/en/latest/" target="_blank" rel="noreferrer noopener">Feed2Toot</a> fit the bill perfectly. </p>
<p>I wanted to run the whole thing from a Docker container, though, so I'll quickly write a how-to.</p>
<p>This whole thing runs from a Raspberry Pi, as root. No k8s or k3s for me. The path I use is <code>/root/git/feed2toot/</code>, so be sure to modify that to whatever you're using.</p>
<p>First off, <a rel="noreferrer noopener" href="https://feed2toot.readthedocs.io/en/latest/configure.html" target="_blank">get your credentials</a> for the app. You can either install the Feed2Toot package on a system (i.e. throwaway VM, to keep it clean), or use the Docker container below, but add <code>RUN apk add bash</code> and change the last line to <code>CMD ["bash"]</code> and then chroot into it via <code>docker exec -it feed2toot bash</code>.</p>
<p>This will generate two files (<code>feed2toot_clientcred.txt</code> and <code>feed2toot_usercred.txt</code>). Be sure to save these.</p>
<p>You can also try to run Feed2Toot at least once to make sure it's working and to fine-tune your <code>ini</code> file. This is mine:</p>
<pre class="wp-block-code"><code>&#91;mastodon]
instance_url=https://yeri.be
; Here you need the two files created by register_feed2toot_app
user_credentials=/etc/feed2toot/feed2toot_usercred.txt
client_credentials=/etc/feed2toot/feed2toot_clientcred.txt
; Default visibility is public, but you can override it:
; toot_visibility=unlisted

&#91;cache]
cachefile=/feed2toot/feed2toot.db
cache_limit=10000

&#91;lock]
lock_file=/var/lock/feed2toot.lock
lock_timeout=3600

&#91;rss]
uri=https://yeri.be/feed
; uri_list=/feed2toot/rsslist.txt
toot={title} {link}
; toot_max_len=500
title_pattern=Open Source
title_pattern_case_sensitive=true
no_uri_pattern_no_global_pattern=true
; ignore_ssl=false

&#91;hashtaglist]
; several_words_hashtags_list=/feed2toot/hashtags.txt
; no_tags_in_toot=false

&#91;feedparser]
; accept_bozo_exceptions=true

&#91;media]
; custom=/var/lib/feed2toot/media/logo.png</code></pre>
<p>I have three other files to make this work, first off <code>Dockerfile</code>:</p>
<pre class="wp-block-code"><code>FROM python:3.6-alpine
RUN pip3 install feed2toot &amp;&amp; mkdir -p /etc/feed2toot/
COPY feed2toot.ini feed2toot_clientcred.txt feed2toot_usercred.txt /etc/feed2toot/
VOLUME /feed2toot/
CMD &#91;"feed2toot", "-c", "/etc/feed2toot/feed2toot.ini"]</code></pre>
<p>The script I run to build the container (<code>start.sh</code>):</p>
<pre class="wp-block-code"><code>#!/bin/bash
git pull

BASEIMAGE=`cat Dockerfile | grep FROM | awk '{print $2}'`
docker pull $BASEIMAGE
docker stop feed2toot
docker rm feed2toot
docker build -t feed2toot .
./run.sh</code></pre>
<p>And finally, the script to run the container every so often (<code>run.sh</code>):</p>
<pre class="wp-block-code"><code>#!/bin/bash
docker run -d --rm -v /srv/mastodon/feed2toot/:/feed2toot/ --name feed2toot feed2toot</code></pre>
<p>This will save the database file under <code>/srv/mastodon/</code>, to preserve states across rebuilds.</p>
<p>Note that once Feed2Toot runs, it'll exit, and the container will be stopped. So it does not automatically run all the time. </p>
<p>So, you'll want to run this every so often. You can add a file to <code>/etc/cron.d/</code> to run it, for example, every six hours:</p>
<pre class="wp-block-code"><code>#
# cron-jobs for feed2toot
#

MAILTO=root

0 */6 * * *		root	if &#91; -x /root/git/feed2toot/run.sh ]; then /root/git/feed2toot/run.sh &gt;/dev/null; fi</code></pre>
<p>That's it. Should do the trick. It'll now post stuff from your RSS feed onto your timeline. </p>
<p>Oh, and Jeroen has <a rel="noreferrer noopener" href="https://www.forceflow.be/2022/11/11/moving-from-twitter-to-mastodon/" target="_blank">a good post</a> about Mastodon.</p>
]]></content:encoded><category>Linux</category><category>Software</category><category>Virtualisation</category><category>blog</category><category>docker</category><category>fediverse</category><category>mastodon</category></item><item><title>Smokeping.eu</title><link>https://yeri.be/smokeping-eu/</link><pubDate>Thu, 14 Jul 2022 10:57:00 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/smokeping-eu/</guid><description>&lt;p&gt;I've revamped my Smokeping infra a bit &lt;a href="https://yeri.be/smokeping"&gt;since 2020&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;First off, starting to use the &lt;a href="http://www.smokeping.eu" target="_blank" rel="noreferrer noopener"&gt;smokeping.eu&lt;/a&gt;&lt;sup&gt;1&lt;/sup&gt; domain that &lt;a href="https://github.com/BiancoZandbergen" target="_blank" rel="noreferrer noopener"&gt;Bianco&lt;/a&gt; got 10 or so years ago instead of using weird URLs under &lt;a href="http://superuser.one" target="_blank" rel="noreferrer noopener"&gt;superuser.one&lt;/a&gt; domain. &lt;/p&gt;
&lt;p&gt;It's running on four nodes as we speak: &lt;/p&gt;
&lt;ul&gt;&lt;li&gt;a virtual machine on a &lt;a href="https://yeri.be/tag/rootspirit/page/2"&gt;colocation server&lt;/a&gt; in Leaseweb, Amsterdam, NL -&amp;gt; &lt;a href="https://leaseweb.nl.smokeping.eu/smokeping/" target="_blank" rel="noreferrer noopener"&gt;leaseweb.nl.smokeping.eu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;a RPi3 (+SD card, slowest of all), Telenet, Belgium -&amp;gt; &lt;a href="http://telenet.be.smokeping.eu/" target="_blank" rel="noreferrer noopener"&gt;telenet.be.smokeping.eu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;a RPi4, EDPnet, Belgium -&amp;gt; &lt;a href="https://edpnet.be.smokeping.eu/" target="_blank" rel="noreferrer noopener"&gt;edpnet.be.smokeping.eu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;a RPi4, Starhub, Singapore -&amp;gt; &lt;a href="http://starhub.sg.smokeping.eu" target="_blank" rel="noreferrer noopener"&gt;starhub.sg.smokeping.eu&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;This is achieved using Smokeping &lt;a href="https://docs.linuxserver.io/images/docker-smokeping" target="_blank" rel="noreferrer noopener"&gt;in a docker&lt;/a&gt; container, &lt;a href="https://www.cloudflare.com/en-gb/products/tunnel/" target="_blank" rel="noreferrer noopener"&gt;Cloudflare tunnel&lt;/a&gt; and Cloudflare CDN/DNS.&lt;/p&gt;</description><content:encoded><![CDATA[<p>I've revamped my Smokeping infra a bit <a href="https://yeri.be/smokeping">since 2020</a>. </p>
<p>First off, starting to use the <a href="http://www.smokeping.eu" target="_blank" rel="noreferrer noopener">smokeping.eu</a><sup>1</sup> domain that <a href="https://github.com/BiancoZandbergen" target="_blank" rel="noreferrer noopener">Bianco</a> got 10 or so years ago instead of using weird URLs under <a href="http://superuser.one" target="_blank" rel="noreferrer noopener">superuser.one</a> domain. </p>
<p>It's running on four nodes as we speak: </p>
<ul><li>a virtual machine on a <a href="https://yeri.be/tag/rootspirit/page/2">colocation server</a> in Leaseweb, Amsterdam, NL -&gt; <a href="https://leaseweb.nl.smokeping.eu/smokeping/" target="_blank" rel="noreferrer noopener">leaseweb.nl.smokeping.eu</a></li><li>a RPi3 (+SD card, slowest of all), Telenet, Belgium -&gt; <a href="http://telenet.be.smokeping.eu/" target="_blank" rel="noreferrer noopener">telenet.be.smokeping.eu</a></li><li>a RPi4, EDPnet, Belgium -&gt; <a href="https://edpnet.be.smokeping.eu/" target="_blank" rel="noreferrer noopener">edpnet.be.smokeping.eu</a></li><li>a RPi4, Starhub, Singapore -&gt; <a href="http://starhub.sg.smokeping.eu" target="_blank" rel="noreferrer noopener">starhub.sg.smokeping.eu</a></li></ul>
<p>This is achieved using Smokeping <a href="https://docs.linuxserver.io/images/docker-smokeping" target="_blank" rel="noreferrer noopener">in a docker</a> container, <a href="https://www.cloudflare.com/en-gb/products/tunnel/" target="_blank" rel="noreferrer noopener">Cloudflare tunnel</a> and Cloudflare CDN/DNS.</p>
<pre class="wp-block-verse"><sup>1</sup> Doesn't point at anything at the moment. To do later.</pre>
]]></content:encoded><category>Linux</category><category>Misc</category><category>Networking</category><category>Software</category><category>Virtualisation</category><category>docker</category><category>smokeping</category></item><item><title>Box — Docker shell server</title><link>https://yeri.be/box-docker-shell-server/</link><pubDate>Fri, 24 Apr 2020 10:27:00 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/box-docker-shell-server/</guid><description>&lt;p&gt;A couple of months ago I had the great idea to set up a shell server in Docker. Simply because my docker skillz were quite rusty and a shell server was something I actually genuinely needed. &lt;/p&gt;
&lt;p&gt;Shell servers... so 2005. I remember in the good old IRC days people asking for (free) shell servers to run their &lt;a aria-label="eggdrop (opens in a new tab)" href="https://eggheads.org/" target="_blank" rel="noreferrer noopener" class="aioseop-link"&gt;eggdrop&lt;/a&gt; and stuff. OMG am I getting old? Anyhow... &lt;/p&gt;</description><content:encoded><![CDATA[<p>A couple of months ago I had the great idea to set up a shell server in Docker. Simply because my docker skillz were quite rusty and a shell server was something I actually genuinely needed. </p>
<p>Shell servers... so 2005. I remember in the good old IRC days people asking for (free) shell servers to run their <a aria-label="eggdrop (opens in a new tab)" href="https://eggheads.org/" target="_blank" rel="noreferrer noopener" class="aioseop-link">eggdrop</a> and stuff. OMG am I getting old? Anyhow... </p>
<p>I ssh quite often. I manage quite a few <a href="https://yeri.be/tag/rootspirit" target="_blank" aria-label="servers (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">servers</a> (~15?) and <a href="https://yeri.be/?s=edgerouter" target="_blank" aria-label="routers (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">routers</a> that require me to login and do some random stuff. I also work on a laptop quite often and that means closing the lid and moving around. </p>
<p>First of all, <a aria-label=" (opens in a new tab)" href="https://mosh.org/" target="_blank" rel="noreferrer noopener" class="aioseop-link">mosh</a> is amazing and allows you to stay connected via ssh, even with crappy (airport/hotel) internet as well as moving around networks -- that solves half the problem. If you are not using it, start using it now!</p>
<p>Second, during my <a aria-label="datacenter technician (opens in a new tab)" href="https://www.google.com/about/datacenters/" target="_blank" rel="noreferrer noopener" class="aioseop-link">datacenter technician</a> days at Google we used to have a "jump server" -- a shell server that allowed us to bridge the corporate network and ssh into prod machines. Doubt that's still used nowadays, but the idea stuck. I wanted something similar to ssh from, wherever I was, and easily connect to my servers. And as the network the shell server is running on is stable, I only need to use mosh to the shell server. Thereafter, the connection very rarely dies. </p>
<p>And I guess, third, I recently purchased an iPad Pro and I really need to have my local "dev" environment with my git repo that I edit quite frequently but iPadOS isn't really your average computer, and doesn't even have a proper terminal. This is my experiment to make iPadOS work as a main computer when on the move. </p>
<p>Enter box -- <a href="https://gitlab.com/yeri/box-public" target="_blank" aria-label="Docker shell server (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">Docker shell server</a>... <a href="https://gitlab.com/yeri/box-public" class="aioseop-link"></a></p>
<p>I've copied over the files I use to this <a aria-label="example repo (opens in a new tab)" href="https://gitlab.com/yeri/box-public" target="_blank" rel="noreferrer noopener" class="aioseop-link">example repo</a>, and added some comments. Mind you that this repo acts as a proof of concept and isn't kept up to date, as I have my own private repo -- but this should give you a good idea on how to set up your own shell server with Docker. </p>
<p><a aria-label=" (opens in a new tab)" href="https://gitlab.com/yeri/box-public/-/blob/master/start.sh" target="_blank" rel="noreferrer noopener" class="aioseop-link">start.sh</a> -- this is a simple script that I execute when I first run or need to update the container. I execute the same file on two different servers: <a label="Liana (opens in a new tab)" href="http://smokeping-sg.superuser.one/" target="_blank" rel="noreferrer noopener" class="aioseop-link">Liana</a>, my Raspberry Pi at home and <a aria-label="Ocean (opens in a new tab)" href="http://smokeping.rootspirit.com/" target="_blank" rel="noreferrer noopener" class="aioseop-link">Ocean</a>, my server in <a aria-label="Amsterdam (opens in a new tab)" href="https://yeri.be/tag/rootspirit" target="_blank" rel="noreferrer noopener" class="aioseop-link">Amsterdam</a>. </p>
<p><a href="https://gitlab.com/yeri/box-public/-/blob/master/zsh.sh" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">zsh.sh</a> -- this installs what I care about for zsh. This could be part of the Dockerfile but for some reason I separated it. ¯\_(ツ)_/¯ </p>
<p><a aria-label=" (opens in a new tab)" href="https://gitlab.com/yeri/box-public/-/blob/master/git.sh" target="_blank" rel="noreferrer noopener" class="aioseop-link">git.sh</a> -- this clones my Git repos so I can edit and commit stuff from the shell server. </p>
<p><a aria-label="run.sh (opens in a new tab)" href="https://gitlab.com/yeri/box-public/-/blob/master/run.sh" target="_blank" rel="noreferrer noopener" class="aioseop-link">run.sh</a> -- this file is launched by Dockerfile at the end and executes what matters: the ssh daemon. It also adds a <a aria-label="Wireguard (opens in a new tab)" href="https://yeri.be/tag/wireguard" target="_blank" rel="noreferrer noopener" class="aioseop-link">Wireguard</a> route and executes the scripts above. </p>
<p><a aria-label=" (opens in a new tab)" href="https://gitlab.com/yeri/box-public/-/blob/master/Dockerfile" target="_blank" rel="noreferrer noopener" class="aioseop-link">Dockerfile</a> -- this installs everything I need and configures the whole thing. I've added tons of comments that should get you going. </p>
<p>I am also cloning <a aria-label="misc (opens in a new tab)" href="https://gitlab.com/yeri/homefiles/" target="_blank" rel="noreferrer noopener" class="aioseop-link">misc</a> and <a aria-label="homefiles (opens in a new tab)" href="https://gitlab.com/yeri/homefiles/" target="_blank" rel="noreferrer noopener" class="aioseop-link">homefiles</a> as submodules in <a aria-label="files/ (opens in a new tab)" href="https://gitlab.com/yeri/box-public/-/tree/master/files" target="_blank" rel="noreferrer noopener" class="aioseop-link">files/</a> -- but you should change this to something that works for you. See the Dockerfile for more info. </p>
]]></content:encoded><category>Apple</category><category>Linux</category><category>Networking</category><category>Software</category><category>Virtualisation</category><category>debian</category><category>docker</category><category>raspberrypi</category><category>rootspirit</category><category>vpn</category><category>wireguard</category></item><item><title>Updated @Flightradar24 Ansible cookbook</title><link>https://yeri.be/updated-flightradar24-ansible-cookbook/</link><pubDate>Wed, 21 Jan 2015 17:04:04 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/updated-flightradar24-ansible-cookbook/</guid><description>&lt;p&gt;I had to wait a little while for the ARMv7 version for my EfikaMX devices, but they finally had time to compile it. Yay!&lt;/p&gt;
&lt;p&gt;The updated &lt;a href="https://yeri.be/flightradar24-ansible-playbook"&gt;cookbooks&lt;/a&gt; are &lt;a href="https://github.com/Tuinslak/ansible-flightradar24" target="_blank"&gt;on Github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Changes (&lt;a href="https://github.com/Tuinslak/ansible-flightradar24/commits/master" target="_blank"&gt;commits&lt;/a&gt;):&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Better key management&lt;/li&gt;
	&lt;li&gt;fr24feed.ini&lt;/li&gt;
	&lt;li&gt;No more separate dump1090 launch&lt;/li&gt;
	&lt;li&gt;newest fr24 version&lt;/li&gt;
&lt;/ul&gt;
Download links for &lt;a href="http://feed.flightradar24.com/linux/" target="_blank"&gt;Linux&lt;/a&gt; &amp;amp; &lt;a href="http://feed.flightradar24.com/raspberry-pi/" target="_blank"&gt;RPi&lt;/a&gt;.</description><content:encoded><![CDATA[<p>I had to wait a little while for the ARMv7 version for my EfikaMX devices, but they finally had time to compile it. Yay!</p>
<p>The updated <a href="https://yeri.be/flightradar24-ansible-playbook">cookbooks</a> are <a href="https://github.com/Tuinslak/ansible-flightradar24" target="_blank">on Github</a>.</p>
<p>Changes (<a href="https://github.com/Tuinslak/ansible-flightradar24/commits/master" target="_blank">commits</a>):</p>
<ul>
	<li>Better key management</li>
	<li>fr24feed.ini</li>
	<li>No more separate dump1090 launch</li>
	<li>newest fr24 version</li>
</ul>
Download links for <a href="http://feed.flightradar24.com/linux/" target="_blank">Linux</a> &amp; <a href="http://feed.flightradar24.com/raspberry-pi/" target="_blank">RPi</a>.
]]></content:encoded><category>Linux</category><category>Networking</category><category>Software</category><category>Virtualisation</category><category>ansible</category><category>dvb-t</category><category>flightradar24</category></item><item><title>Theme</title><link>https://yeri.be/theme/</link><pubDate>Sat, 27 Dec 2014 06:47:34 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/theme/</guid><description>&lt;p&gt;I had the &lt;a href="https://yeri.be/theme-blog-and-stuff"&gt;same theme&lt;/a&gt; for over four years. I&amp;rsquo;ve made quite a few custom css and PHP edits myself, and it had been &lt;a href="http://azeemazeez.com/blogs/white-as-milk/" target="_blank" rel="noopener noreferrer"&gt;outdated for ages&lt;/a&gt;&amp;hellip; But it served me well.&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;a href="https://static.yeri.be/2014/12/theme-2011.png"&gt;&lt;img class="alignnone size-full wp-image-6554" src="https://static.yeri.be/2014/12/theme-2011.png" alt="theme-2011" width="1817" height="1192" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, it&amp;rsquo;s now time for &lt;a href="https://wordpress.org/themes/opal" target="_blank" rel="noopener noreferrer"&gt;something new&lt;/a&gt;.&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;a href="https://static.yeri.be/2014/12/theme-2015.png"&gt;&lt;img class="alignnone size-full wp-image-6542" src="https://static.yeri.be/2014/12/theme-2015.png" alt="theme-2015" width="1411" height="1174" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As always, as minimalistic as possible.&lt;/p&gt;
&lt;p&gt;On a side note, this blog has been moved from &lt;a href="https://yeri.be/blog-changes"&gt;vm1&lt;/a&gt; (and &lt;a href="https://yeri.be/one-2"&gt;one&lt;/a&gt; before that) a virtual machine running on a dual Xeon 3070 (2.66Ghz) at &lt;a href="https://yeri.be/four"&gt;Databarn&lt;/a&gt; to &lt;a href="http://www.wowwiki.com/Akama" target="_blank" rel="noopener noreferrer"&gt;Akama&lt;/a&gt;, a VM on an 8 core Xeon E3-1230 (3.2Ghz) at &lt;a href="https://www.facebook.com/photo.php?fbid=10203828300326081&amp;amp;set=pb.1177197811.-2207520000.1419638163.&amp;amp;type=3&amp;amp;theater" target="_blank" rel="noopener noreferrer"&gt;Leaseweb&lt;/a&gt;.&lt;/p&gt;</description><content:encoded><![CDATA[<p>I had the <a href="https://yeri.be/theme-blog-and-stuff">same theme</a> for over four years. I&rsquo;ve made quite a few custom css and PHP edits myself, and it had been <a href="http://azeemazeez.com/blogs/white-as-milk/" target="_blank" rel="noopener noreferrer">outdated for ages</a>&hellip; But it served me well.</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2014/12/theme-2011.png"><img class="alignnone size-full wp-image-6554" src="https://static.yeri.be/2014/12/theme-2011.png" alt="theme-2011" width="1817" height="1192" /></a></p>
<p>However, it&rsquo;s now time for <a href="https://wordpress.org/themes/opal" target="_blank" rel="noopener noreferrer">something new</a>.</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2014/12/theme-2015.png"><img class="alignnone size-full wp-image-6542" src="https://static.yeri.be/2014/12/theme-2015.png" alt="theme-2015" width="1411" height="1174" /></a></p>
<p>As always, as minimalistic as possible.</p>
<p>On a side note, this blog has been moved from <a href="https://yeri.be/blog-changes">vm1</a> (and <a href="https://yeri.be/one-2">one</a> before that) a virtual machine running on a dual Xeon 3070 (2.66Ghz) at <a href="https://yeri.be/four">Databarn</a> to <a href="http://www.wowwiki.com/Akama" target="_blank" rel="noopener noreferrer">Akama</a>, a VM on an 8 core Xeon E3-1230 (3.2Ghz) at <a href="https://www.facebook.com/photo.php?fbid=10203828300326081&amp;set=pb.1177197811.-2207520000.1419638163.&amp;type=3&amp;theater" target="_blank" rel="noopener noreferrer">Leaseweb</a>.</p>
<p>I&rsquo;ve also correctly repaired IPv6 on this blog. Apparently nginx never and/or stopped correctly listening to IPv6 (suddenly my Android devices displayed errors on this page, Chrome &amp; Firefox on OS X seemed to fall back to IPv4 instantly&hellip; Not sure how long it was broken, but it&rsquo;s back).</p>
<p>Note to self:</p>
<pre>listen          yeri.be:443;
server_name     yeri.be;</pre>
<p>Does not work with IPv6, it has to be</p>
<pre>listen          [::]:443;
server_name     yeri.be;</pre>
]]></content:encoded><category>Hardware</category><category>Linux</category><category>Networking</category><category>Software</category><category>Virtualisation</category><category>www</category><category>Tuinslak</category><category>blog</category><category>nginx</category><category>rootspirit</category></item><item><title>@Flightradar24 Ansible playbook</title><link>https://yeri.be/flightradar24-ansible-playbook/</link><pubDate>Wed, 03 Dec 2014 10:53:25 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/flightradar24-ansible-playbook/</guid><description>&lt;p&gt;Here&amp;rsquo;s my very &lt;a href="https://github.com/Tuinslak/anisble-flightradar24" target="_blank" rel="noopener"&gt;simple Ansible playbook&lt;/a&gt; for &lt;a href="https://yeri.be/raspberry-pi-flightradar24"&gt;Flightradar24&lt;/a&gt; nodes.&lt;/p&gt;
&lt;p&gt;While I run it on &lt;a href="https://web.archive.org/web/20221211143434/https://genesi.company/products/efika" target="_blank" rel="noopener"&gt;EfikaMX&lt;/a&gt;, it should work on most Debian based devices. Just be sure to modify the FR24 software &lt;a href="https://github.com/Tuinslak/anisble-flightradar24/blob/master/site.yml" target="_blank" rel="noopener"&gt;download URL&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This Ansible playbook is untested on its own. It comes out of a way bigger (private) Ansible playbook, and I kind of just copy pasted this part, as others might benefit from it.&lt;/p&gt;
&lt;p&gt;After running Ansible, you should reboot for driver blacklisting to work in cases it&amp;rsquo;s needed on your device (it is on RPis). And be sure to edit &lt;code&gt;/root/flightradar24.sh&lt;/code&gt; with your key.&lt;/p&gt;</description><content:encoded><![CDATA[<p>Here&rsquo;s my very <a href="https://github.com/Tuinslak/anisble-flightradar24" target="_blank" rel="noopener">simple Ansible playbook</a> for <a href="https://yeri.be/raspberry-pi-flightradar24">Flightradar24</a> nodes.</p>
<p>While I run it on <a href="https://web.archive.org/web/20221211143434/https://genesi.company/products/efika" target="_blank" rel="noopener">EfikaMX</a>, it should work on most Debian based devices. Just be sure to modify the FR24 software <a href="https://github.com/Tuinslak/anisble-flightradar24/blob/master/site.yml" target="_blank" rel="noopener">download URL</a>.</p>
<p>This Ansible playbook is untested on its own. It comes out of a way bigger (private) Ansible playbook, and I kind of just copy pasted this part, as others might benefit from it.</p>
<p>After running Ansible, you should reboot for driver blacklisting to work in cases it&rsquo;s needed on your device (it is on RPis). And be sure to edit <code>/root/flightradar24.sh</code> with your key.</p>
]]></content:encoded><category>Linux</category><category>Networking</category><category>Software</category><category>Virtualisation</category><category>ansible</category><category>flightradar24</category></item><item><title>Wheezy Xen Dom0 &amp; RAM</title><link>https://yeri.be/wheezy-xen-dom0-ram/</link><pubDate>Sat, 14 Jun 2014 18:43:03 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/wheezy-xen-dom0-ram/</guid><description>&lt;p&gt;Note to self: &amp;lt;1Gb of RAM on a Dom0 Wheezy server causes kernel panics.&lt;/p&gt;
&lt;p&gt;Using 2Gb of RAM seems to do the trick.&lt;/p&gt;</description><content:encoded><![CDATA[<p>Note to self: &lt;1Gb of RAM on a Dom0 Wheezy server causes kernel panics.</p>
<p>Using 2Gb of RAM seems to do the trick.</p>
]]></content:encoded><category>Errors</category><category>Hardware</category><category>Linux</category><category>Software</category><category>Virtualisation</category><category>debian</category><category>xen</category></item><item><title>Hint of the day: run-parts and not executing files</title><link>https://yeri.be/hint-of-the-day-run-parts-and-not-executing-files/</link><pubDate>Sun, 29 Sep 2013 19:41:50 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/hint-of-the-day-run-parts-and-not-executing-files/</guid><description>&lt;p&gt;If you have a rc.local looking like this:&lt;/p&gt;
&lt;pre&gt;/bin/run-parts /etc/rc.local.d&lt;/pre&gt;
&lt;p&gt;and files in /etc/rc.local.d looking like this&lt;/p&gt;
&lt;pre&gt;hostname.sh sshkeys.sh firstboot.sh&lt;/pre&gt;
&lt;p&gt;it&amp;rsquo;s not going to work.&lt;/p&gt;
&lt;p&gt;Why, you ask, after cursing and shouting for the past hour?&lt;/p&gt;
&lt;p&gt;because run-parts &lt;a href="https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/38022" target="_blank"&gt;ignores&lt;/a&gt; files with dots (&amp;quot;.&amp;quot;) and/or .sh files.&lt;/p&gt;
&lt;p&gt;Yes. True story.&lt;/p&gt;
&lt;p&gt;rename all the files to:&lt;/p&gt;
&lt;pre&gt;hostname sshkeys firstboot&lt;/pre&gt;
&lt;p&gt;and your problem will be solved (and of course chmod +x them).&lt;/p&gt;</description><content:encoded><![CDATA[<p>If you have a rc.local looking like this:</p>
<pre>/bin/run-parts /etc/rc.local.d</pre>
<p>and files in /etc/rc.local.d looking like this</p>
<pre>hostname.sh sshkeys.sh firstboot.sh</pre>
<p>it&rsquo;s not going to work.</p>
<p>Why, you ask, after cursing and shouting for the past hour?</p>
<p>because run-parts <a href="https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/38022" target="_blank">ignores</a> files with dots (&quot;.&quot;) and/or .sh files.</p>
<p>Yes. True story.</p>
<p>rename all the files to:</p>
<pre>hostname sshkeys firstboot</pre>
<p>and your problem will be solved (and of course chmod +x them).</p>
]]></content:encoded><category>Errors</category><category>Linux</category><category>Software</category><category>Virtualisation</category><category>cron</category></item><item><title>Hint of the day: @digitalocean and not mounting sshfs at boot</title><link>https://yeri.be/hint-of-the-day-digital-ocean-and-sshfs/</link><pubDate>Fri, 27 Sep 2013 20:35:04 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/hint-of-the-day-digital-ocean-and-sshfs/</guid><description>&lt;p&gt;In /etc/fstab, be sure to add the option:&lt;/p&gt;
&lt;pre&gt;_netdev&lt;/pre&gt;
&lt;p&gt;As it will attempt to start the network mounted sshfs before networking has been started.&lt;/p&gt;
&lt;p&gt;The entire line looks like this:&lt;/p&gt;
&lt;pre&gt;user@host:/some/dir /local/path fuse.sshfs defaults,idmap=user,_netdev  0 0&lt;/pre&gt;
&lt;p&gt;From the man pages:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;_netdev&lt;/b&gt;&lt;/p&gt;
&lt;blockquote&gt;The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).&lt;/blockquote&gt;</description><content:encoded><![CDATA[<p>In /etc/fstab, be sure to add the option:</p>
<pre>_netdev</pre>
<p>As it will attempt to start the network mounted sshfs before networking has been started.</p>
<p>The entire line looks like this:</p>
<pre>user@host:/some/dir /local/path fuse.sshfs defaults,idmap=user,_netdev  0 0</pre>
<p>From the man pages:</p>
<p><b>_netdev</b></p>
<blockquote>The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).</blockquote>
]]></content:encoded><category>Linux</category><category>Networking</category><category>Software</category><category>Virtualisation</category><category>ssh</category></item><item><title>Blog's back</title><link>https://yeri.be/blogs-back/</link><pubDate>Sat, 19 Nov 2011 19:11:43 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/blogs-back/</guid><description>&lt;p&gt;Yay, after some hardware issues my blog&amp;rsquo;s back.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://yeri.be/zero"&gt;Zero&lt;/a&gt; had a corrupt reiserfs. Decommissioned the old P4 and replaced by a brand new dual Xeon. Running Xen and Debian instead of Gentoo.&lt;/p&gt;
&lt;p&gt;And shortly there after &lt;a href="https://yeri.be/four"&gt;Four&lt;/a&gt; (the server that hosts this VM), the Ubuntu host with Xen refused to start its networking, so I decided to start a fresh install (Debian as well this time).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://twitter.com/#!/Tuinslak/status/137871688917450752"&gt;One&lt;/a&gt;, who also had a broken hard disk (an old P3) got decommed as well.&lt;/p&gt;</description><content:encoded><![CDATA[<p>Yay, after some hardware issues my blog&rsquo;s back.</p>
<p><a href="https://yeri.be/zero">Zero</a> had a corrupt reiserfs. Decommissioned the old P4 and replaced by a brand new dual Xeon. Running Xen and Debian instead of Gentoo.</p>
<p>And shortly there after <a href="https://yeri.be/four">Four</a> (the server that hosts this VM), the Ubuntu host with Xen refused to start its networking, so I decided to start a fresh install (Debian as well this time).</p>
<p><a href="https://twitter.com/#!/Tuinslak/status/137871688917450752">One</a>, who also had a broken hard disk (an old P3) got decommed as well.</p>
<p>Long story short, it&rsquo;s back!</p>
]]></content:encoded><category>Misc</category><category>Virtualisation</category><category>www</category><category>rootspirit</category></item><item><title>Xen: iptables issue</title><link>https://yeri.be/xen-iptables-issue/</link><pubDate>Sat, 23 Oct 2010 02:06:36 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/xen-iptables-issue/</guid><description>&lt;pre&gt;vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 85.12.6.173:8180
WARNING: Could not open 'kernel/net/netfilter/x_tables.ko': No such file or directory
FATAL: Could not open 'kernel/net/ipv4/netfilter/ip_tables.ko': No such file or directory
iptables v1.4.2: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.&lt;/pre&gt;
&lt;p&gt;Solution:&lt;/p&gt;
&lt;pre&gt;vm3:/# depmod
vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 85.12.6.173:8180&lt;/pre&gt;
&lt;p&gt;All ok :)&lt;/p&gt;</description><content:encoded><![CDATA[<pre>vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 85.12.6.173:8180
WARNING: Could not open 'kernel/net/netfilter/x_tables.ko': No such file or directory
FATAL: Could not open 'kernel/net/ipv4/netfilter/ip_tables.ko': No such file or directory
iptables v1.4.2: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.</pre>
<p>Solution:</p>
<pre>vm3:/# depmod
vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 85.12.6.173:8180</pre>
<p>All ok :)</p>
]]></content:encoded><category>Linux</category><category>Software</category><category>Virtualisation</category><category>xen</category></item><item><title>Xen: PTY allocation request failed</title><link>https://yeri.be/xen-pty-allocation-request-failed/</link><pubDate>Thu, 21 Oct 2010 01:37:21 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/xen-pty-allocation-request-failed/</guid><description>&lt;pre&gt;$ ssh vm3.rootspirit.com -l root
root@vm3.rootspirit.com's password:
PTY allocation request failed on channel 0
stdin: is not a tty&lt;/pre&gt;
&lt;div&gt;Solution:&lt;/div&gt;
Kill the DomU (xm console *might* work, but somehow rarely works for me).
&lt;pre&gt;mkdir /tmp/disk
mount /path/to/disk.img /tmp/disk
chroot /tmp/disk /bin/bash&lt;/pre&gt;
=&amp;gt; in chroot env
&lt;pre&gt;nano -w /etc/fstab&lt;/pre&gt;
And add (though this is probably not needed):
&lt;pre&gt;none            /dev/pts      devpts    defaults        0   0&lt;/pre&gt;
And install udev:
&lt;pre&gt;apt-get install udev&lt;/pre&gt;
Clean up, and restart DomU
&lt;pre&gt;exit
umount /tmp/disk
xm create /path/to/xen/vm.cfg&lt;/pre&gt;
Should do the trick. :)</description><content:encoded><![CDATA[<pre>$ ssh vm3.rootspirit.com -l root
root@vm3.rootspirit.com's password:
PTY allocation request failed on channel 0
stdin: is not a tty</pre>
<div>Solution:</div>
Kill the DomU (xm console *might* work, but somehow rarely works for me).
<pre>mkdir /tmp/disk
mount /path/to/disk.img /tmp/disk
chroot /tmp/disk /bin/bash</pre>
=&gt; in chroot env
<pre>nano -w /etc/fstab</pre>
And add (though this is probably not needed):
<pre>none            /dev/pts      devpts    defaults        0   0</pre>
And install udev:
<pre>apt-get install udev</pre>
Clean up, and restart DomU
<pre>exit
umount /tmp/disk
xm create /path/to/xen/vm.cfg</pre>
Should do the trick. :)
]]></content:encoded><category>Errors</category><category>Linux</category><category>Software</category><category>Virtualisation</category><category>xen</category></item><item><title>Xen: Failed to find an unused loop device</title><link>https://yeri.be/xen-failed-to-find-an-unused-loop-device/</link><pubDate>Wed, 20 Oct 2010 01:21:18 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/xen-failed-to-find-an-unused-loop-device/</guid><description>&lt;p&gt;I had to start a new Xen domU this afternoon,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;xm create vm#.domain&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;But this resulted in following error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Error: Device 5632 (vbd) could not be connected.
Failed to find an unused loop device&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Solution:&lt;/p&gt;
&lt;p&gt;Create &lt;code&gt;/etc/modprobe.d/local-loop.conf&lt;/code&gt; with this content:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;options loop max_loop=64&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Turn off all DomUs, yes, bummer. You&amp;rsquo;ll need to reload the loop module which won&amp;rsquo;t work if Xen is still using them. &lt;code&gt;xm list&lt;/code&gt; should only display Domain-0.&lt;/p&gt;</description><content:encoded><![CDATA[<p>I had to start a new Xen domU this afternoon,</p>
<p><code>xm create vm#.domain</code></p>
<p>But this resulted in following error:</p>
<p><code>Error: Device 5632 (vbd) could not be connected.
Failed to find an unused loop device</code></p>
<p>Solution:</p>
<p>Create <code>/etc/modprobe.d/local-loop.conf</code> with this content:</p>
<p><code>options loop max_loop=64</code></p>
<p>Turn off all DomUs, yes, bummer. You&rsquo;ll need to reload the loop module which won&rsquo;t work if Xen is still using them. <code>xm list</code> should only display Domain-0.</p>
<p><code>modprobe -r loop &amp;&amp; modprobe loop</code></p>
<p>And restart all DomUs. You can now create 32 (64/2 ~= # of DomUs; increase if you need more) DomUs.</p>
<p>You can check (before &amp; after) the difference in loop back devices: <code>ls -ls /dev | grep loop | wc -l</code></p>
]]></content:encoded><category>Errors</category><category>Linux</category><category>Software</category><category>Virtualisation</category><category>xen</category></item><item><title>Parallels + Ubuntu</title><link>https://yeri.be/parallels-ubuntu/</link><pubDate>Mon, 21 Jan 2008 19:00:25 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/parallels-ubuntu/</guid><description>&lt;p&gt;I &lt;a href="https://yeri.be/bootcamp/"&gt;finally got a reply&lt;/a&gt; from the Parallels support team. After using the &lt;a href="http://www.parallels.com/en/download/file/v3/en/GA/Parallels-Desktop-5582-Mac-en.dmg" target="_blank" rel="noopener noreferrer"&gt;alternate Parallels installer&lt;/a&gt; it finally works again! Even after rebooting Mac! &lt;em&gt;joy&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Before trying to run Vista/Bootcamp through Parallels again, I&amp;rsquo;m waiting till the end of my exams (Thursday). Don&amp;rsquo;t want to blow up my Windows install again when I&amp;rsquo;m in desperate need of it. ;)&lt;/p&gt;
&lt;p&gt;As usual with Parallels, creating/installing a new OS isn&amp;rsquo;t easy. Wether it crashes or you get a bunch of errors, you&amp;rsquo;re always up for a day full of fun!&lt;/p&gt;</description><content:encoded><![CDATA[<p>I <a href="https://yeri.be/bootcamp/">finally got a reply</a> from the Parallels support team. After using the <a href="http://www.parallels.com/en/download/file/v3/en/GA/Parallels-Desktop-5582-Mac-en.dmg" target="_blank" rel="noopener noreferrer">alternate Parallels installer</a> it finally works again! Even after rebooting Mac! <em>joy</em></p>
<p>Before trying to run Vista/Bootcamp through Parallels again, I&rsquo;m waiting till the end of my exams (Thursday). Don&rsquo;t want to blow up my Windows install again when I&rsquo;m in desperate need of it. ;)</p>
<p>As usual with Parallels, creating/installing a new OS isn&rsquo;t easy. Wether it crashes or you get a bunch of errors, you&rsquo;re always up for a day full of fun!</p>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/ubuntu1.png" title="Ubuntu on Parallels (1)"><img src="https://static.yeri.be/2008/01/ubuntu1.thumbnail.png" alt="Ubuntu on Parallels (1)"/></a></p>
<p>Here is how I managed to install Ubuntu on Parallels:</p>
<ul>
    <li>First of all, make sure you're running the latest version of Parallels, especially if you're using Leopard.</li>
    <li>Step 2, download the  <strong>alternate</strong> Ubuntu installer. If you do not use the alternate installer, you'll end up with 'Display server errors' before being able to install Ubuntu. You can download Ubuntu <a href="http://www.ubuntu.com/download" target="_blank" rel="noopener noreferrer">here</a>. Select the approriate version (probably Desktop, latest version), and <strong>check "</strong><em>Check here if you need the alternate desktop CD. This CD does not include the Live CD, instead it uses a text-based installer</em>".<strong> </strong></li>
    <li>Step 3, create a new virtual machine, with OS Linux/Ubuntu.</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/pu1.png" title="Parallels: Create a VM"><img src="https://static.yeri.be/2008/01/pu1.thumbnail.png" alt="Parallels: Create a VM"/></a><a href="https://static.yeri.be/2008/01/pu2.png" title="Parallels: Create a VM (2)"><img src="https://static.yeri.be/2008/01/pu2.thumbnail.png" alt="Parallels: Create a VM (2)"/></a></p>
<ul>
    <li>And follow the steps. I've added some more screenshots below. You can leave everything by default, that's as you wish.</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/pu3.png" title="Parallels: Create a VM (3)"><img src="https://static.yeri.be/2008/01/pu3.thumbnail.png" alt="Parallels: Create a VM (3)"/></a><a href="https://static.yeri.be/2008/01/pu4.png" title="Parallels: Create a VM (4)"><img src="https://static.yeri.be/2008/01/pu4.thumbnail.png" alt="Parallels: Create a VM (4)"/></a><a href="https://static.yeri.be/2008/01/pu5.png" title="Parallels: Create a VM (5)"><img src="https://static.yeri.be/2008/01/pu5.thumbnail.png" alt="Parallels: Create a VM (5)"/></a><a href="https://static.yeri.be/2008/01/pu6.png" title="Parallels: Create a VM (6)"><img src="https://static.yeri.be/2008/01/pu6.thumbnail.png" alt="Parallels: Create a VM (6)"/></a><a href="https://static.yeri.be/2008/01/pu7.png" title="Parallels: Create a VM (7)"><img src="https://static.yeri.be/2008/01/pu7.thumbnail.png" alt="Parallels: Create a VM (7)"/></a><a href="https://static.yeri.be/2008/01/pu8.png" title="Parallels: Create a VM (8)"><img src="https://static.yeri.be/2008/01/pu8.thumbnail.png" alt="Parallels: Create a VM (8)"/></a></p>
<ul>
    <li>As CD-drive, select the Ubuntu (alternate) installer .iso-file.</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/pu9.png" title="Parallels: Create a VM (9)"><img src="https://static.yeri.be/2008/01/pu9.thumbnail.png" alt="Parallels: Create a VM (9)"/></a></p>
<ul>
    <li>Click Finish and Start -- the Ubuntu installer will boot.</li>
    <li>You'll end up in Ubuntu's welcome screen. Select your keyboard layout (hit F3) and select (text) install</li>
    <li>Here too, follow the steps on the screen. It will ask for your language, country, and will propose a manual or automatic disk partition. I've selected automatic -- it creates a big ext3 root partition, and a swap partition.
The installer then asks if you agree with the partition table. Select Yes or No. (I've selected No - changed my root partition from ext3 to reiserfs, as I'm a big reiserfs fan.) When selecting Yes -- the table will be created and Ubuntu will start installing.</li>
    <li>After it's installed, Ubuntu will reboot. This is where you'll get your first error; <strong>ACPI: Unable to locate RSDP</strong>. This is a known error; you can safey ignore it.</li>
    <li>Ubuntu will continue to boot, and then pop up this error: <strong>The display server has been shut down about 6 times in the last 90 seconds</strong>, and will freeze. To fix this error, shut down and restart (or reset) the VM, and hit the ESC-key. Grub's bootloader menu will pop up if everything is right.</li>
    <li>Select the 2nd option (recovery). Ubuntu will boot up in text-mode-only and you should be logged in as root (if you're not, add 'sudo' in front of the commands below).</li>
    <li>In Parallels, click (on top of your screen) "Actions" -&gt; "Install Parallels Tools..." and type in following commands in the shell:
<ul>
    <li>    mount /media/cdrom</li>
    <li>    cd /media/cdrom</li>
    <li>./parallels-tools.run</li>
    <li>reboot</li>
</ul>
</li>
    <li>After Ubuntu has rebooted (in normal mode), you shouldn't receive any more errors, and you can enjoy Ubuntu on your mac!</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/ubuntu_shutdown.png" title="Ubuntu on Parallels (2)"><img src="https://static.yeri.be/2008/01/ubuntu_shutdown.thumbnail.png" alt="Ubuntu on Parallels (2)"/></a></p>
]]></content:encoded><category>Apple</category><category>Linux</category><category>Virtualisation</category><category>Linux</category><category>Ubuntu</category><category>mac os x</category><category>parallels</category></item><item><title>Bootcamp</title><link>https://yeri.be/bootcamp/</link><pubDate>Sun, 13 Jan 2008 00:40:31 +0100</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/bootcamp/</guid><description>&lt;p&gt;For a few courses I&amp;rsquo;m following at school, I need to be able to run Windows.&lt;/p&gt;
&lt;p&gt;As I&amp;rsquo;m owning a Macbook Pro (with Leopard) that shouldn&amp;rsquo;t have to be any problem using &lt;a href="https://support.apple.com/boot-camp" target="_blank" rel="noopener noreferrer"&gt;Bootcamp&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I created a 5 Gb partition and installed WinXP a few weeks ago. So far all fine.&lt;/p&gt;
&lt;p&gt;As I don&amp;rsquo;t really like to reboot into XP (I can&amp;rsquo;t access my mails, don&amp;rsquo;t have my IRC client, all my Camino tabs are closed, &amp;hellip;) I tried Parallels.&lt;/p&gt;</description><content:encoded><![CDATA[<p>For a few courses I&rsquo;m following at school, I need to be able to run Windows.</p>
<p>As I&rsquo;m owning a Macbook Pro (with Leopard) that shouldn&rsquo;t have to be any problem using <a href="https://support.apple.com/boot-camp" target="_blank" rel="noopener noreferrer">Bootcamp</a>.</p>
<p>I created a 5 Gb partition and installed WinXP a few weeks ago. So far all fine.</p>
<p>As I don&rsquo;t really like to reboot into XP (I can&rsquo;t access my mails, don&rsquo;t have my IRC client, all my Camino tabs are closed, &hellip;) I tried Parallels.</p>
<p>Parallels, at first, was a real disappointment. It crashed my Mac OS X several times. It was only, just a few days later, when they released a patch to solve all Leopard issues, that I started to enjoy it.</p>
<p>Running all my programs from Parallels (instead of rebooting), I never noticed my Bootcamp WinXP was actually broken. As exams were approaching (I&rsquo;m not allowed to run a virtualization of Windows, because my school&rsquo;s key and network loggers won&rsquo;t work like intended, not that I care that much, but they do ;) ), I rebooted for the first time in weeks to my Bootcamp XP, and noticed the <a href="http://kb.parallels.com/entry/63/526/0/" target="_blank" rel="noopener noreferrer">famous hal.dll error</a> (or <a href="http://www.google.com/search?q=hal.dll%20parallels%20bootcamp" target="_blank" rel="noopener noreferrer">Google it</a>, you&rsquo;ll see why it&rsquo;s famous).</p>
<p>I repaired my Windows XP install (as explained in Parallels&rsquo; knowledge base), and that indeed fixed the problem&hellip; of Bootcamp&hellip; My parallels was now broken (hal.dll error for Parallels, instead of Bootcamp). Trying to recreate a new Parallels virtual disk for bootcamp, or even reinstall the program, &hellip; All failed. (There should be bootflags to edit, and force Parallels to use a different hal.dll, well, read about it <a href="http://forum.parallels.com/showthread.php?p=80712" target="_blank" rel="noopener noreferrer">here</a>, it&rsquo;s no longer useful for me.)</p>
<p>Googling and searching their forums, no luck, no one had a fixed solution. Only &rsquo;try this&rsquo; and &rsquo;try that&rsquo;. (To follow the above howto I&rsquo;ve posted, you need to be able to (re)install Parallels, and by the time I found that howto I wasn&rsquo;t even able to do that; Parallels froze during installation.) I e-mailed the Parallels support team with my problem, and the form said they&rsquo;d reply within 3 working days&hellip; It has been over 2 weeks, and I&rsquo;m still waiting.</p>
<p>I then noticed that my Mac/Apple keyboard driver weren&rsquo;t working in Bootcamp-XP, some chars like #, @, &gt; and so forth weren&rsquo;t working (or at least the layout didn&rsquo;t match with my Apple keyboard). I tried to reinstall the Bootcamp drivers (located on my Leopard DVD), they all failed to install (no error message&hellip;). Being quite fed up with it, I decided to reinstall XP (without formatting, just overwriting my Windows dir). And here too, the drivers failed to install, with no specific error message&hellip; Took the required backups, formatted, and had the wild idea to install Vista.</p>
<p>Booted from the Vista install DVD, and came to the conclusion I needed at least 7 Gb disk space to <em>install</em> Vista (having a 5 Gb partition, this wouldn&rsquo;t work). Back in os X I deleted the Windows partition, and tried to recreate a new (10 Gb) one.</p>
<p>And&hellip; This error came up: &ldquo;<a href="http://forums.macrumors.com/showthread.php?t=191729" target="_blank" rel="noopener noreferrer">Your disk cannot be partitioned because some files cannot be moved</a>&rdquo; (<a href="https://web.archive.org/web/20090206232130/http://macosx.com:80/forums/boot-camp-os-virtualization-mac/276315-boot-camp-1-1-won-t-partition-because-some-files-cannot-moved.html" target="_blank" rel="noopener noreferrer">other link</a>). I now started to panic, as I had less then a week to fix this problem. Following a few try-this-and-try-that&rsquo;s, I removed a few big files from my disk (someone even said to remove Office 2004, but I wasn&rsquo;t about to do that), I tried to repair my disk (from the Leopard DVD), I tried smaller partitions, even 5 Gb wouldn&rsquo;t work, and then, when all hope was almost lost, I tried one last thing; &lsquo;<strong>Zero Out Data</strong>&rsquo;. This will overwrite all deleted files (well, marked for deletion by your disk, but still written on it, so this data can theoretically be recovered) with zero&rsquo;s.</p>
<p style="text-align: center;"><img src="https://static.yeri.be/2008/01/disk_utility-zero_out_data.jpg" alt="Disk Utility - Zero Out Data"/></p>
<p>And this too, has to be done from the Mac OS X install CD/DVD.</p>
<p>After, well, about 40 minutes Disk Utility was done, I rebooted right into Leopard, and retried to create a 5 Gb partition&hellip; And guess what?! It worked!</p>
<p>I deleted that partition again (5 Gb being to small), and recreated a 15 Gb partition, and this too worked with no problems.</p>
<p>I now happily run Vista on my Macbook Pro, and so far I can&rsquo;t complain.</p>
<p>The only thing I haven&rsquo;t been able to fix is Parallels, I can&rsquo;t even reinstall it (it freezes during install). But heck with it, I&rsquo;ve lost enough sweat already to fix Bootcamp.</p>
]]></content:encoded><category>Apple</category><category>Errors</category><category>Virtualisation</category><category>Windows</category><category>Bootcamp</category><category>Windows</category><category>mac os x</category></item></channel></rss>