FATAL: Could not load /lib/modules/2.6.24-2-pve/modules.dep

Petrus4

Member
Feb 18, 2009
249
0
16
Hi I just installed Ubuntu 8.04.1 from a downloaded template and I get the following in my init.log:

FATAL: Could not load /lib/modules/2.6.24-2-pve/modules.dep: No such file or directory
I also get these error, but these are more Ubuntu related:

ls: cannot access /sys/module/apparmor: No such file or directory
ls: cannot access /sys/module/apparmor: No such file or directory
$Loading AppArmor module: Failed.
Has anyone encountered any of these error and were you able to resolve them?

Side note: the AppArmor error occurred after installing apache, mysql, php on this server.

Also am unable to get a readout when doing fdisk -l

Perhaps this some of this has to do with running as openVZ container?
 
Last edited:
Yes, the container can't access kernel modules.

- Dietmar

Ok but what about the 2.6.24-2-pve is this not a ProxMox module?

why is the Ubuntu minimal installation trying to access this if the container does not allow access to the kernel modules?

How can I reconfigure my server so that I do not get these errors anymore?

Thanks!
 
This is the directory where module metadata is stored. Containers does not have this directory.



We provide a template without those errors:

ftp://pve.proxmox.com/appliances/system/ubuntu-8.0-standard_8.04-1_i386.tar.gz

- Dietmar

I downloaded the template from the ProxMox-VE management console, which has the same file name, so I am assuming this is the same template:confused: or is the above file a different one?

Does the above template have a directory where module metadata is stored?
 
I downloaded the template from the ProxMox-VE management console, which has the same file name, so I am assuming this is the same template:confused: or is the above file a different one?

you wrote about a Ubuntu minimal installation, we only have a standard template. about which template do we talk?
 
you wrote about a Ubuntu minimal installation, we only have a standard template. about which template do we talk?

just the usual question: do you run the latest Proxmox VE version? (proxversion -v)?

here is the expected log output if you start our Ubuntu template on the lastest Proxmox VE:
(http://pve.proxmox.com/wiki/Ubuntu_Hardy_Standard)

Code:
starting init logger
 * Setting preliminary keymap...         [ OK ] 
 * Starting basic networking...         [ OK ] 
 * Loading kernel modules...         * Loading manual drivers...         [ OK ] 
 * Setting kernel variables...         [ OK ] 
 * Activating swap...         [ OK ] 
mount: permission denied 
 * Mounting local filesystems...         [ OK ] 
 * Activating swapfile swap...         [ OK ] 
 * Checking minimum space in /tmp...         [ OK ] 
 * Skipping firewall: ufw (not enabled)...         [ OK ] 
 * Configuring network interfaces...         [ OK ] 
 * Starting system log daemon...         [ OK ] 
generating ssh host keys 
 * Starting OpenBSD Secure Shell server sshd         [ OK ] 
 * Starting Postfix Mail Transport Agent postfix         [ OK ] 
 * Starting deferred execution scheduler atd         [ OK ] 
 * Starting periodic command scheduler crond         [ OK ] 
 * Running local boot scripts (/etc/rc.local)         [ OK ]
 
you wrote about a Ubuntu minimal installation, we only have a standard template. about which template do we talk?

Sorry for the confusion. I am using the standard Ubuntu template that I downloaded from the ProxMox-VE web managment. So this template should be the same as the link you sent to me, or have you updated the templated since yesterday?
 
Sorry for the confusion. I am using the standard Ubuntu template that I downloaded from the ProxMox-VE web managment. So this template should be the same as the link you sent to me, or have you updated the templated since yesterday?

no, but if you post the version number it will be 100 % clear. and your Proxmox VE version.
 
just the usual question: do you run the latest Proxmox VE version? (proxversion -v)?

Do you mean pveversion -v ? (fully updated) proxversion -v does not work.

Code:
proxmox:~# pveversion -v
pve-manager: 1.1-3 (pve-manager/1.1/3718)
qemu-server: 1.0-10
pve-kernel: 2.6.24-5
pve-kvm: 83-1
pve-firmware: 1
vncterm: 0.9-1
vzctl: 3.0.23-1pve1
vzdump: 1.1-1
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1
ok here is my init.log on the Fully updated template after I had installed PHP, MYSQL, APACHE2

Code:
root@moodle:/var/log# cat init.log
starting init logger
 * Setting preliminary keymap...                                         [ OK ]
 * Starting basic networking...                                          [ OK ]
 * Loading kernel modules...                                                     * Loading manual drivers...                                             [ OK ]
 * Setting kernel variables...                                           [ OK ]
 * Activating swap...                                                    [ OK ]
mount: permission denied
 * Mounting local filesystems...                                         [ OK ]
 * Activating swapfile swap...                                           [ OK ]
ls: cannot access /sys/module/apparmor: No such file or directory
ls: cannot access /sys/module/apparmor: No such file or directory
FATAL: Could not load /lib/modules/2.6.24-2-pve/modules.dep: No such file or directory
$Loading AppArmor module: Failed.
 * Checking minimum space in /tmp...                                     [ OK ]
 * Skipping firewall: ufw (not enabled)...                               [ OK ]
 * Configuring network interfaces...                                     [ OK ]
 * Starting system log daemon...                                         [ OK ]
 * Starting OpenBSD Secure Shell server sshd                             [ OK ]
 * Starting MySQL database server mysqld                                 [ OK ]
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
 * Starting Postfix Mail Transport Agent postfix                         [ OK ]
 * Starting deferred execution scheduler atd                             [ OK ]
 * Starting periodic command scheduler crond                             [ OK ]
 * Starting web server apache2                                           [ OK ]
 * Running local boot scripts (/etc/rc.local)                            [ OK ]
I can uninstall AppArmor.
But how do I get rid of the 2.6.24-2-pve error?
 
Last edited:
yes, I meant pveversion - already sitting 12 hours behind my pc so it looks I get tired :-)

if you install php, mysql and apache2 you will not have any errors so I assume you installed more - remove this and it should go away. if you do not succeed, start again from beginning.
 
I guess that error is caused by apparmor too.

- Dietmar

Yes this error was caused by AppArmor also.

I removed AppArmor by doing

aptitude remove AppArmor

and now the init.log looks as it should.

AppArmor is installed by default when you install MySql on Ubuntu 8.04

Question: So why would this not function on a openVZ container; is this specific to proxmox-ve or to OpenVZ ... I will do some research and post here.

I would like to use appArmor if possible so I am going to see how I can get it to work. Does anyone have any ideas?

One more question about the info in init.log: why do I get this is in the init.log?:

Code:
* Activating swap...                                                    [ OK ]
mount: permission denied
 * Mounting local filesystems...
 
Question: So why would this not function on a openVZ container; is this specific to proxmox-ve or to OpenVZ ... I will do some research and post here.

Ok so it looks like AppArmor is not supported on the OpenVZ supported kernels. so it is specific to openVZ.

They may be looking at implementing this see here
 
One more question about the info in init.log: why do I get this is in the init.log?:

Code:
* Activating swap...                                                    [ OK ]
mount: permission denied
 * Mounting local filesystems...

AFAIK the mount script tries to remount the root partition (but that is not allowed and not required).

- Deitmar
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!