yes, i did it, but... because my english is poor, i prefer copy and
paste the results below
# depmod 2.6.24-22-xen
WARNING: Couldn''t open directory /lib/modules/2.6.24-22-xen: No such
file or directory
FATAL: Could not open /lib/modules/2.6.24-22-xen/modules.dep.temp for
writing: No such file or directory
# mkdir /lib/modules/2.6.24-22-xen
# depmod 2.6.24-22-xen
# ls -l /lib/modules/2.6.24-22-xen/
total 40
-rw-r--r-- 1 root root 45 Dec 16 13:53 modules.alias
-rw-r--r-- 1 root root 69 Dec 16 13:53 modules.ccwmap
-rw-r--r-- 1 root root 0 Dec 16 13:53 modules.dep
-rw-r--r-- 1 root root 73 Dec 16 13:53 modules.ieee1394map
-rw-r--r-- 1 root root 141 Dec 16 13:53 modules.inputmap
-rw-r--r-- 1 root root 81 Dec 16 13:53 modules.isapnpmap
-rw-r--r-- 1 root root 74 Dec 16 13:53 modules.ofmap
-rw-r--r-- 1 root root 99 Dec 16 13:53 modules.pcimap
-rw-r--r-- 1 root root 43 Dec 16 13:53 modules.seriomap
-rw-r--r-- 1 root root 49 Dec 16 13:53 modules.symbols
-rw-r--r-- 1 root root 189 Dec 16 13:53 modules.usbmap
but when I try use iptables
# iptables -L
FATAL: Module ip_tables not found.
iptables v1.3.8: can''t initialize iptables table `filter'':
iptables who?
(do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
because there is not the modules files, but instead its are in the
previous kernel version
# ls -l /lib/modules/2.6.24-21-xen
total 1828
drwxr-xr-x 2 root root 4096 Aug 25 17:01 initrd
drwxr-xr-x 9 root root 4096 Oct 16 14:39 kernel
<<<<<<<
drwxr-xr-x 2 root root 4096 Oct 16 14:39 madwifi
-rw-r--r-- 1 root root 410400 Nov 7 11:41 modules.alias
-rw-r--r-- 1 root root 69 Nov 7 11:41 modules.ccwmap
-rw-r--r-- 1 root root 339971 Nov 7 11:41 modules.dep
-rw-r--r-- 1 root root 813 Nov 7 11:41 modules.ieee1394map
-rw-r--r-- 1 root root 527 Nov 7 11:41 modules.inputmap
-rw-r--r-- 1 root root 18759 Nov 7 11:41 modules.isapnpmap
-rw-r--r-- 1 root root 74 Nov 7 11:41 modules.ofmap
-rw-r--r-- 1 root root 322421 Nov 7 11:41 modules.pcimap
-rw-r--r-- 1 root root 1177 Nov 7 11:41 modules.seriomap
-rw-r--r-- 1 root root 174414 Nov 7 11:41 modules.symbols
-rw-r--r-- 1 root root 529071 Nov 7 11:41 modules.usbmap
drwxr-xr-x 13 root root 4096 Oct 16 14:39 ubuntu
drwxr-xr-x 2 root root 4096 Nov 7 11:42 volatile
# ls -l /lib/modules/2.6.24-21-xen/kernel
total 28
drwxr-xr-x 3 root root 4096 Oct 16 14:39 arch
drwxr-xr-x 3 root root 4096 Nov 7 11:40 crypto
drwxr-xr-x 48 root root 4096 Oct 16 14:39 drivers
drwxr-xr-x 49 root root 4096 Nov 7 11:40 fs
drwxr-xr-x 5 root root 4096 Nov 7 11:40 lib
drwxr-xr-x 37 root root 4096 Oct 16 14:39 net
drwxr-xr-x 12 root root 4096 Nov 7 11:40 sound
etc..
So, the solution for me was copy modules files from Dom0. But what
happens if i have 40 VMs? I have a headache
Thanks for your replies
Regards,
Esteban
Steven Timm escribió:> Esteban, did you run depmod after you installed the
> new kernel package? That''s how you make a modules.dep file.
>
> just say
>
> depmod 2.6.24-22-xen
>
> and it should work.
>
> Steve
>
>
> On Fri, 12 Dec 2008, Esteban Cerutti wrote:
>
>> Hi,
>>
>> please, excuse my poor English
>>
>> Exist any tool for upgrade kernel automatically in DomU machines?
>> Because I have the following problem:
>>
>> After upgrade the kernel package from linux-image-2.6.24-21-xen to
>> linux-image-2.6.24-22-xen in Dom0 (an Ubuntu Server), I modified the
>> config files in /etc/xen/domUmachine.cfg for all my VM. Later a
>> restarted its, but i found the following error
>>
>> // DomU //
>>
>> # uname -a
>> Linux DomUmachine 2.6.24-22-xen #1 SMP Mon Nov 24 21:35:54 UTC 2008
>> x86_64 GNU/Linux
>>
>> # ls /lib/modules
>> 2.6.24-21-xen
>>
>> # iptables -L
>> FATAL: Could not load /lib/modules/2.6.24-22-xen/modules.dep: No such
>> file or directory
>> iptables v1.3.8: can''t initialize iptables table
`filter'': iptables who?
>> (do you need to insmod?)
>> Perhaps iptables or your kernel needs to be upgraded.
>>
>> // Dom0 //
>>
>> # uname -a
>> Linux Dom0machien 2.6.24-22-xen #1 SMP Mon Nov 24 21:35:54 UTC 2008
>> x86_64 GNU/Linux
>>
>> I solved this problem copying /lib/modules/2.6.24-22-xen from Dom0 to
>> DomU
>>
>> // Dom0 //
>>
>> # xm shutdown DomUmachine
>>
>> # mount /dev/vg1/DomUmachine-disk /mnt/DomUmachine/
>>
>> # mkdir /mnt/DomUMahcine/2.6.24-22-xen
>>
>> # cp -a /lib/modules/2.6.24-22-xen/* /mnt/DomUmachine/2.6.24-22-xen
>>
>> but it is possible than exist a tool that do this work automatically?
>> (similar to xen-update-image)
>>
>> Thanks,
>> Esteban
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@lists.xensource.com
>> http://lists.xensource.com/xen-users
>>
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users