Author Topic: Diskless Media Director: Could not find kernel image  (Read 836 times)

Advil

  • Newbie
  • *
  • Posts: 11
    • View Profile
Diskless Media Director: Could not find kernel image
« on: October 15, 2012, 04:52:31 am »
I reinstalled the core to 8.10.
Ran diskless_createtbz.sh
When I boot from the diskless media director, get the following error:

Could not find kernel image: 42/vmlinuz

This was the device number it had with the previous install.

The media director does not appear to be going out and registering as a new device to the core.

Thanks



posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3045
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Diskless Media Director: Could not find kernel image
« Reply #1 on: October 15, 2012, 01:06:27 pm »
Check the softlinks from /tftpboot/42/vmlinuz and /tftpboot/42/initrd.img - do their targets exist? If not, amend that link to point to the correct initrd.img and vmlinuz in /usr/pluto/diskless/42/boot

Advil

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Diskless Media Director: Could not find kernel image
« Reply #2 on: October 15, 2012, 03:24:39 pm »
The directory "diskless" doesn't exist on the core.

As you mention, the media director is trying to find the image from the previous core image.

Here's the directory listing from the core:

linuxmce@dcerouter:/usr/pluto$ ls -la
total 180
drwxr-xr-x 18 root root  4096 2012-10-01 21:54 .
drwxr-xr-x 15 root root  4096 2012-09-27 18:37 ..
drwxr-xr-x  4 root root 20480 2012-10-11 10:26 bin
lrwxrwxrwx  1 root root    16 2012-10-01 21:54 coredump -> /home/coredump/1
drwxr-xr-x  2 root root  4096 2012-09-27 19:21 database
drwxr-xr-x  2 root root 94208 2011-09-05 20:26 deb-cache
drwxr-xr-x  2 root root  4096 2012-09-27 18:05 dummy-packages
drwxr-xr-x  2 root root  4096 2012-10-11 10:25 install
drwxr-xr-x  2 root root  4096 2012-09-27 18:07 installers
drwxr-xr-x  2 root root  4096 2012-09-27 18:46 keys
drwxr-xr-x  2 root root  4096 2012-09-27 20:39 lib
drwxrwxrwx  2 root root  4096 2012-10-15 09:20 locks
drwxr-xr-x 11 root root  4096 2012-09-27 18:50 orbiter
drwxr-xr-x  2 root root  4096 2012-09-27 18:05 pnp
drwxr-xr-x  2 root root  4096 2012-09-27 18:15 share
drwxr-xr-x  2 root root  4096 2012-09-27 18:50 sources
drwxr-xr-x  2 root root  4096 2012-09-27 18:14 templates
drwxr-xr-x  2 root root  4096 2012-10-04 21:31 var
drwxr-xr-x  2 root root  4096 2012-09-27 18:14 wiz_pixmaps

from tftpboot:

linuxmce@dcerouter:/tftpboot/42$ ls -la
total 8
drwxr-xr-x 2 root root 4096 2012-09-22 13:05 .
drwxr-xr-x 5 root root 4096 2012-10-15 09:26 ..
lrwxrwxrwx 1 root root   56 2012-09-22 13:05 initrd.img -> /usr/pluto/diskless/42/boot/initrd.img-2.6.27-17-generic
lrwxrwxrwx 1 root root   53 2012-09-22 13:05 vmlinuz -> /usr/pluto/diskless/42/boot/vmlinuz-2.6.27-17-generic


« Last Edit: October 15, 2012, 03:31:27 pm by Advil »

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3045
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Diskless Media Director: Could not find kernel image
« Reply #3 on: October 15, 2012, 03:49:41 pm »
If the diskless subdirectory does not exist, something bad happened. I assume you restored your database to the new install? If yes, go into web admin, Media Director, and click Rebuild Image for your MD with the ID 42. That will take a while. When completed, check if the diskless dir exists, and report back.

Advil

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Diskless Media Director: Could not find kernel image
« Reply #4 on: October 15, 2012, 04:01:55 pm »
I didn't restore the DB after the new install, just started fresh.

My steps (in case this helps).

1) Reran the 8.10 install from the DVD - which formatted the hard drive.
2) Ran the diskless_create script.
3) Booted the MD and got the above error.

The MD was device 42 on the previous core install. 

The only MD listed in the web admin is the core.

Tx

Advil

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Diskless Media Director: Could not find kernel image - SOLVED
« Reply #5 on: October 15, 2012, 07:05:33 pm »
I deleted the subdirectory tftpboot/42 and the file 01-90-fb-a6-86-0f-b6 in pxelinux.cfg.

The file 01-90-fb-a6-86-0f-b6 had the following:

DEFAULT Pluto
LABEL Pluto
KERNEL 42/vmlinuz
APPEND initrd=42/initrd.img ramdisk=10240 rw root=/dev/nfs boot=nfs nfsroot=192.168.80.1:/usr/pluto/diskless/42 quiet splash video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap

I rebooted the MD, and it has announced itself to the router and running setup.

thx