Tory M Blue wrote:
> Okay after hard coding a few things in files, I now have a working xen
> deployment. (But before you ask!)
> 
> I would like to unhack many things and get the flexibility back that
> SI provides.

Tory, first of all that's simply great! I've just started to work on Xen
and SI integration, so I'm really interested in this topic!!!

Question: are you running Xen in HVM mode to image the VM clients?  And
after the imaging you can choose to switch to paravirtualized mode or
simply reboot and continue to use HVM, right?

Comments below.

> 
> So ignoring the outstanding xen issues, lets get into the sI.
> 
> autoinstallscript.conf, does not understand virtual disks xvd* is
> unknown to it so Diskorder is something that cannot be used and the
> system will not find the correct disk..
> 
> DISKORDER=sd,cciss,ida,rd,hd   <---  xvd would be nice
> 
> Otherwise I force the device information
> 
> if [ -z $DISKORDER ] ; then
>   DISK0=/dev/xvda  <-- works
> elif [ -z $DISK0 ] ; then
>   echo "Undefined: DISK0"
>   shellout

This is true if you used --autodetect-disks in si_getimage (or
si_mkautoinstallscript), but it should work if you don't use this
option. Just replace all the /dev/sda occurrences to /dev/xdva in
/var/lib/systemimager/images/YOURIMAGE/etc/systemimager/autoinstallscript.conf
and re-create the .master script by si_mkautoinstallscript.

Anyway, the --autodetect-disks issue can be easily fixed as you
suggested adding xvd to the DISKORDER list.

Index: lib/SystemImager/Server.pm
===================================================================
--- lib/SystemImager/Server.pm  (revision 4388)
+++ lib/SystemImager/Server.pm  (working copy)
@@ -1969,7 +1969,7 @@
                if (/^\s*${delim}SET_DISKORDER${delim}\s*$/) {
                     # Set or unset disk autodetection.
                     if ($autodetect_disks) {
-                        print $MASTER_SCRIPT 
qq(DISKORDER=sd,cciss,ida,rd,hd\n);
+                        print $MASTER_SCRIPT 
qq(DISKORDER=sd,cciss,ida,rd,hd,xvd\n);
                     } else {
                         print $MASTER_SCRIPT qq(DISKORDER=\n);
                     }
> 
> However if I do stop the SI process and drop into a shell, fdisk see's
> the disk just fine..
> 
> /scripts/pre-install # fdisk -l
> 
> Disk /dev/xvda: 10.7 GB, 10737418240 bytes
> 255 heads, 63 sectors/track, 1305 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Disk /dev/xvda doesn't contain a valid partition table
> 
> So unless I hard code xvda in various locations my installation will
> fail. So how do I go about getting things a bit less rigid again?
> 
> 
> Now systemconfigurator, might be caused by the above issue, however
> systemconfigurator barfs all over the tasks of setting up my
> bootloader. (so much that I had to mount my partitions and edit
> grub.conf by hand)..

Yes, as expected, SC doesn't know what /dev/xdv* are, I suppose that's
very similar to the SI issue above. I'll look at it.

> 
> Now I believe since my image is complete, I can skip the
> systemconfigurator bootloader piece and just have it deal with
> network, however again I would love to keep all components of SI in
> tact.
> 
> And Andrea, I owe you a donation, send me a link (not for this, but
> for the last years worth of assistance (and yes i tend to jump from
> one implementation to another.)) I want to be able to use SI for
> everything! (and the new win stuff you announced, i'll try that as
> well!)))

Well, I've never understood how the donation system works on SF.net...
if you wanna try :-) Anyway, as I said in a previous mail, we would
really need a x86_64 server to build deb and RPM packages for this
architecture. Do you have a x86_64 machine online? a non-privileged
account would be enough to build SI packages, or better, you could
contribute building x86_64 packages for us if you're interested.

BTW have you registered your SI installations on the cluster map? ;-)

Thanks,
-Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sisuite-users mailing list
sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to