Monday, December 10, 2007

Anaconda, Kickstart & iSCSI

The previous days I've been trying to get Anaconda to install a Xen domU with it's harddisk being a iSCSI target. And this all automated using kickstart. It is working now, but Anaconda needed a bit of help.

First a quick overview of the seutp. I have set of servers that will host all the virtual machines. The storage comes from 2 servers that have 12 disks in a RAID array (see some of the other articles on this blog). I use LVM to carve up this storage and export each logical volume as a iSCSI target for the different virtual machines.

Since I would like to be able to use the Xen migration feature to move virtual machines between the servers, I basically have 3 options to have a shared storage so the migration works. The first one is to use a cluster/distributed filesystem that is present on all the servers that contain image files of the different virtual machines. The second one is to use CLVM that makes logical volumes available to a set of machines. And the third one is to let the virtual machine import the disk directly. It's a bit to much to discuss the merit of the 3 choices here. Maybe in another post.
Anyway, the choice was made to use the last option. Our virtual machine would act itself as a iSCSI initiator and get a disk to install on that way.

If you read the CentOS 5 docs about kickstart (http://www.centos.org/docs/5/html/5.1/Installation_Guide/s1-kickstart2-options.html) you can see that there are options for iSCSI. So this was supposed to be easy. A first test indicates that it all worked, so that looked good. Now we had some requirements. To prevent the different virtual machines from touching the wrong iSCSI targets we using a username and password on each target.

The documentation indicates that Anaconda should support username and password during the import of the iSCSI targets. But testing indicates that this does not work. Then I looked at the code and see nothing that indicates that it should work.

A second issue that we are seeing is that we have quickly have a lot of targets on our storage server and Anaconda tries to do a login to all targets that it discovers. This slows down the installation process a lot.

So it was time to refresh my Python skills and do some Anaconda hacking. BTW, a good reference for this is the Anaconda wiki page. Using the updates support you can easily use modified version of the anaconda code during a installation. And after some testing but problems are now solved. Anaconda will now use the --user, --password and --target options if they are present.

I've created 2 entries in the upstream bugzilla about this with the patches containing my 402431 and 418781. I have also attached a updates.img to bug 418781. This can be used to start a install with the patches I've made but without the need to recreate all the installation images. See the Anaconda wiki or the docs that come with Anaconda on how to use them (it depends on how you actual do the install).

211 comments:

«Oldest   ‹Older   201 – 211 of 211
Thing Thing Arena 3 said...

This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It’s the old what goes around comes around routine.

Non Invasive acne treatment los angeles


Bubble Struggle
Bubble Trouble
Online

Bubble Trouble 2
Bubble Trouble 2 Hacked
Bubble Trouble Hacked

dfgdhgh said...

I know someone in the world is waiting for me, although I've no idea of who he is. But I feel happy every day for this Buy Xbox Live Points, If a woman is not sexy, she needs emotion; if she is not emotional, she needs reason Cheap Minecraft Gift Code, in this world, only those men who really feel happy can give women happiness Ultimate Game Card.

dfgdhgh said...

The past is gone and static. Nothing we can do will change it.Ultimate Game Card, the future is before us and dynamic. Everything we do will affect it Buy Xbox Live Points, You laugh at meCheap Minecraft Gift Code for being different , but I laugh at you for being the same.

dfgdhgh said...

The past is gone and static. Nothing we can do will change it.Ultimate Game Card, the future is before us and dynamic. Everything we do will affect it Buy Xbox Live Points, You laugh at meCheap Minecraft Gift Code for being different , but I laugh at you for being the same.

Gavin Evans - Lucky5 said...

Some really inspirational stuff here!

Kiran Jee said...

Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading.
1 Million Facebook Fans

descargar whatsapp gratis said...


This is a great article. It gave me a lot of useful information. thank you very much.
----
apply baixar facebook movel and descargar whatsapp gratis para android and apply baixar facebook gratis

Muhammad Taufan said...

Exceilent blog you have here but I was curious abou t if you knew of any communi ty forums tha t cover the same topics talked about in this article? I’d really like to be a part of online community where I can get advice from other experienced individuaIs that share the same interest. If you have any suggestions, please let me know. Appreciate it!

games unblocked said...

You’ve written nice post, I am gonna bookmark this page, thanks for info. I actually appreciate your own position and I will be sure to come back here.
kids games
friv
unblockedgames
un show mas

Mít Trang said...

I would like more information about this, because it is very nice., Thanks for sharing.
juegosjuegos.com
juegos de matar zombies
jogos do friv

Blogger said...

If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you got to watch this video
right away...

(VIDEO) Why your ex will NEVER get back...

«Oldest ‹Older   201 – 211 of 211   Newer› Newest»