OpenVZ Forum


Home » General » Support » *SOLVED* Installation problem (urgent)
*SOLVED* Installation problem (urgent) [message #10482] Mon, 19 February 2007 20:23 Go to next message
Kutschka is currently offline  Kutschka
Messages: 24
Registered: February 2007
Junior Member
Hello,

I follow this instruction

http://wiki.openvz.org/Installation_on_Debian

and try to install OpenVZ on Debian Sarge minimal.

I become this message:

"You already have a LILO configuration in /etc/lilo.conf
Install a boot block using the existing /etc/lilo.conf? [Yes] Yes
Testing lilo.conf ...
An error occurred while running lilo in test mode, a log is
available in /var/log/lilo_log.2123. Please edit /etc/lilo.conf
manually and re-run lilo, or make other arrangements to boot
your machine."

In the file /var/log/lilo_log.2123:

"Fatal: open /boot/initrd.img: No such file or directory"

I dont understand what is the problem.

Any idea?

Thank you.

[Updated on: Tue, 20 February 2007 08:24] by Moderator

Report message to a moderator

Re: Installation problem (urgent) [message #10487 is a reply to message #10482] Mon, 19 February 2007 21:04 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

# cat /etc/lilo.conf
# ls -la /boot


http://static.openvz.org/userbars/openvz-developer.png
Re: Installation problem (urgent) [message #10489 is a reply to message #10482] Mon, 19 February 2007 21:22 Go to previous messageGo to next message
stoffell is currently offline  stoffell
Messages: 16
Registered: February 2007
Location: Belgium
Junior Member
I had the same issue on sarge, if your initrd.img does not exist in /boot or /, create it:
cd /boot
mkinitrd -o /boot/initrd.img-2.6.18-028test015.1+31-ovz 2.6.18-028test015.1+31-ovz 

Then link /initrd.img to the correct initrd.img:
ln -s /boot/initrd.img-2.6.18-028test015.1+31-ovz /initrd.img

Re-run lilo -v and see if it's okay now..
Re: Installation problem (urgent) [message #10490 is a reply to message #10482] Mon, 19 February 2007 21:23 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

What bootloader do you use — grub or lilo?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Installation problem (urgent) [message #10491 is a reply to message #10487] Mon, 19 February 2007 21:28 Go to previous messageGo to next message
Kutschka is currently offline  Kutschka
Messages: 24
Registered: February 2007
Junior Member
dev wrote on Mon, 19 February 2007 16:04

# cat /etc/lilo.conf
# ls -la /boot



Hi..

# cat /etc/lilo.conf
boot=/dev/sda
root=/dev/sda2
map=/boot/map
delay=20
vga=normal
default=Linux

image=/boot/vmlinuz
label=Linux
read-only
initrd=/boot/initrd.img
vga=0x314

----------

# ls -la /boot
total 11196
drwxr-xr-x 2 root root 4096 2007-02-19 22:25 .
drwxr-xr-x 19 root root 4096 2007-02-19 22:18 ..
-rw-r--r-- 1 root root 512 2007-02-19 22:18 boot.0800
-rw-r--r-- 1 root root 55215 2007-02-19 22:18 config-2.6.8-3-k7-smp
-rw-r--r-- 1 root root 34060 2007-01-30 01:29 config-2.6.9-023stab040.1-ovz
-rw-r--r-- 1 root root 4939776 2007-02-19 22:18 initrd.img-2.6.8-3-k7-smp
lrwxrwxrwx 1 root root 25 2007-02-19 22:18 initrd.img.old -> initrd.img-2.6.8-3-k7-smp
-rw------- 1 root root 75264 2007-02-19 22:18 map
-rw-r--r-- 1 root root 855116 2007-02-19 22:18 System.map-2.6.8-3-k7-smp
-rw-r--r-- 1 root root 1105287 2007-01-30 01:42 System.map-2.6.9-023stab040.1-ovz
lrwxrwxrwx 1 root root 30 2007-02-19 22:23 vmlinuz -> vmlinuz-2.6.9-023stab040.1-ovz
-rw-r--r-- 1 root root 1215946 2007-02-19 22:18 vmlinuz-2.6.8-3-k7-smp
-rw-r--r-- 1 root root 3124606 2007-01-30 01:42 vmlinuz-2.6.9-023stab040.1-ovz
lrwxrwxrwx 1 root root 22 2007-02-19 22:18 vmlinuz.old -> vmlinuz-2.6.8-3-k7-smp
Re: Installation problem (urgent) [message #10493 is a reply to message #10490] Mon, 19 February 2007 21:40 Go to previous messageGo to next message
Kutschka is currently offline  Kutschka
Messages: 24
Registered: February 2007
Junior Member
kir wrote on Mon, 19 February 2007 16:23

What bootloader do you use — grub or lilo?


lilo. Does it make the problem?
Re: Installation problem (urgent) [message #10494 is a reply to message #10489] Mon, 19 February 2007 22:05 Go to previous messageGo to next message
Kutschka is currently offline  Kutschka
Messages: 24
Registered: February 2007
Junior Member
stoffell wrote on Mon, 19 February 2007 16:22

I had the same issue on sarge, if your initrd.img does not exist in /boot or /, create it:
cd /boot
mkinitrd -o /boot/initrd.img-2.6.18-028test015.1+31-ovz 2.6.18-028test015.1+31-ovz 

Then link /initrd.img to the correct initrd.img:
ln -s /boot/initrd.img-2.6.18-028test015.1+31-ovz /initrd.img

Re-run lilo -v and see if it's okay now..




No:(

/usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed
FATAL: Module ext2 not found.
FATAL: Module ext3 not found.
FATAL: Module xfs not found.
FATAL: Module reiserfs not found.
FATAL: Module raid1 not found.
FATAL: Module 3w_xxxx not found.
FATAL: Module 3w_9xxx not found.
FATAL: Module sata_via not found.
FATAL: Module sata_sil not found.
FATAL: Module sata_nv not found.
FATAL: Module amd74xx not found.
FATAL: Module sd_mod not found.
WARNING: This failure MAY indicate that your kernel will not boot!
but it can also be triggered by needed modules being compiled into
the kernel.
Re: Installation problem (urgent) [message #10503 is a reply to message #10494] Mon, 19 February 2007 23:56 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Did you actually build those modules?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Installation problem (urgent) [message #10508 is a reply to message #10494] Tue, 20 February 2007 06:19 Go to previous messageGo to next message
stoffell is currently offline  stoffell
Messages: 16
Registered: February 2007
Location: Belgium
Junior Member
Kutschka wrote on Mon, 19 February 2007 23:05


WARNING: This failure MAY indicate that your kernel will not boot!
but it can also be triggered by needed modules being compiled into
the kernel.



This "MAY" indicate your kernel won't boot, give it a shot, it might as well work..

Make sure your /boot/initrd.img exists and is referenced from lilo correctly.

Execute lilo -v before you boot!

cheers..
Re: Installation problem (urgent) [message #10511 is a reply to message #10494] Tue, 20 February 2007 07:28 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

As far as I understand, you're installing stable OpenVZ kernel, i.e 2.6.9-023stable.... According to the listing of /boot directory, installation was at least partially successfully: kernel is installed. Please, give us also the listing of /lib/modules/2.6.9-023stab040.1-ovz/kernel/kernel directory in order to be sure, that modules are also installed.
One more check, do
# dpkg -l | grep vz

to check that package is installed.

If everything is ok at first step, then let's try to create initrd image. As marked Kristof (aka stoffell), the messages outputted by mkinitrd are OK, because mentioned modules are compiled in kernel. But you should indicate that this is ok to mkinitrd. It should be done by options:

# mkinitrd --builtin=ext2 --builtin=ext3 --builtin=xfs \
--builtin=reiserfs --builtin=raid1 --builtin=3w_xxxx \
--builtin=3w_9xxx --builtin=sata_via --builtin=sata_sil \
--builtin=amd75xx --builtin=sd_mod  -o /boot/initrd.img-2.6.9-023stab040.1-ovz 2.6.9-023stab040.1-ovz


Then create a link:
ln -s /boot/initrd.img-2.6.9-023stab040.1-ovz /boot/initrd.img


Then run `lilo -v` to install boot sector.

HTH,
Vasily
Re: Installation problem (urgent) [message #10514 is a reply to message #10508] Tue, 20 February 2007 08:08 Go to previous messageGo to next message
Kutschka is currently offline  Kutschka
Messages: 24
Registered: February 2007
Junior Member
stoffell wrote on Tue, 20 February 2007 01:19


Make sure your /boot/initrd.img exists and is referenced from lilo correctly.

Execute lilo -v before you boot!

cheers..



Hello,


/boot/initrd.img2.6... exixts
I have changed the path in the lilo manually and referenced to this file + "lilo -v"
Then I could start the openvz.

I did create a vps, but couldn't start. If I start the VE, I become 2 errors.

Adding IP address(es): 192.168.0.101
arpsend: 192.168.0.101 is detected on another computer : xx:xx:xx:xx:xx:xx

And the second error:
"Unable to start init, probably incorrect template."


If I try all the things on my local Debian3.1 there is no problem. Everything works.
But its not working on my internet server.

Thank you
Kutschka.
Re: Installation problem (urgent) [message #10516 is a reply to message #10514] Tue, 20 February 2007 08:24 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Please, create a new thread for this error, because the subject changed. In addition to the statement of the problem, add there the following information:

1) OS template you're using for problematic VE
2) `ls -l /vz/private/<veid>/sbin/init` output
3) What you see if you run /vz/private/<veid>/sbin/init manually from the node.

Thanks,
Vasily

P.S. And this thread I'm closing as *SOLVED*.
Re: *SOLVED* Installation problem (urgent) [message #10517 is a reply to message #10482] Tue, 20 February 2007 08:25 Go to previous message
Kutschka is currently offline  Kutschka
Messages: 24
Registered: February 2007
Junior Member
Ok thank you.
Previous Topic: locale errors
Next Topic: *SOLVED* sparc64 SunBlade 1000: irrecoverable deferred error trap
Goto Forum:
  


Current Time: Thu Jul 11 16:23:13 GMT 2024

Total time taken to generate the page: 0.02569 seconds