• How To

    OpenQRM and XEN LVM based HVM VM.

    Posted on November 21st, 2010

    Written by CJ

    Tags

    This page is part of my webdevster.com tutorial, see index to OpenQRM and XEN LVM based HVM VM.

    [3.0] Chapter 3 - Xen and OpenQRM Integration

    Shows how integrate Xen with OpenQRM and take control of your VM.

    Overview
    -Requirements
    -Assumptions
    -Tutorial Objective
    About OpenQRM
    -About the OpenQRM Version
    -About our OpenQRM Network
    -About our OpenQRM Topology and Resource Allocation
    [1.0] Chapter 1 - Install OpenQRM
    [1.1] Step 1: Install Debian x64
    [1.2] Step 2: Install Optional GUI and NX on Debian x64
    [1.3] Step 3: Firewall/DHCP/NAT (MOnowall) Configuration
    [1.4] Step 4: Network Interface Configuration
    [1.5] Step 5. Install OpenQRM Server
    [1.6] Step 6. OpenQRM Installer Configuration
    [1.7] Step 7. Database Configuration
    [1.8] Step 8. OpenQRM Web Interface Manager Configuration
    [2.0] Chapter 2 - Install Xen and VM
    [2.1] Step 1. Install and Provision Debian x64
    [2.2] Step 2. Install XEN and configure
    [2.3] Step 3. Install VNC and configure
    [2.4] Step 4. Configure LVM for Xen VM
    [2.5] Step 5. Install Xen Guest VM, on Xen Host LV
    [2.6] Step 6. Xen Troubleshooting and Optional Useful CLI Commands
    [3.0] Chapter 3 - Xen and OpenQRM Integration
    [3.1] Step 1. Log into OpenQRM, enable, and start Plugins
    [3.2] Step 2. Integrate XEN hypervisor server with OpenQRM server
    [3.3] Step 3. Provision XEN-Storage Host in OpenQRM as Resource
    [3.4] Step 4. Verify XEN LVM VM on Remote/Local XEN Host Server
    [3.5] Step 5. Optional PXE Boot
    [3.6] Step 6. Optional Import Xen Host Kernel to OpenQRM
    [3.7] Step 7. Remove and Recreate VM (vmx01cms01.cfg) cfg file
    [3.8] Step 8. Configure VM Image
    [3.9] Step 9. Configure Appliance
    [3.10] Step 10. Start the Appliance
    [3.11] Step 11. Have Fun with VM

    My Step by Step tutorial, is divided into 5 sections which include 3 Chapters.

    Overview
    About OpenQRM

    This tutorial is split into three chronological chapters:

    Chapters

    Install OpenQRM

    Install Xen and VM

    Integrating OpenQRM with Xen

    In this chapter you’ll integrate your existing XEN LVM HVM VM, which we create in chapter 2, with OpenQRM.

    NOTE:
    It’s worth noting, so you don’t get confused; OpenQRM uses the following terms:
    Appliance - can be a hypervisor host, virtual machines, and/or physical servers. Hypervisor host is a XEN hypervisor server, VMware Server, KVM, etc…
    Resources - is what it is, ‘resources for OpenQRM’ such as, OpenQRM server, storage server, XEN hypervisor server, Plain ol’ Physical System, etc…

     

    [3.1] Step 1. Log into OpenQRM, enable, and start Plugins

    Change Password and Create Optional Username

    Once logged into OpenQRM, change OpenQRM user, password, and optionally create a new administrator user and password.

    Activate and Start Plugins

    OpenQRM has a plugins which enable certain feature sets in OpenQRM; without plugins OpenQRM doesn’t do much. The plugins we are going to utilize pertain to our environment, OpenQRM and XEN LVM based HVM VM management. So it’s really a stripped down OpenQRM, for our Xen host management; OpenQRM has infinite configurations for your Virtual/Physical Cloud Environment. Before adding additional local resources in your current network for OpenQRM to manage, i.e. Xen host, enable and start following necessary plugins; dhcpd, tftpd, dns, local-server, xen-storage.

    Select the radio button for each, than select enable (at the bottom). Select the radio button for each again, and start them (at the bottom).

    Will Look Like This:
    Start OpenQRM Plugins

    NOTE:
    You don’t need ‘Xen’ plugin as this is for file based Xen VMs, not LVM based Xen VMs. All of your LVM based XEN VMs, will be configured from Xen-storage plugin, along with the OpenQRM default ‘Base’ applications (i.e. images, storage, appliance, resource, kernel, etc), and essential plugins for our virtual environment (i.e. dhcpd, tftpd, dns, and local-server)

    NOTE:
    Even though we are only starting a few plugins, you could enable all of OpenQRM plugins without starting them. This is great feature for learning about the other plugins, in the “about” section of the plugin.

     

    [3.2] Step 2. Integrate XEN hypervisor server with OpenQRM server.

    Integrating an existing Xen Host is very easy; it’s done by using the local-server plugin, no webUI configuration needed, just run two simple CLI commands from OpenQRM server. Before running these commands, make sure all the necessary plugins, as noted above, are enabled and start.

    On OpenQRM Server

    We’ll copy ‘OpenQRM-local-server’ utility from OpenQRM server to this XEN hypervisor Server, this is done with the following command, via ssh. First try these commands, if it doesn’t work and gives error, than try the next set of commands:

    prompt>scp /usr/share/OpenQRM/plugins/local-server/bin/OpenQRM-local-server 10.1.11.11:/tmp/ prompt>ssh 10.1.11.11 /tmp/OpenQRM-local-server integrate -u OpenQRMWEBUIUSERNAME -p OpenQRMWEBUIPASSWORD -q 10.1.11.10 -i eth0 [-s http/https]

    If the above commands gave you problems, it’s because OpenQRM is constantly changing the way they package their files :( , anyways try the following commands:

    prompt>scp /usr/share/openqrm/plugins/local-server/bin/openqrm-local-server 10.1.11.11:/tmp/ prompt>ssh 10.1.11.11 /tmp/openqrm-local-server integrate -u OpenQRMWEBUIUSERNAME -p OpenQRMWEBUIPASSWORD -q 10.1.11.10 -i eth0 [-s http/https]

    Please give a name for this server:
    x01-lc1-cloud1 (you can’t use dots, so I used hyphens)

    To remove this resource you can run:

    prompt>scp /usr/share/openqrm/plugins/local-server/bin/openqrm-local-server 10.1.11.11:/tmp/ prompt>ssh 10.1.11.11 /tmp/openqrm-local-server remove -u OpenQRMWEBUIUSERNAME -p OpenQRMWEBUIPASSWORD -q 10.1.11.10 [-s http/https]

    Please give the appliance name of this system
    -> : x01-lc1-cloud1 (you can’t use dots, so I used hyphens)

    That was it for integrating your existing Xen LVM based VM, with OpenQRM; pretty easy, ay. Ok, now we’ll take control of the VM with OpenQRM in the last few following steps, on page 11.

    Pages: 1 2 3 4 5 6 7 8 9 10 11

    This entry was posted on Sunday, November 21st, 2010 at 6:51 pm and is filed under How To. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
  • 7 Comments

    Take a look at some of the responses we've had to this article.

    1. " OpenQRM and XEN LVM based HVM VM. "

      Joe
      Posted on November 30th

      I loved this example of how to OpenQRM and XEN servers. It is a truly a complete installation guide. Incredible artcile.

    2. " OpenQRM and XEN LVM based HVM VM. "

      Gert
      Posted on January 21st

      Thanks for the effort you took in writing this article. It really helped me with my first OpenQRM setup!
      Loved it!

    3. " OpenQRM and XEN LVM based HVM VM. "

      Colin
      Posted on January 28th

      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.

    4. " OpenQRM and XEN LVM based HVM VM. "

      Posted on February 3rd

      Thanks a ton for This post! Very Informative. Got Exactly what i was looking for. keep it up.

    5. " OpenQRM and XEN LVM based HVM VM. "

      CJ
      Posted on February 11th

      @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.

    6. " OpenQRM and XEN LVM based HVM VM. "

      Mr Bow
      Posted on August 3rd

      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

    7. " OpenQRM and XEN LVM based HVM VM. "

      rjbutler
      Posted on August 9th

      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.

  • Post a Comment

    Let us know what you thought.

  • Name:

    Email:

    Website:

    Message: