Hi, After having successfuly installed a test xen 3 on an ubuntu server, I find myself struggling with the install of what should be my production xen 2 server, running on RH Advanced Server 3. I had all the prerequisites installed, xen-2.0.7 itself installed, and I''m right at the stage before booting the xen kernel. My problem is that the hardware I''m using has SCSI disks, with a controller I need to load as module; this step was just a breeze on Ubuntu: depmod -a and mkinitramfs, add a line in the grub configuration file, reboot and voila. Now on RHAS it seems to be another story: depmod -a <xen kernel version> throws unresolved symbols error messages, and the mkinitrd command obviously does not create the initrd image. Does anyone know how I can build my initrd image on this version of Redhat so that I can boot the xen kernel ? Any help appreciated. Cheers, Quentin. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/26/06, BB Mailing list <bb.mlist@gmail.com> wrote:> Hi,Hi,> After having successfuly installed a test xen 3 on an ubuntu server, I find > myself struggling with the install of what should be my production xen 2 > server, running on RH Advanced Server 3. I had all the prerequisites > installed, xen-2.0.7 itself installed, and I''m right at the stage before > booting the xen kernel.Is there a reason to use xen 2 on the RH server instead of xen 3 ? I''m pretty sure xen 3 would work too (I haven''t used RHEL 3 as a dom0 for a while though...).> My problem is that the hardware I''m using has SCSI disks, with a controller > I need to load as module; this step was just a breeze on Ubuntu: depmod -a > and mkinitramfs, add a line in the grub configuration file, reboot and > voila. > > Now on RHAS it seems to be another story: depmod -a <xen kernel version> > throws unresolved symbols error messages, and the mkinitrd command obviously > does not create the initrd image. > > Does anyone know how I can build my initrd image on this version of Redhat > so that I can boot the xen kernel ?I''ve had problems with the auto-generated initrd file on some servers too. What I usually do is: - boot with the regular RHEL kernel - do a ''lsmod'' to see the loaded modules and write down the ones related to SCSI/SATA/SAS controllers and disks - rebuild the xen initrd with ''mkinitrd -v --with=<module-1> --with=<module-2> -f /boot/initrd-<version> <version>'', adding the necessary modules - reboot and enjoy :) If you don''t know what modules to add, you can send the output of ''lsmod'' and I''ll try to see what''s needed. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> After having successfuly installed a test xen 3 on an ubuntu server, I find > myself struggling with the install of what should be my production xen 2 > server, running on RH Advanced Server 3. I had all the prerequisites > installed, xen-2.0.7 itself installed, and I''m right at the stage before > booting the xen kernel.I don''t think I''d Xen 2 on a server? Xen 3 is better supported in that it receives regular bugfixing with each release. There are known problems with Xen 2 which don''t look like being fixed, I''m afraid. OTOH, Xen 2 systems have been known to make extremely long uptimes, just that it''s not necessarily any more stable than Xen 3 because it doesn''t receive fixes. Cheers, Mark> My problem is that the hardware I''m using has SCSI disks, with a controller > I need to load as module; this step was just a breeze on Ubuntu: depmod -a > and mkinitramfs, add a line in the grub configuration file, reboot and > voila. > > Now on RHAS it seems to be another story: depmod -a <xen kernel version> > throws unresolved symbols error messages, and the mkinitrd command > obviously does not create the initrd image. > > Does anyone know how I can build my initrd image on this version of Redhat > so that I can boot the xen kernel ? > > Any help appreciated. > > Cheers, > > Quentin.-- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Still a bit confused by how gmail groups the messages, I realize I sent my responses to Mark and Eric-Olivier without CCing the list; here they are: I''ve had problems with the auto-generated initrd file on some servers too. What I usually do is: - boot with the regular RHEL kernel - do a ''lsmod'' to see the loaded modules and write down the ones related to SCSI/SATA/SAS controllers and disks - rebuild the xen initrd with ''mkinitrd -v --with=<module-1> --with=<module-2> -f /boot/initrd-<version> <version>'', adding the necessary modules - reboot and enjoy :) If you don''t know what modules to add, you can send the output of ''lsmod'' and I''ll try to see what''s needed. Hi, Thanks for the reply; I didn''t know you could pass the module names directly to the mkinitrd command, that sounded like a good idea, but here is the output: # mkinitrd -v --with=sg --with=sd_mod --with=e1000 --with=megaraid2 --with=aic7xxx --with=diskdumplib --with=scsi_mod -f /boot/initrd- 2.4.30-xen0 2.4.30-xen0 Looking for deps of module scsi_mod Looking for deps of module sd_mod Looking for deps of module unknown Looking for deps of module aic7xxx No module aic7xxx found for kernel 2.4.30-xen0 , aborting. Still not initrd in /boot :( Quentin I don''t think I''d Xen 2 on a server? Xen 3 is better supported in that it receives regular bugfixing with each release. There are known problems with Xen 2 which don''t look like being fixed, I''m afraid. OTOH, Xen 2 systems have been known to make extremely long uptimes, just that it''s not necessarily any more stable than Xen 3 because it doesn''t receive fixes. Cheers, Mark I overlooked the xen 2 vs xen 3 question: I thought xen 3 required a 2.6kernel, that''s why I went for xen 2 ! Now I''m more than happy if it''s not the case ! Cheers, Quentin. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/26/06, BB Mailing list <bb.mlist@gmail.com> wrote:> Hi,Hi,> Thanks for the reply; I didn''t know you could pass the module names directly > to the mkinitrd command, that sounded like a good idea, but here is the > output: > > # mkinitrd -v --with=sg --with=sd_mod --with=e1000 --with=megaraid2 > --with=aic7xxx --with=diskdumplib --with=scsi_mod -f /boot/initrd- > 2.4.30-xen0 2.4.30-xen0 > Looking for deps of module scsi_mod > Looking for deps of module sd_mod > Looking for deps of module unknown > Looking for deps of module aic7xxx > No module aic7xxx found for kernel 2.4.30-xen0 , aborting. > > Still not initrd in /boot :(Hmmm, is aic7xxx compiled as a module in the xen 2 kernel ? What does a find /lib/modules/*xen* -name aic\* give ? I''ve just looked on a server using xen 3.0.3 and the module is there.> I overlooked the xen 2 vs xen 3 question: I thought xen 3 required a 2.6 > kernel, that''s why I went for xen 2 ! > Now I''m more than happy if it''s not the case !Well, you could run a 2.6 kernel on RHEL 3. Actually, I think you can forget about your RHN support if you run a non-RedHat kernel anyway, so you might as well go with a 2.6 one. The only package I need to change on a RHEL 3.7 server to run a 2.6 kernel is modules-init-tools (just get it from RHEL 4). _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I don''t think aic7xxx is compiled in the xen 2 kernel, find /lib/modules/*xen* -name aic\* gives nothing :( I would love to run xen 3 (which actually worked when I installed it on Ubuntu, and which would probably work like a breeze on Redhat AS4) but: 1. I need Redhat AS3 images as DomUs (and could not find such ready made images) 2. I need a 2.4 kernel for the DomUs (as close as possible to the one shipped with Redhat AS3) So I thought the easiest way would be to have RHAS 3 as Dom0, but I realize it''s not that easy and from another thread I understand I cannot have a 2.4kernel running on top of a 2.6 xen kernel. I''m pretty much stuck here. Quentin 2006/10/27, Eric-Olivier Lamey <eolamey@gmail.com>:> > On 10/26/06, BB Mailing list <bb.mlist@gmail.com> wrote: > > Hi, > > Hi, > > > Thanks for the reply; I didn''t know you could pass the module names > directly > > to the mkinitrd command, that sounded like a good idea, but here is the > > output: > > > > # mkinitrd -v --with=sg --with=sd_mod --with=e1000 --with=megaraid2 > > --with=aic7xxx --with=diskdumplib --with=scsi_mod -f /boot/initrd- > > 2.4.30-xen0 2.4.30-xen0 > > Looking for deps of module scsi_mod > > Looking for deps of module sd_mod > > Looking for deps of module unknown > > Looking for deps of module aic7xxx > > No module aic7xxx found for kernel 2.4.30-xen0 , aborting. > > > > Still not initrd in /boot :( > > Hmmm, is aic7xxx compiled as a module in the xen 2 kernel ? What does a > find /lib/modules/*xen* -name aic\* > give ? > > I''ve just looked on a server using xen 3.0.3 and the module is there. > > > I overlooked the xen 2 vs xen 3 question: I thought xen 3 required a 2.6 > > kernel, that''s why I went for xen 2 ! > > Now I''m more than happy if it''s not the case ! > > Well, you could run a 2.6 kernel on RHEL 3. Actually, I think you > can forget about your RHN support if you run a non-RedHat kernel > anyway, so you might as well go with a 2.6 one. The only package I > need to change on a RHEL 3.7 server to run a 2.6 kernel is > modules-init-tools (just get it from RHEL 4). >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/30/06, BB Mailing list <bb.mlist@gmail.com> wrote:> Hi,Hi,> I don''t think aic7xxx is compiled in the xen 2 kernel, find > /lib/modules/*xen* -name aic\* gives nothing :(Maybe it is compiled in the kernel and the error you get at boot comes from another missing module ? When you boot the regular RHEL 3 kernel, what is the output of ''lsmod'' ?> I would love to run xen 3 (which actually worked when I installed it on > Ubuntu, and which would probably work like a breeze on Redhat AS4) but: > > 1. I need Redhat AS3 images as DomUs (and could not find such ready made > images)There are lots of different ways to install a RHEL 3 domU, even dom0 is not running RHEL 3. I''m using anaconda for example so that I can reuse our kickstart infrastructure.> 2. I need a 2.4 kernel for the DomUs (as close as possible to the one > shipped with Redhat AS3) > > So I thought the easiest way would be to have RHAS 3 as Dom0, but I realize > it''s not that easy and from another thread I understand I cannot have a 2.4 > kernel running on top of a 2.6 xen kernel.You cannot have a non-xen aware kernel as a domU when using non-VT hardware.> I''m pretty much stuck here.Well, I guess the only way to make this work (i.e having a standard RHEL 3 kernel) is to use a VT enabled server. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Here is the output of lsmod: Module Size Used by Not tainted audit 90808 2 (autoclean) usbserial 23868 0 (autoclean) (unused) lp 9156 0 (autoclean) parport 38848 0 (autoclean) [lp] autofs4 16856 0 (autoclean) (unused) e1000 78652 1 floppy 57520 0 (autoclean) sg 37388 0 (autoclean) microcode 6912 0 (autoclean) keybdev 2944 0 (unused) mousedev 5656 1 hid 22532 0 (unused) input 6176 0 [keybdev mousedev hid] ehci-hcd 20776 0 (unused) usb-uhci 26860 0 (unused) usbcore 81152 1 [usbserial hid ehci-hcd usb-uhci] ext3 89960 4 jbd 55156 4 [ext3] megaraid2 38376 5 aic7xxx 163120 0 (unused) diskdumplib 5260 0 [megaraid2 aic7xxx] sd_mod 14128 10 scsi_mod 115496 4 [sg megaraid2 aic7xxx sd_mod]>I''m using anaconda for example so that I can reuse our kickstartinfrastructure How do you install the base system? Can you do this using anaconda? (I''m not a Redhat person, pity I have to run it ). I was using debootstrap on Unbuntu, which worked like a charm.>You cannot have a non-xen aware kernel as a domU when using non-VThardware. That''s what I understood from the previous thread I had on the list, if I can have multiple DomUs with 2.4 kernel running Redhat AS3, even if it''s not the standart Redhat kernel, I''ll be very happy !!>Well, I guess the only way to make this work (i.e having a standard RHEL 3kernel) is to use a VT enabled server. I am using Dell Poweredge 1850 with Xeon processors - no idea whether this is VT compatible. Quentin. 2006/10/30, Eric-Olivier Lamey <eolamey@gmail.com>:> > On 10/30/06, BB Mailing list <bb.mlist@gmail.com> wrote: > > Hi, > > Hi, > > > I don''t think aic7xxx is compiled in the xen 2 kernel, find > > /lib/modules/*xen* -name aic\* gives nothing :( > > Maybe it is compiled in the kernel and the error you get at boot > comes from another missing module ? When you boot the regular RHEL 3 > kernel, what is the output of ''lsmod'' ? > > > I would love to run xen 3 (which actually worked when I installed it on > > Ubuntu, and which would probably work like a breeze on Redhat AS4) but: > > > > 1. I need Redhat AS3 images as DomUs (and could not find such ready made > > images) > > There are lots of different ways to install a RHEL 3 domU, even dom0 > is not running RHEL 3. I''m using anaconda for example so that I can > reuse our kickstart infrastructure. > > > 2. I need a 2.4 kernel for the DomUs (as close as possible to the one > > shipped with Redhat AS3) > > > > So I thought the easiest way would be to have RHAS 3 as Dom0, but I > realize > > it''s not that easy and from another thread I understand I cannot have a > 2.4 > > kernel running on top of a 2.6 xen kernel. > > You cannot have a non-xen aware kernel as a domU when using non-VT > hardware. > > > I''m pretty much stuck here. > > Well, I guess the only way to make this work (i.e having a standard > RHEL 3 kernel) is to use a VT enabled server. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/30/06, BB Mailing list <bb.mlist@gmail.com> wrote:> Here is the output of lsmod: > > Module Size Used by Not tainted > [...] > megaraid2 38376 5 > aic7xxx 163120 0 (unused) > diskdumplib 5260 0 [megaraid2 aic7xxx] > sd_mod 14128 10 > scsi_mod 115496 4 [sg megaraid2 aic7xxx sd_mod]Ok, so you have to make sure those functionalities are either compiled in the kernel or available as modules. Xen should put a "config-<version>" file in the /boot directory with the compile time kernel config used.> How do you install the base system? Can you do this using anaconda? (I''m not > a Redhat person, pity I have to run it ). > I was using debootstrap on Unbuntu, which worked like a charm.You can reproduce any install using anaconda. Here''s what I do: - produce kickstat files for the different profiles I need (you can use a graphical tool to produce a kickstart file, start from scratch or get one from /root just after an install) - setup a web server with the RPMs from the CDs - in the dom0 server, mount the partition that the domU will use - in the dom0, run: anaconda --text --headless \ --rootpath="${installdir}" \ --method="${baseurl}/${distribution}/i386/install" \ --kickstart="${ksfile}" where "installdir" is the domU''s partition mount point.> That''s what I understood from the previous thread I had on the list, if I > can have multiple DomUs with 2.4 kernel running Redhat AS3, even if it''s not > the standart Redhat kernel, I''ll be very happy !!I don''t think that''s possible with Xen 3.> I am using Dell Poweredge 1850 with Xeon processors - no idea whether this > is VT compatible.I don''t think that the Xeon CPUs in the 1850 are VT enabled (the 1950 are). Just to make sure, please to a: cat /proc/cpuinfo | grep flags and look for "vmx". If it''s there, you have VT. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok, so you have to make sure those functionalities are either> compiled in the kernel or available as modules. Xen should put a > "config-<version>" file in the /boot directory with the compile time > kernel config used.>From the file config-2.4.30-xen0:CONFIG_SCSI_AIC7XXX=y # CONFIG_SCSI_MEGARAID2 is not set I can''t find any entry for diskdumplib, scsi_mod and sd_mod.> cat /proc/cpuinfo | grep flags > > and look for "vmx". If it''s there, you have VT. >cat /proc/cpuinfo | grep flags fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm Sob. Quentin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users