<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/vendor/feed/atom.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
                        <id>http://ortgies.it/blog/feed</id>
                                <link href="http://ortgies.it/blog/feed" rel="self"></link>
                                <title><![CDATA[Jan-Erics Blog]]></title>
                                <logo>https://ortgies.it/img/home-bg.jpg</logo>
                                <subtitle>Random Stuff!</subtitle>
                                                    <updated>2020-02-27T14:16:40+01:00</updated>
                        <entry>
            <title><![CDATA[Hello World!]]></title>
            <link rel="alternate" href="https://ortgies.it/blog/2015/10/hello-world" />
            <id>https://ortgies.it/1</id>
            <author>
                <name><![CDATA[Jan-Eric]]></name>
                <email><![CDATA[janeric@ortgies.it]]></email>

            </author>
            <summary type="html">
                <![CDATA[Erster Blogeintrag.
<h3><strong>Hello World!</strong></h3>
<p>Erster Eintrag auf meinem (selbstgeschriebenem) Blogsystem.</p>]]>
            </summary>
                                    <updated>2016-01-11T21:09:39+01:00</updated>
        </entry>
            <entry>
            <title><![CDATA[How To: Install XenServer 7 on a Dedibox (Online.net)]]></title>
            <link rel="alternate" href="https://ortgies.it/blog/2016/06/how-to-install-xenserver-7-on-a-dedibox-online-net" />
            <id>https://ortgies.it/6</id>
            <author>
                <name><![CDATA[Jan-Eric]]></name>
                <email><![CDATA[janeric@ortgies.it]]></email>

            </author>
            <summary type="html">
                <![CDATA[XenServer 7 installation on a Online.net Dedibox via PXE boot using an answerfile.
<h2>XenServer Installation</h2>
<h3>Requirements</h3>
<ul>
<li>Webserver</li>
<li>XenServer ISO (http://downloadns.citrix.com.edgesuite.net/11616/XenServer-7.0.0-main.iso)</li>
</ul>
<p>At first install a minimal OS (ie. Debian/Ubuntu) on your Dedibox. When the installation is finished, log into this server and take a note of the network configuration. You will need the IP, Gateway and Subnet mask.</p>
<h3>Download and Unzip XenServer ISO</h3>
<pre><code>wget http://downloadns.citrix.com.edgesuite.net/11616/XenServer-7.0.0-main.iso
mount -o loop XenServer-7.0.0-main.iso /mnt/xen
cp -a /mnt/xen /var/www</code></pre>
<h3>Generate Answerfile</h3>
<p>Here is an example of a Answerfile for XenServer 7.</p>
<p><em>Make sure to double check your IP, Gateway and Subnet mask, otherwise you won't be able to contact your server after the installation.</em></p>
<pre>&lt;installation mode="fresh" srtype="lvm"&gt;
	&lt;primary-disk gueststorage="yes"&gt;sda&lt;/primary-disk&gt;
	&lt;keymap&gt;de&lt;/keymap&gt;
	&lt;hostname&gt;xenserver7&lt;/hostname&gt;
	&lt;root-password&gt;supersecure&lt;/root-password&gt;
	&lt;source type ="url"&gt;http://x.x.x.x/xen/&lt;/source&gt;
	&lt;!-- No Post install scripts configured --&gt;
	&lt;admin-interface name="eth0" proto="static"&gt;
		&lt;ip&gt;x&lt;/ip&gt;
		&lt;subnet-mask&gt;x&lt;/subnet-mask&gt;
		&lt;gateway&gt;x&lt;/gateway&gt;
	&lt;/admin-interface&gt;
	&lt;nameserver&gt;8.8.8.8&lt;/nameserver&gt;
	&lt;nameserver&gt;8.8.4.4&lt;/nameserver&gt;
	&lt;timezone&gt;Europe/Berlin&lt;/timezone&gt;
	&lt;time-config-method&gt;ntp&lt;/time-config-method&gt;
	&lt;ntp-servers&gt;ntp&lt;/ntp-servers&gt;
	&lt;ntpservers&gt;0.de.pool.ntp.org&lt;/ntpservers&gt;
	&lt;ntpservers&gt;1.de.pool.ntp.org&lt;/ntpservers&gt;
	&lt;ntpservers&gt;2.de.pool.ntp.org&lt;/ntpservers&gt;
&lt;/installation&gt;
</pre>
<p>Copy the Answerfile into the root of the extracted ISO (in our case <code>/var/www/xen/xenserver.xml</code>).</p>
<h3>Preparations for PXE boot on Dedibox</h3>
<p>On your Dedibox download some files which are needed for the installation.</p>
<pre><code>cd /boot
wget http://your-webserver.com/xen/install.img
wget http://your-webserver.com/xen/boot/vmlinuz
wget http://your-webserver.com/xen/boot/xen.gz</code></pre>
<p>Now customize your grub.cfg, it should look like this:</p>
<pre><code>menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-444013cc-90fd-4603-8fff-27f166e9f156' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  444013cc-90fd-4603-8fff-27f166e9f156
	else
	  search --no-floppy --fs-uuid --set=root 444013cc-90fd-4603-8fff-27f166e9f156
	fi
	<b>multiboot /xen.gz dom0_mem=1024M acpi=off nosmp noirqbalance
	module /vmlinuz answerfile=http://&lt;IP of the remote server&gt;/xen/xenserver.xml install
	module /install.img</b>
}</code></pre>
<p>Note: you need to insert an IP address, so watch out when using&nbsp;virtual hosts.</p>
<h3>Reboot</h3>
<p>Now reboot your server, the installation should start after a few minutes.</p>
<p>You can check your webserver log i.e. via&nbsp;<code>tail -f /var/log/nginx/access.log</code> and if you see something like this the installation should&nbsp;have started.</p>
<pre>163.172.x.y - - [25/Jun/2016:15:26:46 +0200] "GET /xen/xenserver.xml HTTP/1.1" 200 772 "-" "Python-urllib/2.7"
163.172.x.y - - [25/Jun/2016:15:26:48 +0200] "GET /xen/.treeinfo HTTP/1.1" 200 83 "-" "Python-urllib/2.7"
163.172.x.y - - [25/Jun/2016:15:26:48 +0200] "GET /xen/repodata/repomd.xml HTTP/1.1" 200 3708 "-" "Python-urllib/2.7"</pre>
<p>After about 30 minutes you should see the XenServer 7 Welcome Page when you try to access your servers IP via any browser.</p>
<p>You can now connect to your newly installed XenServer via XenCenter (or just use <a href="https://xen-orchestra.com">XenOrchestra</a> :P).</p>]]>
            </summary>
                                    <updated>2016-06-26T00:51:33+02:00</updated>
        </entry>
            <entry>
            <title><![CDATA[Importing a gluon .img file into Proxmox]]></title>
            <link rel="alternate" href="https://ortgies.it/blog/2020/02/importing-a-gluon-img-file-into-proxmox" />
            <id>https://ortgies.it/7</id>
            <author>
                <name><![CDATA[Jan-Eric]]></name>
                <email><![CDATA[janeric@ortgies.it]]></email>

            </author>
            <summary type="html">
                <![CDATA[Small reminder on how to set up a Proxmox VM from a gluon (Freifunk) image file.
<p><p>This is just a small note to myself on how to set up a Freifunk Node from the gluon&nbsp;x86-generic.img.</p><p>Log in on your Proxmox Node and fetch the img file and unzip it:</p><pre>wget <a href="https://jenkins.bremen.freifunk.net/job/gluon-site-ffhb/lastSuccessfulBuild/artifact/gluon/output/images/factory/gluon-ffhb-2019.1.1+bremen2-1-g87a21dd-x86-generic.img.gz">https://jenkins.bremen.freifunk.net/job/gluon-site-ffhb/lastSuccessfulBuild/artifact/gluon/output/images/factory/gluon-ffhb-2019.1.1+bremen2-1-g87a21dd-x86-generic.img.gz</a>
gunzip gluon-ffhb-2019.1.1+bremen2-1-g87a21dd-x86-generic.img.gz</pre>Create a VM on your Proxmox Node, don't insert any ISO. Disk settings does not matter as we will delete it anyway later on.</p><p>When done, remember the VM id and import the unzipped img file to the corresponding VM:</p><pre>qm importdisk 123 <u>gluon-ffhb-2019.1.1+bremen2-1-g87a21dd-x86-generic.img</u> local-lvm<br></pre><p>In your VM hardware options, detach the current active disk and delete it. Double click on the "Unused disk" and set it as ide0.</p><p>Done, after starting the VM up it should boot into gluon.</p>]]>
            </summary>
                                    <updated>2020-02-27T14:16:40+01:00</updated>
        </entry>
    </feed>
