• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. mbarker
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 12
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by mbarker

    • RE: Modifying Boot Menu

      @george1421

      Here’s the process I did with Fog 1.3:

      Installed FRESH Centos, updated, installed git, wget, nano, and disabled selinux

      Downloaded and installed Fog 1.3

      Upgraded PHP from 5.3.3 to PHP 5.5

      Created 2 Usernames

      Installed and configured dnsmasq

      hid a couple of menu items

      created an image for the host to image to

      booted into the menu, and then ran into kernel panic problems

      @Tom-Elliott

      It is NOT loading from tftpboot at all, as I mentioned it’s loading from /var/www/html/fog/service/ipxe/

      Something just tells me this isn’t worth the effort at this point. I really don’t know what to say, I don’t have another full day to waste messing about with this, re-installing Fog just isn’t an option since this will be the 4th time in the last week I’ve done and always ran into problems, so sounds as though I’m looking for another solution

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      @Tom-Elliott
      It’s loading them from /var/www/html/fog/service/ipxe/

      Now what’s weird is unregistered hosts get to the menu OK but a registered host doesn’t …however still have the same Kernel Panic I did before…so frustrating lol

      edit: figured this out by renaming init.xz, now when I try to get to anything from the menu it fails chainloading that file instead of the Kernel Panic (init.xz IS in my /tftpboot/ folder, but isn’t referenced in any config files to boot from there

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      @george1421
      Hey I didn’t run away, just had a conference call to do…the device is a Lenovo T420 laptop with an Intel Series Ethernet Controller (I can’t recall the exact info on it).

      When i re-loaded the images that you linked now I’m getting a kernel panic before the menu loads…same panic, earlier in the boot sequence.

      Since I didn’t change anything for the “mode” I’m assuming it’s Legacy mode…

      The TFTP service serves out the boot.php file but then it hangs, tries to get init.xz and bzImage, then throws a Kernel Panic at me -_-

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      @george1421

      Still Kernel panic but no more prompt for a TFTP Server IP 😄 so one thing fixed lol

      When the system loads past the menu I get
      bzImage…ok
      init.xz…ok

      and then this is where the Kernel Panic happens…it just makes no sense to me

      I have my dnsmasq almost identical to your .conf file (I’m on CentOS 6.8…)

      Think I should try copying the known working bzimage and xint.xz files and see if that helps?

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      I was literally just adding that into my config right now 😄 hold tight (it probably will solve the TFTP server IP prompt too :))

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      LOL oops that was after I saved it to try something…the symlink is to:

      lrwxrwxrwx   1 root root     13 Sep 15 11:31 undionly.kpxe.0 -> undionly.kpxe
      

      from dnsmasq conf (proper):

      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Dnsmasq can also function as a TFTP server. You may uninstall
      # tftpd-hpa if you like, and uncomment the next line:
      # enable-tftp
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      # The boot filename.
      dhcp-boot=undionly.kpxe.0
      
      
      # rootpath option, for NFS
      dhcp-option=17,/images
      
      # kill multicast
      dhcp-option=vendor:PXEClient,6,2b
      
      # Disable re-use of the DHCP servername and filename fields as extra
      # option space. That's to avoid confusing some old or broken DHCP clients.
      dhcp-no-override
      
      # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
      pxe-prompt="Press F8 for boot menu", 0
      
      # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
      # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
      # This option is first and will be the default if there is no input from the user.
      pxe-service=X86PC, "Boot from network", pxelinux
      
      # A boot service type of 0 is special, and will abort the
      # net boot procedure and continue booting from local media.
      pxe-service=X86PC, "Boot from local hard disk", 0
      
      dhcp-range=10.84.52.180,proxy
      

      Sorry I saved the pxelinux line to test something out…and it failed, I wonder if it’s these particular versions of the init and bzimage files? perhaps it doesn’t jive with an older system - I’m gonna try another machine hang on

      edit: I get the real job stuff too, I’m stick handling this and trying to sort out some Microsoft Licensing at the same time as I’m trying to fix a Wordpress install LOL

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      I didn’t actually do much on the Fog 1.3.0 side of things other than hide a few menu items…so the config there shouldn’t be anything there that would have gotten out of sync…

      Here’s my dnsmasq config:

      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Dnsmasq can also function as a TFTP server. You may uninstall
      # tftpd-hpa if you like, and uncomment the next line:
      # enable-tftp
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      # The boot filename.
      #dhcp-boot=undionly.kpxe.0
      dhcp-boot=pxelinux.0
      
      
      # rootpath option, for NFS
      dhcp-option=17,/images
      
      # kill multicast
      dhcp-option=vendor:PXEClient,6,2b
      
      # Disable re-use of the DHCP servername and filename fields as extra
      # option space. That's to avoid confusing some old or broken DHCP clients.
      dhcp-no-override
      
      # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
      pxe-prompt="Press F8 for boot menu", 0
      
      # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
      # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
      # This option is first and will be the default if there is no input from the user.
      pxe-service=X86PC, "Boot from network", pxelinux
      
      # A boot service type of 0 is special, and will abort the
      # net boot procedure and continue booting from local media.
      pxe-service=X86PC, "Boot from local hard disk", 0
      
      dhcp-range=10.84.52.180,proxy
      

      There’s not much in it just what is needed to be honest. I’m really at a loss here, the bzImage and init.xz from fog 1.2 worked perfectly fine, it’s only on 1.3 RC10 that I ran into this problem…

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      @george1421
      Oh don’t I know it -_- The trouble is the client wanted to spend as LITTLE money as possible on this (saves about $250-300 a month in courier costs…), and since they felt this was more important than me upgrading their Active Directory to something…I dunno…supported…I’m stuck dealing with hopping into a hard situation (cause…it can never be easy, where would the fun be if it was all easy? :P)

      I tried with both the 32 bit and the 64 bit version of bzImage/init.zx and the same error still comes up. I wasn’t getting it on the previous version of fog, then again I think I was sending it pxelinux.0 as the boot kernel. I’m just not sure where to go with this one (I’ve done plenty of PXE boot situations…back in the popular Norton Ghost days lol

      edit: I do have access to the DHCP server, I just can’t use it because of the way the last IT guy setup the network

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      @george1421

      From my dnsmasq.conf:

      tried with:
      dhcp-boot=undionly.kpxe

      and
      dhcp-boot=undionly.kpxe.0

      I have a symbolic link created:
      undionly.kpxe.0 -> undionly.kpxe

      Here’s the last few lines from /var/log/messages:
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 Available DHCP subnet: 10.84.52.180/255.255.255.0
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 Vendor class: PXEClient:Arch:00000:UNDI:002001
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 User class: iPXE
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 PXE(eth0) 00:21:cc:c5:5b:d9 proxy
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 tags: eth0
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 bootfile name: undionly.kpxe.0
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 1 option: 53:message-type 02
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 4 option: 54:server-identifier 10.84.52.180
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 9 option: 60:vendor-class 50:58:45:43:6c:69:65:6e:74
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 17 option: 97:client-machine-id 00:81:16:f9:e9:e4:51:cb:11:a4:a8💿60…
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 82 option: 43:vendor-encap 06:01:02:09:30:80:00:11:42:6f:6f:74:20…
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 Available DHCP subnet: 10.84.52.180/255.255.255.0
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 Vendor class: PXEClient:Arch:00000:UNDI:002001
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 User class: iPXE
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 PXE(eth0) 00:21:cc:c5:5b:d9 proxy
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 tags: eth0
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 bootfile name: undionly.kpxe.0
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 1 option: 53:message-type 05
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 4 option: 54:server-identifier 10.84.52.180
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 9 option: 60:vendor-class 50:58:45:43:6c:69:65:6e:74
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 17 option: 97:client-machine-id 00:81:16:f9:e9:e4:51:cb:11:a4:a8💿60…
      Sep 15 12:06:29 fog13 dnsmasq-dhcp[13087]: 2366039648 sent size: 82 option: 43:vendor-encap 06:01:02:09:30:80:00:11:42:6f:6f:74:20…
      Sep 15 12:06:37 fog13 in.tftpd[13306]: Client 10.84.52.191 finished default.ipxe

      Not sure if default.ipxe should be the right file for it to get…I dunno I might go back to figuring out how to get my system to load WinPE and use the software they already have licensed and have used before, this is getting a little discouraging lol

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      @george1421

      Currently, my customer’s network is all Server 2003 based (JOY…that’s a big upgrade project all on its own…), they’re using Mikrotik Routers for DHCP, but all of the Phones and Machines are on the same subnet - I didn’t set it up, I sort of inheritted this setup…it’s not how I’d do it at all (VLAN1 or 10 for Data, VLAN 20 or 99 for Voice, segment broadcast traffic, and give a /24 to both networks…don’t allow routing between the 2 VLANs…etc :))

      Anyways, so my setup is Fog 1.3 RC10, DNSMasq for doing ProxyDHCP…I found another thread on this but the fix in there didn’t work (maybe my dnsmasq settings are wrong? or I’m having it choose the wrong image of sorts).

      First I’d like to say: YAY for menu editing in the GUI! No more source file hunting 🙂

      Second, whenever I choose an option (i.e. Quick Registration and Inventory), it loads up bzImage and init.xz, and then shows:

      Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
      Kernel Offset: disabled
      —[end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,)

      …this is an x64 system, but I can’t find in the menu setups where to change to init32.xz (if I remember the documentation correctly, that should be used on x64 systems)

      Any ideas?

      posted in FOG Problems
      M
      mbarker
    • RE: Modifying Boot Menu

      Hey everyone, thanks for the responses - I was tied up most of the time after I posted so this is the first I was able to get back to this.

      2 things:

      1. Instead of trying to figure out if I could upgrade from 1.2 to 1.3RC10 I just created a new VM, installed CentOS 6, GIT, and installed from the GIT repo for 1.3 RC10

      and

      1. The version of PHP installed by 1.3.0 RC10 needs upgrading away…it installed 5.3.3, minimum is 5.5 - I upgraded PHP and it was fine after that.

      There are a fair number of changes to the menus in this version…as well as some of the imaging options (for the better so far - I’ve only been on it for about 10 min or so…)

      I’m going to add an image to the system to make sure that’s fine and then I’ll go from there (it takes a while since it’s a larger image (compressed it’s 21 gigs…)…once I have this image and an image of the other laptop, I’ll mess about in the menus but there is a “Deploy Image” option in the menu which wasn’t there before.

      The only question I have right now is…if I’m not using DHCP to set TFTP options on boot, is there any way to bypass it asking me for the TFTP Server? (Can’t use the DHCP options on my clients networks, their IP Phones use the options already, so DNSMASQ with ProxyDHCP works all the same for me…but I don’t want them to have to type in the IP of the TFTP server each time it PXE boots.

      @george1421
      That’s the idea anyways, I don’t want them booting off PXE unless they NEED to, so my instructions already included using the F12 option (I don’t need these people complaining that they messed up the boot order on their computer…since they have a hard time typing subdomain.domain.com sometimes…lol I don’t care if they image with the wrong image (the 2 laptop Models aren’t all that different, just a few drivers here and there are different)


      I’ll update this post later on, I’m setting an image to write and then finding something to do for 2 hours…maybe I’ll play around with the Bios Mod I need to do for the one laptop model 🙂

      posted in FOG Problems
      M
      mbarker
    • Modifying Boot Menu

      I can’t seem to find a straight forward answer to this. FOG seems to be the right choice for what I need to do, but…I don’t need the management side of the PXEMaster. I’ve looked up and tried a few different ways to implement this and I just can’t figure it out, hoping someone on here can help. I have a client that needs to be able to re-image their laptops without me being there, I can understand this since one of the sites is halfway across the Province from me…

      So I came across FOG, which will create images and distribute them for me, GREAT, but I don’t need some of the management things, like host registration and tasks. I found one link to accomplish this:

      https://wiki.fogproject.org/wiki/index.php?title=Bypass_Host_Registration

      However, I just can’t wrap my head around the instructions. I figured out I could go into the BootMenuClass.php to find the options displayed in the menu that iPXE boots into…fantastic…however this is where I’m stuck

      1. I want to remove items from it - the client will never be in here and need to boot from hard disk, they will never ever be running memtest…
        and
      2. Add links to specific images that are pulled from 2 Laptop models.

      The Management interface would only be for myself to be able to create new copies of the images being sent to their locations, this is done for version control so that I don’t have someone say “oops” and overwrite the image for their laptop and then me trying to figure out what they did wrong…hence the lack of needing management capabilities for laptops enmass.

      So if I had to give an example I’d probably want something like:
      :t420tech
      kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.84.52.195/fog/ consoleblank=0 loglevel=4 mode=manreg
      imgfetch init_32.xz
      boot || goto MENU
      :t420tm
      kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.84.52.195/fog/ consoleblank=0 loglevel=4 mode=autoreg
      imgfetch init_32.xz
      boot || goto MENU
      :t500tech
      kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.84.52.195/fog/ consoleblank=0 loglevel=4 mode=sysinfo
      imgfetch init_32.xz
      boot || goto MENU
      :t500tm
      kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=10.84.52.195/fog/ consoleblank=0 loglevel=4 mode=sysinfo
      imgfetch init_32.xz
      autoboot

      …but I haven’t the foggiest idea how to tell the server to pull up the image files properly…or where I can add this in…my brain is running on empty so nothing is really sinking in from the docs…if someone can give me some insight on this it’d be appreciated.

      Essentially I just want them to be able to boot up…and say “Oh this is a tech’s Lenovo T420, so I’ll highlight T420 Tech and press Enter” and it’ll pull THAT specific image from the FOG server…

      posted in FOG Problems
      M
      mbarker
    • 1 / 1