Hi, I need to mount some stuff with the loop device inside a domU, and see that it doesn''t have a loop device: root@mars:[~]$ mount -o loop,noexec,nosuid,rw /.tmpfs /tmp mount: Could not find any loop device. Maybe this kernel does not know about the loop device? (If so, recompile or `modprobe loop''.) So, I try to modprobe the loop device, but can''t. root@mars:[~]$ modprobe loop FATAL: Could not load /lib/modules/2.6.18-128.4.1.el5xen/modules.dep: No such file or directory root@mars:[~]$ uname -a Linux mars.softdux.com 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux It seems like I need the kernel-headers, but when I try and install them, I see that I have the wrong kernel loaded, and take it that this comes directly from the XEN dom0. So, the question is, how would I be able to get the kernel-dev header for 2.6.18-128.4.1.el5xen installed inside the domU? -- Kind Regards Rudi Ahlers CEO, SoftDux Hosting Web: http://www.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Sep-07 05:31 UTC
Re: [Xen-users] how to add loop device support to domU?
On Mon, Sep 7, 2009 at 12:26 PM, Rudi Ahlers<Rudi@softdux.com> wrote:> root@mars:[~]$ modprobe loop > FATAL: Could not load /lib/modules/2.6.18-128.4.1.el5xen/modules.dep: > No such file or directory > > > root@mars:[~]$ uname -a > Linux mars.softdux.com 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 > EDT 2009 x86_64 x86_64 x86_64 GNU/LinuxLooks like RHEL/Centos5 kernel? If so, the loop module is already compiled as a module. You just need to put it at the right place. Here''s from mine: # uname -a Linux eoffice03 2.6.18-128.1.10.el5xen #1 SMP Wed Apr 29 14:24:51 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux # modinfo loop filename: /lib/modules/2.6.18-128.1.10.el5xen/kernel/drivers/block/loop.ko alias: block-major-7-* license: GPL srcversion: 82DB6DB3DABF3B945D6394D depends: vermagic: 2.6.18-128.1.10.el5xen SMP mod_unload gcc-4.1 parm: max_loop:Maximum number of loop devices (1-256) (int) My guess is your domU was created manually, and whoever created it forgot to copy /lib/modules/2.6.18-128.4.1.el5xen directory. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Sep 7, 2009 at 7:31 AM, Fajar A. Nugraha<fajar@fajar.net> wrote:> On Mon, Sep 7, 2009 at 12:26 PM, Rudi Ahlers<Rudi@softdux.com> wrote: > >> root@mars:[~]$ modprobe loop >> FATAL: Could not load /lib/modules/2.6.18-128.4.1.el5xen/modules.dep: >> No such file or directory >> >> >> root@mars:[~]$ uname -a >> Linux mars.softdux.com 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 >> EDT 2009 x86_64 x86_64 x86_64 GNU/Linux > > Looks like RHEL/Centos5 kernel? If so, the loop module is already > compiled as a module. You just need to put it at the right place. > Here''s from mine: > > # uname -a > Linux eoffice03 2.6.18-128.1.10.el5xen #1 SMP Wed Apr 29 14:24:51 EDT > 2009 x86_64 x86_64 x86_64 GNU/Linux > # modinfo loop > filename: /lib/modules/2.6.18-128.1.10.el5xen/kernel/drivers/block/loop.ko > alias: block-major-7-* > license: GPL > srcversion: 82DB6DB3DABF3B945D6394D > depends: > vermagic: 2.6.18-128.1.10.el5xen SMP mod_unload gcc-4.1 > parm: max_loop:Maximum number of loop devices (1-256) (int) > > My guess is your domU was created manually, and whoever created it > forgot to copy /lib/modules/2.6.18-128.4.1.el5xen directory. > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Hi Fajar, I''m using the Stacklet.com images, so they are pre-created. The question is, how do I get the correct XEN kernel headers into the domU, since it''s using a different kernel than the dom0 and yum won''t install the older version -- Kind Regards Rudi Ahlers CEO, SoftDux Hosting Web: http://www.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Sep-07 20:13 UTC
Re: [Xen-users] how to add loop device support to domU?
On Mon, Sep 7, 2009 at 9:44 PM, Rudi Ahlers<Rudi@softdux.com> wrote:> Hi Fajar, > > I''m using the Stacklet.com images, so they are pre-created.Ah :)> > The question is, how do I get the correct XEN kernel headers into the > domU,You don''t have to. You need modules, not headers. The modules are in the same RPM as the kernel.> since it''s using a different kernel than the dom0 and yum won''t > install the older versionSo where is this kernel located? If it''s on domU and loaded with pygrub, you should already have the correct modules in place. If it''s not there, simply install latest kernel-xen. If it''s using dom0 kernel, then simply copy dom0''s relevant /lib/modules/ to domU. BTW, you CAN get older kernels with yumdownloader. Install yum-utils first, and do something like yumdownloader kernel-xen-2.6.18-128.4.1.el5 Then again, this is a pretty old kernel, so I suggest you simply do a "yum install kernel-xen" to get the latest kernel. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users