<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cobra's bits (Posts about virtual-machines)</title><link>https://cobra.pdes-net.org</link><description></description><atom:link href="https://cobra.pdes-net.org/categories/virtual-machines.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:najahannah@gmail.com"&gt;Cobra&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="../images/by-nc-sa.svg"&gt;&lt;/a&gt;</copyright><lastBuildDate>Wed, 01 May 2024 12:19:59 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Virtual Arch for the VPN</title><link>https://cobra.pdes-net.org/posts/virtual-arch-for-the-vpn.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;Connecting to a VPN is usually like picking up your device and tossing it into another network, figuratively speaking. All of your network activities – such as browsing, fetching private mails, chatting with a friend on IRC – will take place within this virtual network, or not at all: in its most secure configuration, access to resources on the local area network will not be possible. I thus prefer to separate my real private network activities from those in the virtual private network by using a virtual guest dedicated to nothing but connecting to the latter and doing whatever I need to do within the guest system.&lt;/p&gt;
&lt;p&gt;In the present case, I'm fortunate that my employer now uses a gateway whose VPN client (Palo Altos's GlobalProtect) runs even on an up-to-date Arch installation. So my choice for the guest system is an out-of-the-box &lt;a class="reference external" href="https://cobra.pdes-net.org/archbang.org"&gt;ArchBang&lt;/a&gt; that comes with i3 as (tiling) Window manager. It installs in 10 min, comes with everything I need, and fits in 5 GB of space. I spent another 5 min modifying the wallpaper and the conky instance – my idea was to have a visual indication in form of my IP whether or not I'm connected to the VPN.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://cobra.pdes-net.org/images/virtualarch_95.webp"&gt;
&lt;img alt="../images/virtualarch_95.webp" class="align-center" src="https://cobra.pdes-net.org/images/virtualarch_95.webp" style="width: 800px;"&gt;
&lt;/a&gt;
&lt;div class="line-block"&gt;
&lt;div class="line"&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;After configuring everything to my liking, it turned out that I shouldn't have bothered – our IT guys configured the VPN with &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Split_tunneling"&gt;split tunneling&lt;/a&gt; enabled. This basically means that only traffic destined to the remote location passes through the encrypted tunnel, while everything else uses the standard gateway. Supposedly less secure, but certainly much more convenient. Excellent choice! I'm sure I'll find another use for my virtual Arch – be it for testing or online banking.&lt;/p&gt;</description><category>archlinux</category><category>virtual-machines</category><guid>https://cobra.pdes-net.org/posts/virtual-arch-for-the-vpn.html</guid><pubDate>Sun, 05 Nov 2023 14:02:40 GMT</pubDate></item><item><title>Tallyho</title><link>https://cobra.pdes-net.org/posts/tallyho.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;Recently, I've had a hard time with my virtual machines (VMs). With the update to kernel 5.8, starting any of them caused my entire system to &lt;a class="reference external" href="https://bbs.archlinux.org/viewtopic.php?id=258217"&gt;lockup&lt;/a&gt; so that even the &lt;a class="reference external" href="https://cobra.pdes-net.org/posts/o-tempora-o-mores.html"&gt;magic sysrequest&lt;/a&gt; didn't help. The problem persisted from August 15th to September 9th when it was finally solved by virtualbox 6.2.14. After the update, I immediately tended to my VMs to update them.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;CentOS: 0.012 packages – check.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Debian: 123 packages – check.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Archlinux: 123456 packages – ch... wait a sec, login incorrect after reboot?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;My physical installations of Arch didn't exhibit such an attitude, which I thus suspected to be related to the virtualbox-guest addons of Arch (since the virtual CentOS and Debian were also behaving properly). I was wrong.&lt;/p&gt;
&lt;p&gt;PAM had been updated to version 1.4, dropping support &lt;a class="reference external" href="https://bugs.archlinux.org/task/67641"&gt;for the long deprecated tally module&lt;/a&gt;. My virtual Arch, however, is from &lt;a class="reference external" href="https://cobra.pdes-net.org/posts/browser-appliance.html"&gt;2009&lt;/a&gt;, and my /etc/pam.d/login indeed referenced this module. But there was also a login.pacnew that would have corrected this issue if I only would have bothered to handle 'pacnew' files as &lt;a class="reference external" href="https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave"&gt;advised&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“These files require manual intervention from the user and it is good practice to handle them right after every package upgrade or removal. If left unhandled, improper configurations can result in improper function of the software or the software being unable to run altogether.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I hate being in the corner with the criminally stupid, but there I am. I'll try the &lt;a class="reference external" href="https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave#pacman_hook"&gt;pacman hook&lt;/a&gt; in the future.&lt;/p&gt;</description><category>archlinux</category><category>virtual-machines</category><guid>https://cobra.pdes-net.org/posts/tallyho.html</guid><pubDate>Sat, 19 Sep 2020 14:41:52 GMT</pubDate></item><item><title>TCAD station, part I</title><link>https://cobra.pdes-net.org/posts/tcad-station-part-i.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;You certainly know the old tune on the lack of “professional” software for Linux, with “professional“ being usually an implicit synonym for Microsoft Office and the Adobe Creative Suite. For a scientist or engineer, people joining this chorus appear to be misinformed and to be motivated by ideology rather than reality. In technically oriented fields, software is in fact mostly cross-platform or even developed primarily for Linux. That's true in particular for multithreaded software with non-negligible demands for computational resources and five- to six-figures price tags. Examples include &lt;a class="reference external" href="https://en.wikipedia.org/wiki/JCMsuite"&gt;Maxwell solvers,&lt;/a&gt; &lt;a class="reference external" href="https://en.wikipedia.org/wiki/COMSOL_Multiphysics"&gt;multiphysics solutions,&lt;/a&gt; and &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Technology_CAD"&gt;TCAD packages&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Commercial software for Linux is usually certified only for one of the enterprise Linux distributions, namely, &lt;a class="reference external" href="https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux"&gt;Redhat&lt;/a&gt; and &lt;a class="reference external" href="https://www.suse.com/products/server/"&gt;SUSE&lt;/a&gt; Enterprise Linux (RHEL and SLES). Some of this products turn out to be actually distribution-agnostic, meaning that they run without any problems also on, e.g., Debian. But in many other cases, the software only runs and even only installs on systems with the distribution it was developed for. I've learned that the hard way, wasting an entire day trying to get the commercial finite-difference time-domain simulation package &lt;a class="reference external" href="https://www.lumerical.com/tcad-products/fdtd/"&gt;FDTD solutions&lt;/a&gt; to work under Debian Stretch. In the end, we've used &lt;a class="reference external" href="http://ab-initio.mit.edu/wiki/index.php/Meep"&gt;Meep&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;I've vowed that this wouldn't happen again, and since we are in the process to evaluate some selected TCAD solutions (all of which are certified for RHEL only), it seemed to be wise to set up a test server running &lt;a class="reference external" href="https://www.centos.org/"&gt;CentOS&lt;/a&gt; (a binary-compatible clone of RHEL). The TCAD software requires a graphical interface, but I did not intend to perform a standard installation, which results in a complete Gnome desktop suitable for a workstation rather than a compute server. For servers, I prefer the installation to be as lightweight as possible. For example, I usually install the &lt;a class="reference external" href="http://pdes-net.org/cobra/posts/xserver.html"&gt;tiling window manager wmii&lt;/a&gt; if a graphical interface is required or desirable on a server.&lt;/p&gt;
&lt;p&gt;Since I'm not at all familiar with CentOS and the available software, I decided to first set up a virtual machine to look for possible pitfalls. For the base instalIation, I've downloaded and installed the &lt;a class="reference external" href="http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso"&gt;minimal ISO&lt;/a&gt; which I've then, upon first boot, updated with:&lt;/p&gt;
&lt;pre class="literal-block"&gt;yum update
grub2-mkconfig -o /boot/grub2/grub.cfg&lt;/pre&gt;
&lt;p&gt;Why the reconfiguration of grub? Well, the update installed a new kernel, but CentOS did not automatically update the grub configuration file. Weird, but true.&lt;/p&gt;
&lt;p&gt;CentOS offers three tiling window manager, two of which I'm familiar with: i3 and xmonad (never even heard about spectrwm). On second thought, however, I realized that it may be a better idea to install a more conventional desktop to give the TCAD testers an environment they feel comfortable with. XFCE seemed to be a reasonable compromise and can be installed &lt;a class="reference external" href="https://www.rootusers.com/how-to-install-xfce-gui-in-centos-7-linux/"&gt;with these few steps:&lt;/a&gt;&lt;/p&gt;
&lt;pre class="literal-block"&gt;yum install epel-release -y
yum groupinstall "X Window System" -y
yum groupinstall "Xfce" -y
systemctl get-default
systemctl set-default graphical.target
systemctl isolate graphical.target&lt;/pre&gt;
&lt;p&gt;The last step seamlessly starts the X Window system and thus catapults one into the graphical desktop. Slick! Now we only want a resolution higher than the oldfashioned 1024x768 offered by the default (VESA) driver. In other words, we need to install the Virtualbox &lt;a class="reference external" href="https://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest"&gt;guest additions:&lt;/a&gt;&lt;/p&gt;
&lt;pre class="literal-block"&gt;yum install dkms
yum groupinstall "Development Tools"&lt;/pre&gt;
&lt;p&gt;To install the guest additions, I first inserted the 'Guest Additions CD Image' in the 'Devices' menu and then downloaded the image. After the download, I mounted the image and compiled the guest additions:&lt;/p&gt;
&lt;pre class="literal-block"&gt;mkdir /media/vboxadditions
mount /dev/cdrom /media/vboxadditions
cd `/media/vboxadditions &amp;lt;file:///home/cobra/Documents/media/vboxadditions&amp;gt;`_
./VBoxLinuxAdditions.run
reboot&lt;/pre&gt;
&lt;p&gt;Still no higher display resolutions available? The script in &lt;a class="reference external" href="https://superuser.com/questions/750382/how-to-change-resolution-of-centos-6-5-resolution-on-virtualbox-host-win7"&gt;this thread&lt;/a&gt; enabled me to activate the 'Auto-resize Guest Display' option in the 'View' menu, which finally allowed me to use the desired full HD resolution (on a WQHD monitor):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code bash"&gt;&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-1" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-1" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-1"&gt;&lt;/a&gt;&lt;span class="ch"&gt;#!/bin/bash&lt;/span&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-2" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-2" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-2"&gt;&lt;/a&gt;&lt;span class="nv"&gt;Diplay_Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;xrandr&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;grep&lt;span class="w"&gt; &lt;/span&gt;connected&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;cut&lt;span class="w"&gt; &lt;/span&gt;-d&lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-f1&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-3" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-3" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-3"&gt;&lt;/a&gt;&lt;span class="nv"&gt;Display_Spec&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;cvt&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1920&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1080&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;grep&lt;span class="w"&gt; &lt;/span&gt;Modeline&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;cut&lt;span class="w"&gt; &lt;/span&gt;-d&lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-f2&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;cut&lt;span class="w"&gt; &lt;/span&gt;-d&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'"'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-f2&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-4" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-4" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-4"&gt;&lt;/a&gt;&lt;span class="nv"&gt;Display_Params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;cvt&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1920&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1080&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;grep&lt;span class="w"&gt; &lt;/span&gt;Modeline&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;cut&lt;span class="w"&gt; &lt;/span&gt;-d&lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-f2-18&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;sed&lt;span class="w"&gt; &lt;/span&gt;s/&lt;span class="s1"&gt;'"'&lt;/span&gt;//g&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-5" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-5" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-5"&gt;&lt;/a&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-6" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-6" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-6"&gt;&lt;/a&gt;xrandr&lt;span class="w"&gt; &lt;/span&gt;--newmode&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$Display_Params&lt;/span&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-7" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-7" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-7"&gt;&lt;/a&gt;xrandr&lt;span class="w"&gt; &lt;/span&gt;--addmode&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$Diplay_Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$Display_Spec&lt;/span&gt;
&lt;a id="rest_code_183ded0b90ee45239b2dd9ec172979a3-8" name="rest_code_183ded0b90ee45239b2dd9ec172979a3-8" href="https://cobra.pdes-net.org/posts/tcad-station-part-i.html#rest_code_183ded0b90ee45239b2dd9ec172979a3-8"&gt;&lt;/a&gt;xrandr&lt;span class="w"&gt; &lt;/span&gt;--output&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$Diplay_Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--mode&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$Display_Spec&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In the second part of this post, I will write about the installation of CentOS on the physical server we have reserved for the evaluation stage. From the (largely) pleasant experience with the virtual machine, I expected this task to be entirely straightforward. I thought to be done in an hour, including configuration of user accounts as well as the sshd and vncd daemons for remote access. Well ... it took more than one day. Stay tuned. 😉&lt;/p&gt;</description><category>centos</category><category>desktop</category><category>linux</category><category>virtual-machines</category><guid>https://cobra.pdes-net.org/posts/tcad-station-part-i.html</guid><pubDate>Mon, 01 May 2017 12:00:17 GMT</pubDate></item><item><title>Goodbye Windows</title><link>https://cobra.pdes-net.org/posts/goodbye-windows.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;Because of my &lt;a href="https://cobra.pdes-net.org/posts/vpn-how-to-complicate-your-life.html" title="depressing experiences"&gt;depressing experiences&lt;/a&gt; when trying to connect to our Cisco-based VPN under Linux, I've so far used a virtual Windows XP and the IPSec 'vpnclient' from Cisco. Since the end of Windows XP is nigh, I had to find an alternative.&lt;/p&gt;
&lt;p&gt;In the meantime, we have enabled SSL support on our Cisco ASA to allow users running a 64 bit Windows 7 to connect to the VPN using the Cisco 'AnyConnect' SSL client. Of course, acquiring a Windows license just to connect to the VPN was not an option for me. I would either be able using open-source software or not be able to connect at all.&lt;/p&gt;
&lt;p&gt;I've quickly found that '&lt;a href="http://en.wikipedia.org/wiki/OpenConnect" title="openconnect"&gt;openconnect&lt;/a&gt;' is held in high regard in the interwebs, and decided to give it a try on a virtual Debian Jessie:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;su -
wajig install openconnect
openconnect -c certificate_bundle.p12 https://gateway.de
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Bang, connected, and all services work.&lt;/p&gt;
&lt;p&gt;Unbelievable! Finally!&lt;/p&gt;
&lt;p&gt;I've found that the direct use of the PKCS#12 certificate bundle works with Debian Jessie, but not with Arch, for which the certificate bundle has to be split into the x509 certificate and the pk8 private key in pem format using &lt;a href="https://stackoverflow.com/questions/9497719/how-to-extract-a-public-private-key-from-a-pkcs12-file-with-openssl-for-later-us" title="openssl"&gt;openssl&lt;/a&gt;. But that's perfectly ok, since I anyway value the convenience of connecting to the VPN with a virtual machine without the necessity to disrupt my standard connection to the internet via QSC.&lt;/p&gt;</description><category>debian</category><category>encryption</category><category>linux</category><category>virtual-machines</category><category>windows</category><guid>https://cobra.pdes-net.org/posts/goodbye-windows.html</guid><pubDate>Sun, 16 Mar 2014 11:11:15 GMT</pubDate></item><item><title>No post-MBR gap</title><link>https://cobra.pdes-net.org/posts/no-post-mbr-gap.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;A &lt;a href="https://www.archlinux.org/news/binaries-move-to-usrbin-requiring-update-intervention/" title="recent update of Archlinux"&gt;recent update of Archlinux&lt;/a&gt; moved all binaries to /usr/bin. The update was smooth on my main system, but for my &lt;a href="https://cobra.pdes-net.org/posts/browser-appliance.html" title="4 years old virtual Arch"&gt;4 years old virtual Arch&lt;/a&gt;, a 'pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -' revealed that grub 0.97 required a fix.&lt;/p&gt;
&lt;p&gt;I could have installed &lt;a href="https://aur.archlinux.org/packages/grub-legacy/" title="grub-legacy from the AUR,"&gt;grub-legacy from the AUR,&lt;/a&gt; but that idea struck me as a rather backwardish one. Since I learned to really like syslinux from my main system, I installed this modern bootloader instead. Upon a reboot I was greeted with "no operating system found". Hm.&lt;/p&gt;
&lt;p&gt;I soon learned that the problem originated from the fact that my /boot partition starts with sector 1. Well, just like fdisk partitioned a few years ago. Now, I could have &lt;a href="https://wiki.archlinux.org/index.php/GUID_Partition_Table#Convert_from_MBR_to_GPT" title="converted the partition to GPT,"&gt;converted the partition to GPT,&lt;/a&gt; but I didn't like that idea too much either. Instead, I tried grub2, only to get rebuffed once more: "no post-MBR gap; embedding won't be possible". Aarghhh!&lt;/p&gt;
&lt;p&gt;Finally, it was the &lt;a href="http://wiki.gentoo.org/wiki/GRUB2#No_post-MBR_gap" title="Gentoo Wiki"&gt;Gentoo Wiki&lt;/a&gt; which told me what to do: "If you really want blocklists, use --force." A 'grub-install /dev/sda --force' later, my virtual Arch is up-to-date and thus again as new and shiny as in the beginning.&lt;/p&gt;</description><category>archlinux</category><category>virtual-machines</category><guid>https://cobra.pdes-net.org/posts/no-post-mbr-gap.html</guid><pubDate>Sun, 16 Jun 2013 14:38:09 GMT</pubDate></item><item><title>Adiposity</title><link>https://cobra.pdes-net.org/posts/adiposity.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;A Windows XP I've installed in &lt;a href="http://www.virtualbox.org/" title="VirtualBox"&gt;VirtualBox&lt;/a&gt; perhaps two years ago grew so much in size by updates alone that the 5 GB system partition became too small. Since my virtual Windows 7 broke from installing the Cisco 64 bit vpnclient and had to be deleted, I needed to act. No, deleting the files left from updates isn't a good idea. I did that after installing the .Net framework, and now I neither can update the framework, nor can I uninstall or reinstall that crap.&lt;/p&gt;
&lt;p&gt;How to expand the disk in VirtualBox? First, create a new harddisk with the desired size (I've chosen three times the size of the old one) in the "Storage" menu of VirtualBox. Next, clone your old disk by the following command:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;VBoxManage clonehd –existing old_hard_disk.vdi new_hard_disk.vdi
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Select the new disk under "Storage", and resize the partitions. I used &lt;a href="http://gparted.sourceforge.net/livecd.php" title="gparted"&gt;gparted&lt;/a&gt; to do that since the Windows tools are either not able to do that or too difficult to use (gparted was also my tool of choice prior to installing Windows 7, which is unable to create more than 3 logical partitions).&lt;/p&gt;
&lt;p&gt;I know that I'm a complete idiot when it comes to Windows, but how can anybody not be, if one's mind is based on rational grounds? It all seems so horribly twisted and bizarre.&lt;/p&gt;</description><category>virtual-machines</category><category>windows</category><guid>https://cobra.pdes-net.org/posts/adiposity.html</guid><pubDate>Sun, 06 Mar 2011 13:31:03 GMT</pubDate></item><item><title>Small and smaller</title><link>https://cobra.pdes-net.org/posts/small-and-smaller.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;For those of you who are interested in a really slim window manager: try &lt;a href="http://dwm.suckless.org/"&gt;dwm&lt;/a&gt;, the small brother of &lt;a href="http://wmii.suckless.org/"&gt;wmii.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;90 kB, and thats already with dmenu, which brings dwm very close in functionality to its big brother. 😊 &lt;/p&gt;
&lt;p&gt;By the way: I've solved these mysterious crashes of Arch when returning from wmii (or dwm) to the console. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reason&lt;/strong&gt;: a faulty xorg.conf. &lt;br&gt;
&lt;strong&gt;Precise origin&lt;/strong&gt;: not yet known.&lt;br&gt;
&lt;strong&gt;Speculation&lt;/strong&gt;: Not possible. Insufficient data. &lt;br&gt;&lt;/p&gt;
&lt;p&gt;Data are acquired as we speak, Captain. &lt;img alt="crazy bugger" src="https://cobra.pdes-net.org/images/zany_face_small.png"&gt;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: after checking all possible combinations of modules, here the final and disappointing result: I haven't got a clue. I'd say that my previous xorg.conf contained a non-printable character, but vim would show me (and a 'ga' over the character would even show the code). Let's say it was an anomaly and nobodys fault. A cosmic particle...or, an X-file case, if you prefer that. 😄&lt;/p&gt;</description><category>linux</category><category>virtual-machines</category><guid>https://cobra.pdes-net.org/posts/small-and-smaller.html</guid><pubDate>Sat, 19 Dec 2009 17:29:48 GMT</pubDate></item><item><title>This is the end of Opera</title><link>https://cobra.pdes-net.org/posts/this-is-the-end-of-opera.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;I've &lt;a href="https://cobra.pdes-net.org/posts/no-internet-plugin.html"&gt;predicted previously&lt;/a&gt; that Javascript perfomance will be a decisive criterion for the acceptance of browsers in the near future. I erred in the time frame for the future, however.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-driver.html"&gt;Javascript&lt;/a&gt; performance is of relevance here and now. Yesterday, I went shopping for my new gaming rig. Most online shops heavily rely on Javascript for their PC configurators -- as an example, see the configurator of &lt;a href="http://www.alternate.de/html/pcbuilder/circleView.html?cn=1&amp;amp;tn=BUILDERS"&gt;Alternate&lt;/a&gt;. When configuring a system, I often switch between the actual configurator, the product overview and the users ratings. Using Opera 10.01 on my Core 2 Duo E6600 with 8 GB of RAM, the resulting browsing experience was unbearably slow.&lt;/p&gt;
&lt;p&gt;I then switched to Midori and could hardly believe my eyes ... with or without Javascript seems to make no difference for this browser. See, that's how it's done! &lt;a href="http://www.premiere.com/List/The-100-Greatest-Movie-Lines/96.-Yippie-kay-yay-mother-!-er."&gt;Yippie-ka-yay, Opera 😄 &lt;/a&gt;&lt;/p&gt;
&lt;table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Midori 0.2.0&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;586.4 ms +/- 17.2%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Safari 4.0.4 531.21.10&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows 7, VirtualBox
3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;613.0 ms +/- 57.7%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Iron 3.0.197.0&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows XP SP3, VirtualBox
3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;819.4 ms +/- 16.3%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Midori 0.2.1&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;ArchLinux 2.6.31 x86_64,
VirtualBox 3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;880.8 ms +/- 4.5%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;FF 3.7 alpha&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;1580.4ms +/- 3.5%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Konqueror 4.3&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;2214.2 ms +/- 2.8%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;FF 3.5.5&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;2274.8ms +/- 2.9%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;FF 3.7 alpha&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;ArchLinux 2.6.31 x86_64,
VirtualBox 3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;3579.2 +/- 5.9%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Opera 10.10 1893&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;4428.8ms +/- 4.3%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Opera 10.01 1844&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows 7, VirtualBox
3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;4761.4 ms +/- 9.6%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Opera 10.01 1844&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows NT 4 SP 6, VMWare Player
2.5.3&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;5015.0 ms +/- 1.4%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;FF 3.5.5 (Arch build)&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;ArchLinux 2.6.31 x86_64,
VirtualBox 3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;5828.0 ms +/- 16.1%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;FF 3.5.4 (Suse build)&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;OpenSuse 11.2, VirtualBox
3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;5872.0 ms +/- 7.4%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;&lt;del&gt;Opera 10.01
4682&lt;/del&gt;&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;&lt;del&gt;native&lt;/del&gt;&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;&lt;del&gt;6229.8ms +/-
4.7%&lt;/del&gt;&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;FF 3.5.5 (Mandriva
build)&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;6238.4ms +/- 1.1%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;IE 8.0 6001.18702&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows XP SP3, VirtualBox
3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;6418.4 ms +/- 6.9%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;IE 8.0 7100&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows 7, VirtualBox
3.0.12&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;6999.8 ms +/- 14.4%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;Seamonkey 1.1.17&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;native&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;11945.2 ms +/- 12.0%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="vertical-align: top;"&gt;IE 6.0&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;Windows NT 4 SP6, VMWare Player
2.5.3&lt;br&gt;&lt;/td&gt;
&lt;td style="vertical-align: top;"&gt;62990.4 ms +/- 1.8%&lt;br&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Native means: Mandriva 2010.0 x86_64 on a Core 2 Duo E6600 and 8 GB RAM. For comparison: Chromium 4.0.252 on my Mini (Ubuntu Karmic on an Atom N270) needs 2216.8 ms to complete the test. Faster than all non-Webkit browsers on my main machine ...&lt;/p&gt;
&lt;p&gt;Webkit-based browsers are by far the fastest, beating Gecko by a factor of three and Presto almost by an order of magnitude. This performance difference is quite perceptible in everyday applications as outlined above. What's more: in comparison to my &lt;a href="https://cobra.pdes-net.org/posts/browser-snapshot.html"&gt;last browser snapshot&lt;/a&gt;, both Webkit and Gecko improved their Javascript performance. Opera, instead, is getting worse.&lt;/p&gt;
&lt;p&gt;For years Opera talked about a &lt;a href="http://en.wikipedia.org/wiki/Just-in-time_compilation"&gt;JIT&lt;/a&gt; for Javascript in the 'next' version. Now, Opera is the only browser (besides IE) to &lt;em&gt;not&lt;/em&gt; have this feature. "The fastest browser on earth" is a long time ago ...&lt;/p&gt;
&lt;p&gt;On a sidenote: Mandriva seems to provide particularly slow builds (see FF 3.5.5, Mandriva build). That, of course, makes me particularly happy. 😞&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: I forgot to switch off adsweep (wich costs a lot of perfomance, since it is a Javascript 😉 ) in the native Opera test. The new values are consistent with those obtained in the virtual machine, but don't change any of the statements above.&lt;/p&gt;</description><category>thoughts</category><category>virtual-machines</category><category>web</category><guid>https://cobra.pdes-net.org/posts/this-is-the-end-of-opera.html</guid><pubDate>Sat, 21 Nov 2009 09:38:33 GMT</pubDate></item><item><title>As always</title><link>https://cobra.pdes-net.org/posts/as-always.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;What will create trouble when updating to a new system? Non-FOSS. You can take that to the bank.&lt;/p&gt;
&lt;p&gt;If it's not the &lt;a href="https://cobra.pdes-net.org/posts/vpn_how_to_complicate_your_life.html"&gt;greatest&lt;/a&gt; vpn client of all time, its vmware, the greatest virtualization solution on the planet *cough*.&lt;/p&gt;
&lt;p&gt;This time, vmplayer 2.5.3 actually starts up despite kernel 2.6.31. But the guest system is unable to grab the mouse.&lt;/p&gt;
&lt;p&gt;Turns out that the version of gtk is "wrong", and the solution is to tell the player to use its own (why isn't that the default anyway?):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;VMWARE_USE_SHIPPED_GTK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;force&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Add that to /usr/bin/vmplayer, and you're done. Until the next kernel update.&lt;/p&gt;
&lt;p&gt;Update: Just as I said, till the next kernel update. Just did one, and vmware can't find the kernel headers anymore. The solution is simple: comment the above line, compile the modules, comment it out again.&lt;/p&gt;</description><category>linux</category><category>virtual-machines</category><guid>https://cobra.pdes-net.org/posts/as-always.html</guid><pubDate>Sat, 03 Oct 2009 19:54:37 GMT</pubDate></item><item><title>Consequence</title><link>https://cobra.pdes-net.org/posts/consequence.html</link><dc:creator>Cobra</dc:creator><description>&lt;p&gt;Remember the &lt;a href="https://cobra.pdes-net.org/posts/vpn-how-to-complicate-your-life.html"&gt;Cisco vpnclient&lt;/a&gt;?&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;urpme vpnclient-4.8.01.0640-3mdv2009.0 dkms-vpnclient-4.8.01.0640-3mdv2009.0
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Oh yes.&lt;/p&gt;
&lt;p&gt;And on the other hand:&lt;/p&gt;
&lt;p&gt;&lt;img alt="cisco on windows" src="https://cobra.pdes-net.org/images/cisco.png"&gt;&lt;/p&gt;
&lt;p&gt;If you think about it, that's the only way to go. Gutter to gutter, trash to trash.&lt;/p&gt;
&lt;p&gt;PS: After one day of usage, I actually like it. My main system is unaffected, and runs the "normal" connection. In parallel and a VirtualBox, Windows offers the encrypted connection to my office. Not bad at all.&lt;/p&gt;</description><category>encryption</category><category>virtual-machines</category><category>web</category><guid>https://cobra.pdes-net.org/posts/consequence.html</guid><pubDate>Sat, 11 Jul 2009 17:26:28 GMT</pubDate></item></channel></rss>