Compiling Xen from source using dpkg

Compiling and installing software from source is used by developers a lot. So using ./configure , make, make install is something we all are well aware of but this is a very messy way to do so because when you uninstall the program it may leave some dependency files in the system or might not work properly when again installed.

I observed this case a lot of times when I use make install. Even sometimes a tried removing extra programs/dependencies manually.
So now I will write about a clean and very good way of installing Xen by source.

Download Xen sourcecode from git.

And run these commands:
#cd xen
#./configure –prefix=/usr
#make debball
#dpkg -i dist/xen-upstream-XXXX

And whenever you want to uninstall it just use.

#dpkg -r xen-upstream
#apt-get purge xen-upstream

And yes you don’t have to worry about any of the dependencies as dpkg will take care of it. πŸ™‚

Creating guests using xl in Xen

This post is about creating guests after Xen is installed. There are several ways to do that. But after using them this is the one that I preferred i.e. creating guest manually using xl. If you want a fancy GUI then one can use virt-manager but that going to create a mess if you installed Xen from source. So if you are installing Xen using source code then this is worth a try. πŸ™‚ My mentors suggested and helped me to try it and I can say its pretty amazing and simple. So the following steps create a guest ubuntu-guest. The following steps create an disk image for the guest ubuntu-guest4.

sudo mkdir -p /var/lib/xen/images
sudo dd if=/dev/zero of=/var/lib/xen/images/ubuntu-guest4.img bs=1M seek=15096 count=0
sudo mkfs.ext4 -F /var/lib/xen/images/ubuntu-guest4.img (optional if using iso for installation)

Then create file /etc/xen/ubuntu-hvm4.cfg for configuration details of guest. Mine looks like the below.

In line stating the disk home/uma/Desktop/OS/ubuntu-12.04-desktop-amd64.iso should be replaced by the address of your iso file.


xl create /etc/xen/ubuntu-hvm4.cfg

(This will open your guest console :D)

After installing OS you can shutdown the guest and change the disk line in /etc/xen/ubuntu-hvm4.cfg to

disk = [‘phy:/var/lib/xen/images/ubuntu-guest4.img,hda,w’]

And start using your guest. πŸ˜€

My First Experience with GRUB

Hi Friends. So, here I am again there with my experience and I think my GRUB experience (till now) would be an amazing topic

So let us start from the start πŸ™‚

What is GRUB ?

GRUB is a boot loader designed to boot a wide range of operating systems from a wide range of file systems. (copied :-p)

GRUB creates and manages the screen containing list of OS available in the system that we see while booting process. (in simple language)

Why I felt the need to change GRUB boot loader?

1. To make the boot menu visible

When Xen hypervisor is installed in Ubuntu 14.04 or higher versions it automatically changes the GRUB to boot XEN and hides the OS list menu on boot. So, if you want the menu to appear on boot then follow the steps :

Open /etc/default/grub and change GRUB_HIDDEN_TIMEOUT


And then update your grub by running the following command


and on next boot you will see the boot menu πŸ™‚

2. To pass boot parameters to Xen

I have to change the scheduler in Xen to credit2 scheduler and for that I have to pass the parameters to Xen kernel.

Open /etc/default/grub and append the following line at the end


And update your grub


So to pass parameters to Xen Kernel you just have to insert parameters between ” ”


GRUB_CMDLINE_XEN=”sched=credit2Β  cpuinfo=1″


But this is not an end I will keep updating about GRUB. πŸ™‚

Ubuntu 14.04 with Xen and Virtual Machine Manager

Installation of Xen Hypervisor and Virtual Manager on Ubuntu 14.04.1

1. Install Ubuntu 14.04.1 and more importantly enable virtualization in boot options
You can get the installation steps from Ubuntu official site.

2. Open terminal and install xen hypervisor
sudo apt-get install xen-hypervisor-amd64
(installing 64 bit hypervisor runs on 32 bit dom0 and also creates 64 bit domU)

Then reboot (you don’t have to update grub)
sudo reboot

3. After rebooting just to check if Xen booted with Linux
sudo xl info

sudo apt-get install bridge-utils

4. OpenΒ  /etc/network/interfaces and change it

auto lo
iface lo inet loopback

auto xenbr0
iface xenbr0 inet dhcp
Β Β Β  bridge_ports eth0

auto eth0
iface eth0 inet manual

Then restart network manager
sudo ifdown eth0 && sudo ifup xenbr0 && sudo ifup eth0

5. Now install Virtual Machine Manager
sudo apt-get install virt-manager

Now restart your system open virtual machine manager and add connection Xen.
Then start creating your domU’s.

Help for more OS at :

FOSS Outreach Program :)

Hello Friends !!!! Finally I got selected in GNOME Outreach Program for Women πŸ™‚ I will be working on the project “Advanced Scheduling Parameters” in Xen. And here I am writing my blog to share my experiences. Before I jump to my experience lets talk about OPW in this post. So, in this post I will tell you about FOSS Outreach Program (Previously called OPW) and here it goes:

What’s FOSS Outreach Program for Women (OPW) ?

Reflective of a generally low number of women participating in the FOSS development. GNOME OPW provides an equal opportunity for women in FOSS. It provides Free and Open Source Software Outreach Program internships.

Then why Outreach Program now?

In this (9th) round, the Outreach Program for Women (OPW) is open to all participants of the Ascend Project regardless of gender as a pilot for expanding to people from more groups underrepresented in free and open source software.

What happens in GNOME Outreach Program for Women?

You will be contributing to Free and Open Source Software (FOSS) in different ways. That means new contributors (like me) are going to be a part of awesome open source projects. πŸ™‚

Is the program limited to coding ?

The internship offered are not limited to coding, but include user experience design, graphic design, documentation, web development, marketing, translation and other types of tasks needed to sustain a FOSS project.

How to start ?

1. Choose what you want to do.

2. Choose the project and the organization. For this read the project’s wiki page.

3. Contact the mentors of the project and lurk on project’s IRC channel. (Mentors are really very helping in nature so don’t hesitate in asking questions)

4. Once you decide the project then start contributing.

5. You can apply in more than one project or organization. But IMO quality is better than quantity therefore one should contribute in max 2 projects.

As for being able to apply in the program one should make at least one small contribution. So participation and selection process goes hand in hand.


1. Becoming a FOSS contributor and chance to meet and work with experienced contributors. πŸ™‚

2. $5,500 (USD) stipend, if project completed successfully. :-p

So, I will definitely ask you to harness this opportunity and share this among your friends and relatives.