Using different Kernels for different machines



  • Current Setup: FOG 1.2.0 on Ubuntu 14.04.1 LTS

    Task: Imaging machines
    So far the default kernel has been functioning perfect for my machines except one Optiplex 760 (the others are different).
    I have downloaded the compatible kernel but when I pxe the machine it says “no such file or directory” when trying to load the kernel!

    I have tried adding the exact new kernel path under “Host Kernel” for that specific host with no luck any ideas?

    I tried googling and searching the forum without success any help would be great!


  • Senior Developer

    If your images are starting at sector 63, you may look into updating to SVN as I’ve made fixes that should allow your systems to not only image, but also boot after they’re completed.



  • [quote=“Tom Elliott, post: 38825, member: 7271”]Is it more likely your hdd has GPT info still on it, or that you’re using an image that started at sector 63?[/quote]

    I will Check these settings once I get back in the office, Thanks again for all your great support/feedback!


  • Senior Developer

    Is it more likely your hdd has GPT info still on it, or that you’re using an image that started at sector 63?



  • [quote=“Junkhacker, post: 38805, member: 21583”]are you trying to upload or download?[/quote]
    I am trying to download a Windows 7 image to the machine.


  • Developer

    are you trying to upload or download?



  • [quote=“Junkhacker, post: 38802, member: 21583”]does a partition currently exist on the drive?[/quote]

    Yea I made sure to create one using a Windows 7 setup disk there is the 100mb OEM, 100mb system, 73GB ntfs


  • Developer

    does a partition currently exist on the drive?



  • [quote=“Tom Elliott, post: 38788, member: 7271”]You can try my kernels.

    Any of them should support the Optiplex 760. I don’t know how you’re connecting things though.

    bzImage is a 64 bit kernel that requires a 64 bit init. FOG 1.x.x bzImage and init.xz are the files in pair. It also detects the architecture of the system (64 bit or 32 bit) and uses the proper files. If the arch is not 64 bit, it assumes 32 bit and loads bzImage32/init_32.xz. Either one or the other should work even with kernel’s greater than 3.0.1. 3.17.2 should work perfectly for your needs.[/quote]

    Thanks for your advice!

    I tried Kernel - 3.14.2 this morning without success.

    This is the message I get when pxe booting:

    Configuring (net0 00:…etc)…ok
    /default.ipxe…ok
    [url]http://10.10.10.230/fog/service/ipxe/boot.php…ok[/url]
    /nov14bzImage…ok
    /init.xz…ok
    esas2r: driver will not be loaded because no ATT0 esas2r devices were found
    i2c-parport-light: adapter type unspecified

    Then right after it goes into the check process where it says:
    Checking Operating System…Windows7
    …etc
    …etc (all checks come back as DONE no errors appear) then;

    Task is completed computer will now restart. #It shutsdown the machine and nothing else happens.

    I have installed the latest BIOS A16 with no success either.


  • Senior Developer

    You can try my kernels.

    Any of them should support the Optiplex 760. I don’t know how you’re connecting things though.

    bzImage is a 64 bit kernel that requires a 64 bit init. FOG 1.x.x bzImage and init.xz are the files in pair. It also detects the architecture of the system (64 bit or 32 bit) and uses the proper files. If the arch is not 64 bit, it assumes 32 bit and loads bzImage32/init_32.xz. Either one or the other should work even with kernel’s greater than 3.0.1. 3.17.2 should work perfectly for your needs.



  • [quote="Junkhacker,[/quote]

    One more thing where can I get the 3.0.1 Kernel that is suppose to support my optiplex 760 I cant seem to find it anywhere! Thanks in advance Ill keep hunting in the meantime.



  • [quote=“Junkhacker, post: 38775, member: 21583”]if these are direct copy/pastes, then i think i see the issue
    nav14bzImage
    nov14bzImage[/quote]

    Wow! You were right I was also using a lowercase “I” in Image! I guess I needed a fresh set of eyes! Now it loads but I get a kernel panic I guess I have to find another kernel :cool:


  • Developer

    [quote=“TexasIT936, post: 38770, member: 26986”]The Path I used is :/var/www/html/fog/service/ipxe/nav14bzImage[/quote]

    [quote=“TexasIT936, post: 38772, member: 26986”]root@ubuntuFOGserver:/var/www/fog/service/ipxe# ls -l

    -rw-r–r-- 1 fog fog 4606848 Nov 4 16:54 nov14bzImage
    …[/quote]

    if these are direct copy/pastes, then i think i see the issue
    nav14bzImage
    nov14bzImage



  • [quote=“Junkhacker, post: 38773, member: 21583”]then the host is trying to load the kernel at [url]http://fog-server-ip/fog/service/ipxe/var/www/html/fog/service/ipxe/nav14bzImage[/url]
    it’s already expecting any available kernels to be located in the service/ipxe directory so that they can be served out by http
    you just need to put the host kernel as nav14bzImage in the host kernel field[/quote]

    I tried that method first and still got the typical “File not found error” o_O That is why I decided to include the full path to see if it made a difference.


  • Developer

    then the host is trying to load the kernel at [url]http://fog-server-ip/fog/service/ipxe/var/www/html/fog/service/ipxe/nav14bzImage[/url]
    it’s already expecting any available kernels to be located in the service/ipxe directory so that they can be served out by http
    you just need to put the host kernel as nav14bzImage in the host kernel field



  • root@ubuntuFOGserver:/var/www/fog/service/ipxe# ls -l
    total 38684
    -rw-r–r-- 1 fog www-data 1105 Nov 3 15:05 advanced.php
    drwxr-xr-x 2 fog fog 4096 Nov 4 16:54 backup
    -rw-r–r-- 1 fog www-data 44908 Nov 3 15:05 bg.png
    -rw-r–r-- 1 fog www-data 756 Nov 3 15:05 boot.php
    -rw-r–r-- 1 fog www-data 6169392 Nov 3 15:05 bzImage
    -rw-r–r-- 1 fog www-data 6170512 Nov 3 15:05 bzImage32
    -rw-r–r-- 1 fog www-data 234697 Nov 3 15:05 grub.exe
    -rw-r–r-- 1 fog www-data 9577456 Nov 3 15:05 init_32.xz
    -rw-r–r-- 1 fog www-data 10914208 Nov 3 15:05 init.xz
    -rw-r–r-- 1 fog www-data 25340 Nov 3 15:05 memdisk
    -rw-r–r-- 1 fog www-data 1839104 Nov 3 15:05 memtest.bin
    -rw-r–r-- 1 fog fog 4606848 Nov 4 16:54 nov14bzImage
    root@ubuntuFOGserver:/var/www/fog/service/ipxe#



  • [quote=“Junkhacker, post: 38769, member: 21583”]what is the “exact new kernel path” you added, and where did you store the file?[/quote]

    The Path I used is :/var/www/html/fog/service/ipxe/nav14bzImage


  • Developer

    what is the “exact new kernel path” you added, and where did you store the file?


Log in to reply
 

400
Online

39.3k
Users

11.0k
Topics

104.5k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.