Howto: Cloud Computing (4/1)

4/1) Configuration of the openQRM-server

Now we setup the lvm-nfs storage server. This nfs-storage server will act as "golden-image" storage. It will keep the server-image templates and make them available to deploy them to the Iscsi-Luns later.

Go to Storage -> new Storage server, select "Lvm Storage Server (Nfs)" and the openQRM server system (id 0) as the resource

give a name for the lvm-nfs storage and save.

Now go to the lvm-storage plugin manager, select the just created storage server

select the volume goup (here "vol")

and create a new lvm-nfs storage location for the image.

(we start with one named "ubuntu_nfs" here, size 1000M).

Click on "refresh" afterwards

On the system console this will now look like :

root@cloud:~# ls /vol/ubuntu_nfs/
root@cloud:~#
root@cloud:~# exportfs -v
/vol/ubuntu_nfs       192.168.99.1(rw,async,wdelay,insecure,no_root_squash,no_subtree_check)
root@cloud:~#

Then create a new image from this image-location on the lvm-nfs storage server.
Go to "Images" -> new Image, select the lvm-nfs storage server

give a name for the image and check that the root-device select-box displays your lvm-nfs storage image-location.

Now we have an "empty" server-image which we are going to "fill" from the image-shelf.

Go to the Image-shelf plugin, select the public image-shelf server

select the image to get (for this howto we selected the Ubuntu 8.04 32-bit image)

select the image to "put" (the just created, yet empty, lvm-nfs image).

That's it.

openQRM will now download the server-image template to the storage-server location.
That means the server-image is not empty any more but now contains an Ubuntu rootfs.

We could use this new created Ubuntu server-image directly for deployment (also in the Cloud) but since we decided to use an Iscsi-Target to store our Cloud vm disks we "only" use
it as "golden-image" (server-template) for our Iscsi-deployment.

After the image-shelf step on the system console :

root@cloud:~# ls /vol/ubuntu_nfs/
bin   cdrom  etc   initrd      initrd.img.old  lost+found  mnt  proc  sbin  sys  usr  vmlinuz
boot  dev    home  initrd.img  lib             media       opt  root  srv   tmp  var  vmlinuz.old
root@cloud:~#
root@cloud:~# exportfs -v
/vol/ubuntu_nfs       192.168.99.1(rw,async,wdelay,insecure,no_root_squash,no_subtree_check)
root@cloud:~#

--> in this howto 192.168.99.1 is the openQRM-sever itself

btw: the image-shelf mechanism also automatically created a new "Ubuntu" kernel fitting
to the Ubuntu server-image for you.

Next step in the section of the openQRM-server configuration is setting up an lvm-iscsi storage server.