My tips&tricks, feedbacks and best practices around Drupal, virtualization and Ubuntu.

Provisioning virtual machines for KVM

I describe here an automated installation procedure to easily create Ubuntu virtual servers on the KVM hypervisor, using vmbuilder.

All the attributes of the virtual server will be defined in configuration files, so we will be able to reproduce and tune our server configurations later. Using this technique, complete server stacks can be provisioned. In this example we will create a virtual server for Drupal development. We apply some performance tuning for the install process, and the automated install of a new Drupal developer server can happen in 10 Minutes.

You will need an Ubuntu box with KVM and other tools for this exercise. How to get the proper environment with KVM working on Ubuntu 9.10, check this Howto.

KVM install on Ubuntu 9.10

How to install KVM (Kernel Virtual Machine) on Ubuntu 9.10 (Karmic Koala), 64 bit edition (x86_64).

We implement here the virtualisation philosophy of Ubuntu: we use KVM as backend virtualisation technology, libvirt as its toolkit/API, and the frontends for managing VMs include will be virt-manager (GUI) and virsh (CLI).

VMware Server 2 install on Ubuntu 9.04

How to install VMware Server 2.0.1 (build 156745) on Ubuntu 9.04 (Jaunty Jackalope).

Go to the VMware download page. Login or register, and you also get two license keys: one for VMware install on Linux hosts, the other one for MS. Download the TAR file for Ubuntu, I use the 32 bit version of VMware Server 2 for Linux Operating Systems.

Then we need to install some Ubuntu packages in order to be able to compile the VMware code:

How to setup Drupal development server from Ubuntu 9.04 server

Even in the Ubuntu Server 9.04 there is a nice LAMP option with Apache, PHP and MySQL, some more steps are necessary to turn Ubuntu Server 9.04 into a real Drupal development environment. After these steps, you will have a development server, where all Drupal versions, unlimited number of domains and development projects can be set up. Use this tutorial to get a more sophisticated Drupal development environment. And don't forget, there is a simple way in Ubuntu 9.04 for Drupal 6: sudo apt-get install drupal6

Drupal 6 and Ubuntu 9.04 Jaunty

static.png
The new Ubuntu version (Ubuntu 9.04 or the Jaunty Jackalope) is coming soon. One of the good news is there is a Jaunty pocket release of Drupal in component universe and section web. So the install of Drupal on Ubuntu 9.04 will be as easy as:

sudo apt-get install drupal6

Thanks for Markus Heberling and Luigi Gangitano!

Drupal LAMP in Virtual Server

With some scripting on Ubuntu 8.10 (Intrepid Ibex) we can simple generate fully customised Drupal LAMP development servers, as virtual appliance to VMware, or to other virtualization environments like XEN or KVM. In this how-to I'll show how to use this method to have various development or test servers in one hardware box running Ubuntu 8.10 and VMware Server 2.0.

I'm using a machine with Ubuntu 8.10 (Intrepid Ibex) and VMware Server 2.0, as my host system. VMware Server 2.0 install on Ubuntu 8.10. can be learned here or here. We will need free IP addresses for the virtual machines, so you will need a properly configured DHCP server or a router, as well.

VMware Server 2 install on Ubuntu 8.10

How to install VMware Server 2 on Ubuntu 8.10 (Intrepid Ibex).

script to start and stop VM guests on VMware server

Even VMware server 2.0 has a nice web GUI on https://localhost:8333/, you can use scripts to start and stop VM guest directly from your terminal.

Before use, you have to set some hard coded parameters, like HOST_USER.


#!/bin/bash
# This script will start/stop/status VMware machine
#
# Written by Ez-Aton
# http://www.tournament.org.il/run
#
# Modified for VMware server 2.0 by doka@wepoca.net
# http://www.wepoca.net
#
#

VMware Server 2 install on Ubuntu 8.04

How to install VMware Server 2 on Ubuntu 8.04 LTS host server.

Drupal development server install

How to install and configure a development server for Drupal projects on Ubuntu 8.04 LTS Server, as a LAMP server in virtual machine.