This page is part of my webdevster.com tutorial, see index to OpenQRM and XEN LVM based HVM VM.
[2.1] Step 1. Install and Provision Debian x64
We are going to start with a clean install on a new HDD. If it’s not a new HDD, I recommend using Darik’s Boot And Nuke, to erase all data, before you get started. Burn CD > Boot to Cdrom > Select Enter to Start the Interactive Mode > Select Drive, to wipe by pressing spacebar. > Press M for method > Select your method with up and down keys ( I selected Quick Erase), press Enter > Press F10 to start the wipe.
Insert the Debian x64 Installation Disk to start the installation process.
NOTE:
If you run into problems with drivers for your nic, hdds, etc.., then I would recommend using the Debian x64 “full cd”, instead of the “net install cd”. Only CD1 is needed for the installation, so don’t download the other CDs. Because, in this case it would be a total waste of space on your puter. You’ll also need to comment out the cdrom line, in /etc/apt/sources.list, once your system boots.
Hostname Configuration
I am going to use qrm01 for hostname and qrm01.cloud1 for domain. So the fqdn will be, qrm01.lc1.cloud1.
Partition Disk
Select ‘Manual’ Partition
In my example, I use 73gb = 4gb for Debian x64 OS, 2gb for swap, and the rest is for physical LVM. The swap here is for the XEN host, and will not be shared by the VMs.
So, on blank HDD, you’ll want to do the following:
Create OS Partition:
- Select Disk you want to install OS to.
- Select Yes, to create a new empty partition table on this device.
- Select, pri/log 73 GB Free Space
- Create a new partition (FYI: OS)
- Enter 4GB, for partition size, select continue
- Select Primary
- Select Beginning
- For partition settings, use the following settings (Label is Optional): Use as: Ext3 journaling file system
- Select, Done setting up the partition.
Mount point: /
Mount options: defaults
Label: none
Reserved blocks: 5%
Typical Usage: standard
Bootable flag: on
Create Swap Partition:
- Select, pri/log 69 GB Free Space
- Create a new partition (FYI: Swap)
- Enter 2GB, for partition size, select continue (you’ll need to come up with a custom swap size for your server)
- Select Logical
- Select Beginning
- For partition settings, use the following settings (Label is Optional): Use as: swap area
- Select, Done setting up the partition.
Bootable flag: off
Create LVM:
- Select, pri/log 67 GB Free Space
- Create a new partition (FYI: LVM)
- Enter default of 67gb, for partition size, select continue
- Select Primary
- For partition settings, use the following settings (Label is Optional): Use as: physical volume for LVM
- Select, Done setting up the partition.
Bootable flag: off
So now your done with partitioning and Debian will take care of the formatting.
Your screen should look like this:
![]()
- Now select, Finish partitioning and write changes to disk.
Your screen should look like this:
![]()
- Select, Yes. The base installation will start.
Set up Passwords
This is pretty self explanatory
Configure the package mngr
Select default ftp.us.debian.org, or your preference
Software Selection
Deselect all, i.e. Desktop Environment, Standard System, etc..
Installing Grub boot Loader
Select Yes
Finish the installation
Select, Continue
On first boot you might encounter some hurdles depending on your hardware, so just google around, to get into a standard debian CLI login prompt. Typically normal home PC computers, have no issues. But, with my experience with all OS on servers in general, I almost always have some obstacles to overcome.
NOTE:
My hurdle, for Debian x64 install on IBM HS21 8853:
It will ask you for non free drivers, bnx2-06-4.0.5.fw. Which is Broadcom NetXtremeII 5706/5708 firmware, version Linux 2.6.25 (bnx2-06-4.0.5.fw)
You can download deb pkg to a usb drive from Debian — Details of package firmware-bnx2 in sid, the package will work for Lenny and is named, firmware-bnx2_0.27_all.deb. Don’t extract it, just place it in the usb and your good to go, and move forward on install.
NOTE:
My hurdle, for Debian x64 install on IBM HS20 8843, HS21 8853, and some HS22:
To fix mounting issue “mounting /sys on /root” and acpi issue “resource is not an irq entry”
Install debian like normal. When it reboots for the first time you need to edit grub list:
change: sdb1 to: sda1.
remove: quiet (remove quiet to view boot process, after you have troubleshooted you should revert back to quiet permanently)
add: noacpi nolacpi acpi=off
per Installation error (ACPI: Resource is not an IRQ Entry…)
Once logged into debian, make the above permanent changes to:
prompt>nano /boot/grub/menu.lst
And make the following changes to:
prompt>nano /etc/fstab
change all sdb1 to sda1.
per Installation Report (IBM BladeCenter HS20 / SCSI) - Debian Bug report logs - #269486
prompt>reboot
Install essential pkgs
Our attempt here and throughout this tutorial is to create a slim installation of the Xen host.
Login as root.
prompt>apt-get update prompt>aptitude full-upgrade prompt>apt-get install openssh-server udev ssh wget lvm2You can optionally remote log in as root, with SSH (i.e. ssh via putty); or optionally with mRemote for easability.
Configure static network IP
prompt>nano /etc/network/interfacesErase or comment out, all info and copy in the following:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.1.11.11 netmask 255.255.255.0 network 10.1.11.0 broadcast 10.1.11.255 gateway 10.1.11.1
Once you restart networking, you will need to point your ssh to the new IP, 10.1.11.11.
We can now move onto installing and configuring Xen in the next page 6, Step 2. Install XEN and configure.


















" OpenQRM and XEN LVM based HVM VM. "
I loved this example of how to OpenQRM and XEN servers. It is a truly a complete installation guide. Incredible artcile.
" OpenQRM and XEN LVM based HVM VM. "
Thanks for the effort you took in writing this article. It really helped me with my first OpenQRM setup!
Loved it!
" OpenQRM and XEN LVM based HVM VM. "
Hi,
A really cool how to about Openqrm, especially when it is pretty hard to find a similar article related Openqrm on the Internet.
We are testing this product at the moment. Just want to know if you have the experience of integrating Openqrm with a iSCSI storage application, like Openfiler or similar applications.
Thanks for this excellent contribution.
" OpenQRM and XEN LVM based HVM VM. "
Thanks a ton for This post! Very Informative. Got Exactly what i was looking for. keep it up.
" OpenQRM and XEN LVM based HVM VM. "
@Colin
Thanks for your kind words, and great sentence structure; you must be an English major.
You asked about, “Openqrm with a iSCSI storage application, like Openfiler”, well it’s like netapp filer (cha-ching) and openQRM, but you and the whole world already new that. OpenQRM targets iSCSI model apps, after all it’s a cloud right, and you need a lot of space. I am by no means an expert on Openfiler, netapp, or other iSCSI storage apps. But I hope soon I’ll own some, because that means I’m doing pretty good, ay.
I can tell you, openQRM is pluggable into almost every environment. So you can merry along with any virtual environment backed by almost any storage app, and openQRM will plug right in and manage it. And if you rather use their proprietary applications to manage, you can also do that as well without interference. Well I hope this all made sense, because it made no sense to me, JK.
Also here is good read on iSCSI.
" OpenQRM and XEN LVM based HVM VM. "
I don’t see “Vol” on this Step “Verify Logical Volume Storage on XEN Host (x01-lc1-cloud1-lvm)”
Error during selecting volume group ! Please check the Event-Log
" OpenQRM and XEN LVM based HVM VM. "
Thank you for this great howto, this made it so much easier to setup a POC for a project I was hoping to do. I have run into one annoying glitch. OpenQRM rewrites the vm config files in /etc/xen. So any xen config file options that I enter, like usbdevice=’tablet’, just gets erased. I was told to enter them in the xen_generate_vm_config function in /usr/share/openqrm/plugins/xen/bin/openqrm-xen, but I have tried, and this does not work. This seems like such a small thing, but until I can add options to the xen config file when the vm is generated, this program just misses the mark. Have any of you solved this. Your suggestions would be appreciated.