Posts with the tag Virtualization


Installing perlbrew is a one-liner:

curl -L | bash

Add this lines to your ~/.bashrc:

source ~/perl5/perlbrew/etc/bashrc

To get a stable perl distribution, do:

perlbrew install stable

To use it, run:

perlbrew list
perlbrew switch perl-5.20.2

To upgrade to the latest stable Perl distribution at a later point:


Read on

Use Middle Mouse Button in a Parallels 6 Virtual Machine running Linux on a MacBook Pro

Sometimes you have to use the middle mouse button, sometimes it's just convenient to do so. Either way, if you want to use it on a virtualised Linux machine on a Parallels 6 (or any other virtualisation software) you can't out-of-the box on a MacBook Pro as the touch pad...

Read on

XEN Virtual Server Improvements

More Loop Devices

To solve this problem:

mount: could not find any free loop device,

you have to increase the number of loop devices:

echo "options loop max_loop=64" > /etc/modprobe.d/local-loop.conf


# Create a file to use as swap with 1024 1MiB blocks (= 1 GiB):

Read on

Start Linux Containers (LXC) at Startup


The built in possibility on Ubuntu / Debian is to change the configuration file /etc/default/lxc:

CONTAINERS="vm0 vm1"

In this example, vm0 and vm1 are LXC configuration files stored or linked in /etc/lxc. These containers will be started at startup.

custom init script /etc/init.d/lxc

Instead of...

Read on

Create an LXC Application Container using libvirt

LXC application containers are good tools to isolate single applications. Instead of directly creating them using lxc-create you can also create them with libvirt / virsh.

If you have dnsmasq installed and running globally you will get into trouble running net-start default. So follow the advice on
Now let's create...

Read on

Install pfSense in KVM on Ubuntu 10.10

The blog post describes how to install the firewall distribution pfSense based on FreeBSD in a kernel based virtual machine (KVM) on Ubuntu 10.10.

Specialities: you either need two NICs or a single one with VLANs as pfSense requires you to define at least one WAN and one LAN interface.

First, get...

Read on

Install FreeBSD 8.1 as a Virtual Machine in KVM on Ubuntu 10.10

Install KVM and libvirt:

sudo apt-get install kvm virtinst libvirt-bin

If you also want the graphical helpers (viewer via vnc and a manager of the installed virtual machines) install:

sudo apt-get install virt-viewer virt-manager

Now set up the connection to the local KVM hypervisor:

sudo virsh connect qemu:///system

Get the...

Read on

Container Virtualization using LXC on Ubuntu

LXC (Linux Containers) is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. LXC does not provide a virtual machine, but rather provides a virtual environment that has its own process and network space. It is similar to a chroot, but offers...

Read on

Launch Ubuntu 10.10 maverick in the EC2 cloud

sudo apt-get install ec2-api-tools
cat <<'EOM' >~/.bashrc
######## modifications by Philipp Klaus:
export EC2_URL=
export EC2_CERT=$HOME/.ssh/amazon-x509_cert-ODKN47NWKLVFADJVDU2PJUEIFHLZSGFJ.pem
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
ec2-authorize default -p 22
ec2-run-instances ami-29b0855d --instance-type t1.micro --region eu-west-1 --key mykey
ec2-add-keypair ec2-keypair > amazon-ec2-keypair.pem
chmod 600 amazon-ec2-keypair.pem

you may now log in using

ssh -i ./amazon-ec2-keypair.pem

Read on

fix bad resolutions with Ubuntu as guest in VMware Fusion 3.1.2

Problem during run of sudo /usr/bin/

Skipping X configuration because X drivers are not included.

This fixed it:

sudo apt-get remove xserver-xorg-video-vmware
sudo apt-get install xserver-xorg-video-vmware

Read on

Install Latest Version of WINE

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3

Read on

Install VirtualBox Non-OpenSource

sudo -i
echo "deb karmic non-free"  >> /etc/apt/sources.list
wget -q -O- | sudo apt-key add -
apt-get update
apt-get install virtualbox-3.0

Read on

VirtualBox Images of Operating Systems

If you would like to get ready-to-run images of preinstalled OSs in VirtualBox images you might want to take a look at the following sites.

Requirements: You have to have Java v6 installed and get the Java software registerimage from

example: damn small linux


Read on

System Emulators / Virtual Environments


[Strg] + [Alt] to release mouse
to boot from an iso image:

qemu -cdrom knoppix.iso -boot d -m 512

to boot from a real cd:

qemu -cdrom /dev/cdrom -boot d -m 512

to set up a hard disk to use with qemu:

qemu -cdrom /dev/cdrom -boot...

Read on