QLogic Fibre Channel HBA Support
Hey Folks,
Still hunting for better alternatives vs. NFS roots -- does anyone know what I'd need to do to get the driver for QLogic fibre HBA's working, so I can host VBD's from a SAN?
Steve
Signature · 11 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
We now run device drivers unmodified with privileged guest OSes. If you use the unstable tree you would now compile all your drivers into the DOM0 kernel (including the standard qlogic driver), and you can then export chunks of disc space to other domains cia a high-performance shared-memory interface.
-- Keir
Quoted 23 lines
Hey Folks,
Still hunting for better alternatives vs. NFS roots -- does anyone know what I'd need to do to get the driver for QLogic fibre HBA's working, so I can host VBD's from a SAN?
Steve
Signature · 15 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Fantastic. That's what I was hoping to hear (since I already ordered the fibre channel gear). :-}
Quoted 34 lines · Keir Fraser
We now run device drivers unmodified with privileged guest OSes. If you use the unstable tree you would now compile all your drivers into the DOM0 kernel (including the standard qlogic driver), and you can then export chunks of disc space to other domains cia a high-performance shared-memory interface.
-- Keir
Quoted 23 lines
Hey Folks,
Still hunting for better alternatives vs. NFS roots -- does anyone know what I'd need to do to get the driver for QLogic fibre HBA's working, so I can host VBD's from a SAN?
Steve
Signature · 15 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel
Signature · 11 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 4 lines
Still hunting for better alternatives vs. NFS roots -- does anyone know what I'd need to do to get the driver for QLogic fibre HBA's working, so I can host VBD's from a SAN?
If there's a driver in Linux, it should just work if you use the unstable-xeno tree and modify the config for the domain 0 linux to add the driver.
In the new tree, rather than using our own virtual disk code we're planning on using standard Linux's standard LVM2 code to enable physical partitions to be sliced and diced. The tool support for this isn't quite there yet.
An alternative to using a FCAL SAN is to use iSCSI. I've found that the Linux Cisco iSCSI initiator code works nicely, and can either talk to a hardware iSCSI target or to the Ardistech Linux iSCSI s/w target. I've generally configured it such that the domain talks iSCSI directly (using an initrd to enable root to be on the iSCSI volume). Others have configured iSCSI in domain 0 and then exported the partitions to other domains as block devices using the normal VBD mechanism.
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 8 lines · Ian Pratt
Quoted 4 lines
Still hunting for better alternatives vs. NFS roots -- does anyone know what I'd need to do to get the driver for QLogic fibre HBA's working, so I can host VBD's from a SAN?
If there's a driver in Linux, it should just work if you use the unstable-xeno tree and modify the config for the domain 0 linux to add the driver.
So, how stable is unstable these days? I.E. would you trust it to host other people's guests?
Quoted 4 lines
In the new tree, rather than using our own virtual disk code we're planning on using standard Linux's standard LVM2 code to enable physical partitions to be sliced and diced. The tool support for this isn't quite there yet.
That sounds good -- you mean tools support as in python? I should be able to help if that's the case.
Quoted 8 lines
An alternative to using a FCAL SAN is to use iSCSI. I've found that the Linux Cisco iSCSI initiator code works nicely, and can either talk to a hardware iSCSI target or to the Ardistech Linux iSCSI s/w target. I've generally configured it such that the domain talks iSCSI directly (using an initrd to enable root to be on the iSCSI volume). Others have configured iSCSI in domain 0 and then exported the partitions to other domains as block devices using the normal VBD mechanism.
I'd need to use the iSCSI in domain 0 approach (other people's guests...), haven't tried it due to lack of hardware targets, didn't get warm fuzzies from Ardistech's code -- you've had no problems with it though?
Steve
Signature · 11 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 6 lines · Ian Pratt
Quoted 5 lines
Quoted 4 lines
Still hunting for better alternatives vs. NFS roots -- does anyone know what I'd need to do to get the driver for QLogic fibre HBA's working, so I can host VBD's from a SAN?
Quoted 6 lines
Quoted 3 lines
If there's a driver in Linux, it should just work if you use the unstable-xeno tree and modify the config for the domain 0 linux to add the driver.
So, how stable is unstable these days? I.E. would you trust it to host other people's guests?
I think Xen and XenLinux 2.4.26 are pretty damn stable -- at least I know of no outstanding bugs that have been posted to the list.
The new control tools still have a few stability issues, but since they're restartable its typically not a show stopper. Armed with good bug reports I'm sure Mike will be able to resolve this. There are a few extra features and fixes we need to get into the tools, then I think we'll be ready for a 2.0-alpha release. I'd hope that all users of 1.2 would test it out for us.
Quoted 7 lines
Quoted 4 lines
In the new tree, rather than using our own virtual disk code we're planning on using standard Linux's standard LVM2 code to enable physical partitions to be sliced and diced. The tool support for this isn't quite there yet.
That sounds good -- you mean tools support as in python? I should be able to help if that's the case.
Having other people who understand the new xend and xm tool would be very helpful. It's all a bit to object-oriented for me to understand :-)
Quoted 9 lines
Quoted 8 lines
An alternative to using a FCAL SAN is to use iSCSI. I've found that the Linux Cisco iSCSI initiator code works nicely, and can either talk to a hardware iSCSI target or to the Ardistech Linux iSCSI s/w target. I've generally configured it such that the domain talks iSCSI directly (using an initrd to enable root to be on the iSCSI volume). Others have configured iSCSI in domain 0 and then exported the partitions to other domains as block devices using the normal VBD mechanism.
Quoted 4 lines
I'd need to use the iSCSI in domain 0 approach (other people's guests...), haven't tried it due to lack of hardware targets, didn't get warm fuzzies from Ardistech's code -- you've had no problems with it though?
I've mainly used a NetApp filer h/w target, so I haven't really got enough experience to says whether the Ardistech code is stable or not. There's always enbd, nbd, gnbd which are all simple enough to believe that they work...
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 9 lines · Ian Pratt
Quoted 4 lines
I'd need to use the iSCSI in domain 0 approach (other people's guests...), haven't tried it due to lack of hardware targets, didn't get warm fuzzies from Ardistech's code -- you've had no problems with it though?
I've mainly used a NetApp filer h/w target, so I haven't really got enough experience to says whether the Ardistech code is stable or not. There's always enbd, nbd, gnbd which are all simple enough to believe that they work...
I can see how that works using initrd to mount *nbd as root in guest domains, but what about using *nbd in dom0 and then allocating that as VDs to the other domains? Is that supposed to work? I remember something about needing physical raw partitions for VBDs, at least under 1.2. Am I missing something?
(For anyone curious, if using *nbd I would need to keep it in dom0, rather than in each guest, for both security and maintainability. For a public Xenoserver, uid 0 on the guests is assumed to be untrusted.)
Steve
Signature · 11 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
being able to share devices across domains in interesting... in particular for us ... I would hope that it will be possible to do at some point.
we have cluster filesystems that can run on each domain. as long as we have persistent shared block devices we should be fine.
in fact this way we can run a database in cluster mode, as we require shared disk. without it would limit the usability for xen there.
might not matter to most but I'm playing around with it for the db to see if this is useful for us.
there is a lot of potential
Quoted 17 lines · Steve Traugott
Quoted 9 lines · Ian Pratt
Quoted 4 lines
I'd need to use the iSCSI in domain 0 approach (other people's guests...), haven't tried it due to lack of hardware targets, didn't get warm fuzzies from Ardistech's code -- you've had no problems with it though?
I've mainly used a NetApp filer h/w target, so I haven't really got enough experience to says whether the Ardistech code is stable or not. There's always enbd, nbd, gnbd which are all simple enough to believe that they work...
I can see how that works using initrd to mount *nbd as root in guest domains, but what about using *nbd in dom0 and then allocating that as VDs to the other domains? Is that supposed to work? I remember something about needing physical raw partitions for VBDs, at least under 1.2. Am I missing something?
Quoted 21 lines
(For anyone curious, if using *nbd I would need to keep it in dom0, rather than in each guest, for both security and maintainability. For a public Xenoserver, uid 0 on the guests is assumed to be untrusted.)
Steve
Signature · 15 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 3 lines
being able to share devices across domains in interesting... in particular for us ... I would hope that it will be possible to do at some point.
There should be no problem with multiple writer sharing of devices across domains. Of course, make sure you're using a file system that expects this (e.g. GFS) otherwise you'll trash the file system for sure!
Xen 1.2 supported this too, but the control tools deliberately made it hard to do (you had to enable 'expert mode') otherwise people would accidentally try sharing ext2/3 file systems and end up trashing them.
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 11 lines
Quoted 5 lines
I've mainly used a NetApp filer h/w target, so I haven't really got enough experience to says whether the Ardistech code is stable or not. There's always enbd, nbd, gnbd which are all simple enough to believe that they work...
I can see how that works using initrd to mount *nbd as root in guest domains, but what about using *nbd in dom0 and then allocating that as VDs to the other domains? Is that supposed to work? I remember something about needing physical raw partitions for VBDs, at least under 1.2. Am I missing something?
You can, in principle, export anything that dom0 sees as a block device e.g. sda7, nbd0, vg0 as a block device in another domain e.g. sda1, hda1.
Hence, you should be able to implement the equivalent of Xen 1.2 VDs just by using Linux's existing LVM mechanism.
The current tools don't quite allow the full set of functionality that Xen implements, but adding support for LVM partitions should be easy.
Quoted 3 lines
(For anyone curious, if using *nbd I would need to keep it in dom0, rather than in each guest, for both security and maintainability. For a public Xenoserver, uid 0 on the guests is assumed to be untrusted.)
Each domain could use nbd directly and have its own separate area of disk and its own uid space. The only issue would be that if you were using nbd in each domain directly it would be quite apparent to the user of each VM. E.g. an initrd would be required to use nbd as a root file system. By running nbd in domain0 you can hide all of this stuff from the other domains.
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 3 lines · Ian Pratt
You can, in principle, export anything that dom0 sees as a block device e.g. sda7, nbd0, vg0 as a block device in another domain e.g. sda1, hda1.
What about loop devices? Should they work? This lookup_raw_partn() exception (in 1.2) might be what threw me off:
xendev1:~# dd if=/dev/zero of=/tmp/d0 bs=1M count=100
100+0 records in
100+0 records out
xendev1:~# losetup /dev/loop0 /tmp/d0
xendev1:~# xc_vd_tool.py initialise /dev/loop0 4
Formatting for virtual disks
Device: /dev/loop0
Extent size: 4MB
Traceback (most recent call last):
File "/usr/bin/xc_vd_tool.py", line 53, in ?
rc = XenoUtil.vd_format(dev, extent_size)
File "/usr/lib/python2.2/site-packages/XenoUtil.py", line 261, in vd_format
part_info = lookup_raw_partn(partition)[0]
TypeError: unsubscriptable objectQuoted 2 lines
Hence, you should be able to implement the equivalent of Xen 1.2 VDs just by using Linux's existing LVM mechanism.
I'm trying to picture how this would work -- LVM volume groups on top of the dom0 VBDs, and then xc.vbd_create() to assign LVM logical volumes to other domains?
Quoted 3 lines
The current tools don't quite allow the full set of functionality that Xen implements, but adding support for LVM partitions should be easy.
What's missing?
Steve
Signature · 11 lines
Stephen G. Traugott (KG6HDQ) UNIX/Linux Infrastructure Architect, TerraLuna LLC [email protected] http://www.stevegt.com -- http://Infrastructures.Org ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 7 lines · Ian Pratt
Quoted 3 lines
You can, in principle, export anything that dom0 sees as a block device e.g. sda7, nbd0, vg0 as a block device in another domain e.g. sda1, hda1.
What about loop devices? Should they work? This
lookup_raw_partn()exception (in 1.2) might be what threw me off:
They won't work in 1.2, but unstable tree has the capability internally.
I fear the current user space tools may still currently give you the lookup error, but I hope we can get this fixed soon. [It's possible that just commenting out the partition check might work...]
I haven't tried it, but using a combination of a loop back device (pointing at a sparse file) and Bin Ren's CoW block driver should then provide CoW sparse disks. Alternatively, it may be possible to do something similar with LVM2 snapshots.
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 9 lines
Quoted 8 lines
An alternative to using a FCAL SAN is to use iSCSI. I've found that the Linux Cisco iSCSI initiator code works nicely, and can either talk to a hardware iSCSI target or to the Ardistech Linux iSCSI s/w target. I've generally configured it such that the domain talks iSCSI directly (using an initrd to enable root to be on the iSCSI volume). Others have configured iSCSI in domain 0 and then exported the partitions to other domains as block devices using the normal VBD mechanism.
Quoted 5 lines
I'd need to use the iSCSI in domain 0 approach (other people's guests...), haven't tried it due to lack of hardware targets, didn't get warm fuzzies from Ardistech's code -- you've had no problems with it though?
FWIW, I managed to get the following combinations of iSCSI initiators/targets to work. Initiators ran in domain 0 while targets ran on a vanilla linux system (no xen). I haven't really stressed the systems though.
UNH Initiator <--> UNH Target
Cisco Initiator <--> UNH Target
Intel PRO/1000 T (Hardware) Initiator <--> UNH Target
A good site that might help is <http://zaal.org/iscsi/>.
Niraj
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 11 lines
FWIW, I managed to get the following combinations of iSCSI initiators/targets to work. Initiators ran in domain 0 while targets ran on a vanilla linux system (no xen). I haven't really stressed the systems though.
UNH Initiator <--> UNH Target
Cisco Initiator <--> UNH Target
Intel PRO/1000 T (Hardware) Initiator <--> UNH TargetA good site that might help is <http://zaal.org/iscsi/>.
Interesting -- I hadn't come across the UNH target or initiator.
The guy on zaal.org is pretty damning of both the UNH and Ardis targets, but has set about writing his own:
http://sourceforge.net/projects/iscsitarget/
This actually looks pretty good, even though it's still an alpha release. I'd be interested to hear if anyone has tried it in anger.
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com