Giter VIP home page Giter VIP logo

Comments (22)

el-psycho avatar el-psycho commented on July 29, 2024

Hi, I've solved my problem. The syslinux version that worked for me was syslinux-5.01.tar.xz

I extracted the file above and rsynced the following files to /var/lib/tftpboot/
chain.c32
ldlinux.c32
libcom32.c32
libutil.c32
linux.c32
pxelinux.0
vesamenu.c32

After that, it finally worked. I can boot to the Windows PE environment.
I now have a different problem with peSetup.cmd for which I'll open a different issue.

NOTE: It should be mentioned on the documentation that your foreman hosts (the hosts you want to image) must have an IP address associated with them in foreman or the peSetup.cmd script will fail to download.

Thanks.

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho Hey dude, I keep getting another error, for some reason I don't even get those errors you got: 👎

I get this:
foreman5

foreman4

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho btw, where did you find the ldlinux.c32 file? I also downloaded syslinux 5.10 and I can't find the damn file and it keeps asking for it 👎

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho never mind I found it, that fucker is pretty hidden but now I am just getting the "No DEFAULT or UI configuration directive found!" any idea?

from wimaging.

el-psycho avatar el-psycho commented on July 29, 2024

@elJoeyJojo Looks like your WAIK PXELinux template is not rendering properly. Mine looks like this in the input tab:

<%#
kind: PXELinux
name: WAIK default PXELinux
%>
DEFAULT wimbootpe
LABEL wimbootpe
     com32 linux.c32 boot/wimboot
     append initrdfile=<%= @host.operatingsystem.bootfile(@host.arch,:bcd) %>,<%= @host.operatingsystem.bootfile(@host.arch,:bootsdi) %>,<%= @host.operatingsystem.bootfile(@host.arch,:bootwim) %>

And in the Preview tab it looks like this:

DEFAULT wimbootpe
LABEL wimbootpe
     com32 linux.c32 boot/wimboot
     append initrdfile=boot/windows-x86_64/bcd,boot/windows-x86_64/boot.sdi,boot/windows-x86_64/boot.wim

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho hey Kevin, thanks for getting back to me:

I think i'ts pretty similar to yours:

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

`kind: PXELinux
name: WAIK default PXELinux
%>
-DEFAULT winPE

-LABEL winPE

  • KERNEL /Boot/startrom.0
    +DEFAULT menu
    +PROMPT 0
    +MENU TITLE PXE Menu
    +TIMEOUT 200
    +TOTALTIMEOUT 6000
    +ONTIMEOUT local

+LABEL menu

  • MENU LABEL Wimboot via pxelinux
    
  • COM32 linux.c32 boot/wimboot
    
  • APPEND initrdfile=boot/windows-x64/bcd,boot/windows-x64/boot.sdi,boot/windows-x64/boot.wim
    
    `

from wimaging.

el-psycho avatar el-psycho commented on July 29, 2024

@elJoeyJojo This part is very important:

<%#
kind: PXELinux
name: WAIK default PXELinux
%>

That's a comment, and it has to start with <%# and end with %>
https://docs.puppetlabs.com/puppet/latest/reference/lang_template_erb.html#comment-tags

from wimaging.

el-psycho avatar el-psycho commented on July 29, 2024

Also, why are you using dashes with -DEFAULT and -LABEL? just make it like the wimaging docs say and when that's working make your changes.
Also, read this:
http://www.syslinux.org/wiki/index.php/Config

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho I basically got all these templates from the wimaging github files, I only changed the path and left everything the same. I just added that <%# but didn't seem to do anything. I am not even sure if it's even trying to pull anything or if it's just a linux.c32 file error? I'll make my template like yours and see if that works. Thanks for all your help btw

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho Nope, no luck. I changed it like yours and made sure the path is correct but I still get the error.

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho hey Kevin, dumb question but when you downloaded the kernel syslinux-5.10 to your Foreman server did you just copy the files over to /var/lib/tftpboot/ ?
Someone mentioned something about compiling them but I thought it was just a copy to folder step. Any idea?

from wimaging.

el-psycho avatar el-psycho commented on July 29, 2024

@elJoeyJojo The version that worked for me was syslinux 5.01, and yes, I just transferred the files to /var/lib/tftpboot/, overwriting any existing versions of those files if they existed. I did not have to compile anything.

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho I think the only difference is that I am using Ubuntu and you are using CentOS. I have a feeling a messed up something because I moved back the /usr/lib/syslinux/linux.c32 in there and still doesn't give me any different errors

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho SUCCESS SUCCESS!!!! it started encapsulating :) 👍
The problem was that I made changes to the template but I had not made changes to the actual 01:00:00:00 MAC address file in /pxelinux.cfg/

Now I'm stuck on

/unattended/script:
ERROR 404: Not Found

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho this is in WinPE though so I'm finally out of the PXE Boot errors :)

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

image

This is the error I get now

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

Actually a better error are these 3 templates when I get on preview:

image

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@el-psycho i finally got into the WinPE Configuraiton but now I get the

Downloading Setup Script
http://puppet.domain.com/unattended/script:
ERROR 404: Not Found

My templates seem to render correct, I can preview them without any issue and my Settings/Provisioning under "unatteded_url" is set to http://puppet.domain.com"

Any idea?

from wimaging.

AutomationD avatar AutomationD commented on July 29, 2024

@ALL sorry for causing so much trouble folks :) I'm writing something really nice and easy that will download all required files automatically. I appreciate everyone here testing, this will definitely help in building a better wimaging 2.0 :)

Here's a set of commands to get a right syslinux. run it on your foreman server with tftpd:

cd /var/lib/tftpboot/

# Make a backup of our current pxelinux just in case...
tar -zcf ~/foreman-pxe-backup.tgz .

# Download syslinux 5.01 and extract nessesary files
wget https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-5.01.tar.xz
tar -xf syslinux-5.01.tar.xz
cp syslinux-5.01/com32/chain/chain.c32 .
cp syslinux-5.01//com32/elflink/ldlinux/ldlinux.c32 .
cp syslinux-5.01/com32/lib/libcom32.c32 .
cp syslinux-5.01/com32/libutil/libutil.c32 .
cp syslinux-5.01/com32/modules/linux.c32 .
cp syslinux-5.01/core/pxelinux.0 .
cp syslinux-5.01/com32/menu/vesamenu.c32 .

rm -rf syslinux-5.01*

# Get wimboot
wget http://git.ipxe.org/releases/wimboot/wimboot-latest.zip
unzip wimboot-latest.zip
cp wimboot-*/wimboot boot/
rm -rf wimboot-*

from wimaging.

elJoeyJojo avatar elJoeyJojo commented on July 29, 2024

@kireevco Thanks! Yeah those instructions would've been quite nice as it took me quite a bit to figure out that syslinux issue but it will make everything easier for the next bunch

from wimaging.

brandonweeks avatar brandonweeks commented on July 29, 2024
syslinux-6.03/bios/com32/elflink/ldlinux/ldlinux.c32
syslinux-6.03/bios/com32/lib/libcom32.c32
syslinux-6.03/bios/com32/libutil/libutil.c32
syslinux-6.03/bios/com32/menu/menu.c32
syslinux-6.03/bios/com32/modules/linux.c32
syslinux-6.03/bios/core/pxelinux.0

These are the files required to use syslinux 6.03.

from wimaging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.