Skip to contentSkip to conversation

Almost working iSCSI booting, need advice

DISCUSSION [email protected] 2 participants 4 messages Aug 23, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 26406600.65931219456290998.JavaMail.root@bos-dom-zbox3.bos.lycos.com

#1 lore raw
Quoted 5 lines · ----- "Stefan de Konink

I guess here is where the problem is... I never used pygrub before it.

So if you are hacking in PyGrub you might be in the right place ;)

Can you tell me what bootloader you are using and whether you have any patches on top of stock Xen, particularly in XendDomainInfo.py or XendBootloader.py? I'll try and reproduce your setup and trace the code path for what you are using. There are some weird conditional statements in the Python for what bootloader you are using (especially in the SuSE patches), and there could be something in there.

As far as I can tell _configureBootloader(), where my changes are, sets up the environment for the bootloader. It could be that the hotplug code happens there or at some other place. I've had significant difficulties understanding it, which is why I was hoping to get a response from an "expert" on the list in this area. I understand how it works once /etc/xen/scripts/block is executed, but not all the assumptions leading up to that point.

Quoted 5 lines

You ask smart questions... but I don't know 'how' PyGrub does this. And
actually I have no clue were in the actual booting process PyGrub steps in.

Something like:

_init_domain()
_configure_bootloader()
bootloader()

I'll look deeper into PyGrub, the new bootloader, and whatever you are using on Monday and try and figure out where my issue is from there.

(As an aside, Xen really does seem intent on thinking that you need a real block device to boot from in a few other areas. I was playing around and was able to get RedHat AS 5.2's newly-added root-on-iSCSI support working under Xen without any code modifications using the SuSE domUloader and RedHat's initrd and kernel, but I still had to specify a block device, even though it's ignored by the initrd which has its own mini-open-iscsi built in and mounts root from that. The RedHat support has too many limitations to be practical for Xen just yet, but it's an interesting different approach. Still, having Xen manage the iSCSI connections appears to be the best way.)

Joe

#2 lore raw

[email protected] schreef:

Quoted 11 lines
Quoted 5 lines · ----- "Stefan de Konink

I guess here is where the problem is... I never used pygrub before it.

So if you are hacking in PyGrub you might be in the right place ;)

Can you tell me what bootloader you are using and whether you have any patches on top of stock Xen, particularly in XendDomainInfo.py or XendBootloader.py?

I hope you don't cry now, but I'm not using any bootloader :) I really can't see the use for it. Actually I have *two* kernels now, but the only thing my users see is an linux-2.6 as kernel in their config.

Quoted 10 lines

(As an aside, Xen really does seem intent on thinking that you need a real block device to boot from in a few other areas. I was playing around and was able to get RedHat AS 5.2's newly-added root-on-iSCSI support working under Xen without any code modifications using the SuSE domUloader and RedHat's initrd and kernel, but I still had to specify a block device, even though it's ignored by the initrd which has its own mini-open-iscsi built in and mounts root from that. The RedHat support has too many limitations to be practical for Xen just yet, but it's an interesting different approach. Still, having Xen manage the iSCSI connections appears to be the best way.)

Oh they are doing:

kernel initrd-hey-here-are-the-iscsi-tools-lets-switch-rootfs

Instead the nfsway:

kernel-lets-find-a-nice-iscsi-machine

Not only the best way, the only way you can *safely* hide your storage from the domU's.

Stefan

#3 lore raw
Quoted 6 lines · ----- "Stefan de Konink

I hope you don't cry now, but I'm not using any bootloader :) I really

can't see the use for it. Actually I have *two* kernels now, but the only thing my users see is an linux-2.6 as kernel in their config.

So I can reproduce it, how do you have it configured then? I'm not familiar with a sans-bootloader configuration.

Quoted 4 lines

Not only the best way, the only way you can *safely* hide your storage from the domU's.

My specific application doesn't need the security. I'm using this for legacy applications, not untrusted users. I probably wouldn't be using paravirt if I wanted that level of security, but I'm not sure how the big ISPs do it.

Joe

#4 lore raw

[email protected] schreef:

Quoted 8 lines
Quoted 4 lines · ----- "Stefan de Konink

I hope you don't cry now, but I'm not using any bootloader :) I really

can't see the use for it. Actually I have *two* kernels now, but the only thing my users see is an linux-2.6 as kernel in their config.

So I can reproduce it, how do you have it configured then? I'm not familiar with a sans-bootloader configuration.

kernel = "/home/skinkie/xen/boot/gentoo";

Quoted 5 lines
Quoted 3 lines

Not only the best way, the only way you can *safely* hide your storage from the domU's.

My specific application doesn't need the security. I'm using this for legacy applications, not untrusted users. I probably wouldn't be using paravirt if I wanted that level of security, but I'm not sure how the big ISPs do it.

Ok.

Stefan