So. I understand this isn''t properly a xen question, although it is something that I am encountering rather /because/ of setting up xen. I''ve successfully compiled a domU kernel and laid it over a rhel4u4 os installed into an image file. One of the things that happens during boot is that redhat doesn''t find the right subdirectory for the domU kernel version in its /lib/modules directory. Traversing over into /lib/modules on the dom0, I find a likely looking directory that matches my domU''s kernel, and I get it ftp''d over to the dom0. This didn''t work exactly as expected. Was it supposed to? Joe. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, 2007-02-24 at 13:02 -0800, Kraska, Joe A (US SSA) wrote:> Traversing over into /lib/modules on the dom0, I find a likely looking > directory that matches my > > domU’s kernel, and I get it ftp’d over to the dom0.You mean over to the dom-u, right? from dom-0 I usually just mount the image and : cp -dpR /lib/modules/2.x.x.x-xenU /mnt/guestfs/lib/modules As long as kernel + modules were compiled with the same version of GCC, and those modules were used in the creation of any initrd you are using in the dom-u, there should be nothing else to do that I know of. What errors are you seeing that lead you to think something isn''t quite right? Best, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> What errors are you seeing that lead you to think something isn''tquite> right?Hmmmmmm. Nothing now (except for some not-found modules, like ip-tables). I wonder if I made the tar before I reran the mkinitrd? Possible. Thanks for the info Joe. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tim Post wrote:> On Sat, 2007-02-24 at 13:02 -0800, Kraska, Joe A (US SSA) wrote: >> Traversing over into /lib/modules on the dom0, I find a likely >> looking directory that matches my >> >> domU’s kernel, and I get it ftp’d over to the dom0. > > You mean over to the dom-u, right? > > from dom-0 I usually just mount the image and : > > cp -dpR /lib/modules/2.x.x.x-xenU /mnt/guestfs/lib/modules"cp -a" is easier and better because it duplicates symlinks and hardlinks correctly. This doesn''t matter so much for kernel modules, but can matter for more intricate directories. If you want the directories to match exactly, "rsync -avH --delete" is even better. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I''ve successfully compiled a domU kernel and laid it over a rhel4u4 os > installed into an image file.Cool.> One of the things that happens during boot is that redhat doesn''t find > the right subdirectory for > > the domU kernel version in its /lib/modules directory. > > Traversing over into /lib/modules on the dom0, I find a likely looking > directory that matches my > > domU''s kernel, and I get it ftp''d over to the dom0.Do you mean to the domU? Unlike the vmlinuz, the modules do need to be in the guest filesystem, not in dom0. Are you getting any specific error messages from RHEL? Cheers, Mark -- 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
> Do you mean to the domU? Unlike the vmlinuz, the modules do need tobe in the> guest filesystem, not in dom0. > > Are you getting any specific error messages from RHEL?Yes. I meant domU. Either I did this wrong the first time, or what I saw was some non fatal warnings about iptables and the such. Been doing linux since before there was a redhat, but I''ve never gotten quite this close to the metal before: perhaps I overreacted to the original messages. Things are okay now. Knowing that copying the appropriate /lib/modules directory from the dom0 to the domU was correct was what I was looking for. Thank you. Joe. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users