Fixing “unable to find partition containing kernel” on XenServer with Ubuntu VM

Sometimes an Ubuntu VM doesn’t start up anymore on XenServer. The following error is shown in XenCenter: Error: Starting VM ‘My VM’ – Using <class ‘grub.GrubConf.Grub2ConfigFile’> to parse /grub/grub.cfg – WARNING:root:Unknown directive load_video – WARNING:root:Unknown directive terminal_output – WARNING:root:Unknown directive else – WARNING:root:Unknown directive elif – WARNING:root:Unknown directive else – WARNING:root:Unknown directive else – WARNING:root:Unknown […]

Installing latest version of Puppet on Ubuntu

The latest version of Puppet can be installed on Ubuntu by adding the Puppetlabs repository and then installing the official Puppet package: sudo wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb sudo dpkg -i puppetlabs-release-precise.deb sudo apt-get update sudo apt-get install puppet This will install the latest official version of Puppet. Check the version by issuing this command: puppet –version At […]

Setting Ubuntu hostname as offered by DHCP server

A DHCP server might be setup in such a way that it offers a hostname to its clients. By default, the Ubuntu hostname is set during installation and it disregards the one in the DHCP lease, but we can change this behaviour. Create a file in the /etc/dhcp/dhclient-exit-hooks.d/ directory, for example /etc/dhcp/dhclient-exit-hooks.d/sethostname and give it […]

Installing Ubuntu 10.04 on XenServer 6.0.2 with guest tools

In a previous article a couple of years ago I wrote about the possibility to install the XenServer guest tools on Ubuntu 10.04. The situation has changed for the better with the release of XenServer 6, which supports Ubuntu 10.04 out of the box. Since a lot of people are still referencing the original article […]

Ubuntu 12.04 network configuration

The network configuration of Ubuntu 12.04 has changed a bit, at least the server edition, haven’t checked the desktop version. The file /etc/network/interfaces contains a few directives that tell Ubuntu how to configure the network interfaces. There are basically two choices: dynamic configuration (through a DHCP client) or static configuration. DHCP is quite simple: auto […]

Installing FANN with Python bindings on Ubuntu

The Fast Artificial Neural Network Library (FANN) is a neural network library, which implements multilayer artificial neural networks in C with support for both fully connected and sparsely connected networks. It has a Python binding that allows you to use its functionality from within Python, but with the bits that need speed implemented in C. […]

Installing SqueezeCenter on Ubuntu

After installing a brand new Ubuntu 9.04 Server, add the squeezecenter repository to /etc/apt/sources.list deb http://debian.slimdevices.com stable main Then tell apt to reload everything: sudo apt-get update Now try to install squeezecenter: sudo apt-get install squeezecenter The following seems to be necessary to install MySQL to the machine (which I didn’t select during installation): sudo […]

A Linux NAS setup with software RAID and incremental backup

Characteristics I wanted to make my own Network Attached Storage (NAS) device with the following characteristics: It should have lots of disk space and new disk space should be easy to add. The primary storage should be redundant: if one disk fails, the data should still be there. Important data on the primary storage should […]