Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th May 2007, 09:38
milos milos is offline
Junior Member
 
Join Date: May 2007
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default Debian Etch: After the kernel package install, lilo.conf is not changed

Hi
Actually, since this is my first message here, let me yell: Hello World!

Now, the problem:
I got a Debian 4.0 Etch webserver, with AMD Athlon 64 X2 4200+ Dual Core, 2GB of RAM and 2 300GB SATA disks.
I've been "playing" with it for the last week or two (i'm no guru, just an ad hoc admin) and, although i'm satisfied with how everything works, it seems that have a problem:

First it looked like I'm unable to install any of the "virtual server" software. I tried OpenVZ, Xen and Linux Vserver and with all of them i get the same symptoms:
Installation passes ok, i get the "installation successful" message, but when i reboot -it doesn't work.

I noticed that when i enter the "uname -r" command after reboot, it shows the same kernel which was before the installation.
I checked the /boot dir and saw that all of the image files are there.
Finally, i checked lilo.conf and i saw that it remains unchanged...
This is the lilo.conf (it's same before and after install):
Code:
boot=/dev/sda
root=/dev/sda2
map=/boot/map
delay=20
default=Standardkernel

image=/boot/vmlinuz
        label=Standardkernel
        read-only
        initrd=/boot/initrd.img
Here's the contents of /boot dir after the installation of vserver (i prefer OpenVZ, but this is just a copy/paste after one of the tries):
Code:
boot.0800            
boot.0810            
map
config-2.6.18-4-amd64    
config-2.6.18-4-vserver-amd64    
System.map-2.6.18-4-amd64
System.map-2.6.18-4-vserver-amd64
initrd.img
initrd.img-2.6.18-4-vserver-amd64
initrd.img-2.6.18-4-amd64    
initrd.img-2.6.18-4-amd64.bak    
vmlinuz
vmlinuz-2.6.18-4-amd64
vmlinuz-2.6.18-4-vserver-amd64
As you can see, the image files are there...

I would try to change the lilo.conf manually and add the lines needed to boot the new kernel, but i'm away from the computer and so i depend on SSH i.e. if the system doesn't boot, i'm lost...

Can anyone help me to diagnose this problem?

Thanks,
Milos
Reply With Quote
Sponsored Links
  #2  
Old 29th May 2007, 13:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You must change /etc/lilo.conf manually and run
Code:
lilo
afterwards, then you must reboot. There's no other way...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th May 2007, 23:44
milos milos is offline
Junior Member
 
Join Date: May 2007
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks, Falko

I did it, but i must have made some error, because it didn't boot afterwards...

Good news is that i learned how to use my provider's Rescue System, it worked perfectly, yeah!

So, now that my server is back from the dead, can i ask you a favor to tell me what should i add in the lilo.conf?
This is my lilo.conf:
Code:
boot=/dev/sda
root=/dev/sda2
map=/boot/map
delay=20
default=Standardkernel

image=/boot/vmlinuz
        label=Standardkernel
        read-only
        initrd=/boot/initrd.img
This was what i added (and it didn't work):
Code:
image=/boot/vmlinuz-2.6.18-openvz-amd64
        label=OpenvzKernel
        read-only
        initrd=/boot/initrd.img
And, finally, here's the contents of /boot directory:
Code:
server1:~# dir /boot
boot.0800                       map
boot.0810                       patches-2.6.18-openvz-amd64
config-2.6.18-4-amd64           System.map-2.6.18-4-amd64
config-2.6.18-openvz-amd64      System.map-2.6.18-openvz-amd64
initrd.img                      vmlinuz
initrd.img-2.6.18-4-amd64       vmlinuz-2.6.18-4-amd64
initrd.img-2.6.18-4-amd64.bak   vmlinuz-2.6.18-openvz-amd64
initrd.img-2.6.18-openvz-amd64
Many thanks in advance!
Reply With Quote
  #4  
Old 30th May 2007, 17:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please use initrd.img-2.6.18-openvz-amd64 instead of initrd.img (
Code:
initrd=/boot/initrd.img-2.6.18-openvz-amd64
). And set default to OpenvzKernel.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
milos (30th May 2007)
  #5  
Old 30th May 2007, 20:54
milos milos is offline
Junior Member
 
Join Date: May 2007
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

It works! Thanks!
Reply With Quote
  #6  
Old 30th May 2007, 23:16
milos milos is offline
Junior Member
 
Join Date: May 2007
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Sorry, wrong template, my mistake
You may delete this message. Thanks again!

Last edited by milos; 30th May 2007 at 23:55.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 20:02
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 12:59
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 11:14


All times are GMT +2. The time now is 22:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.