Comments (22)
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.
@el-psycho Hey dude, I keep getting another error, for some reason I don't even get those errors you got: 👎
from wimaging.
@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.
@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.
@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.
@el-psycho hey Kevin, thanks for getting back to me:
I think i'ts pretty similar to yours:
from wimaging.
`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.
@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.
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.
@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.
@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.
@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.
@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.
@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.
@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.
@el-psycho this is in WinPE though so I'm finally out of the PXE Boot errors :)
from wimaging.
This is the error I get now
from wimaging.
Actually a better error are these 3 templates when I get on preview:
from wimaging.
@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.
@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.
@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.
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)
- kudos HOT 2
- PXE template does not work? HOT 1
- pxelinux template issue HOT 6
- 2012 Server HOT 3
- Downloading Setup Script: ERROR 404 Not Found HOT 27
- Bootloop HOT 8
- token not getting generated for foreman_url(built) HOT 5
- Password disguise in unattend.xml causes rendering errors on some hosts HOT 5
- Windows 7 installation HOT 2
- Questions re some config options HOT 3
- ipxe / bootdisk HOT 2
- Params.ps1 using constant instead of variable for DISM location HOT 2
- Windows booting into Recovery screen HOT 2
- Trouble with PXE boot HOT 7
- Is this tested on bare matel ? HOT 1
- Is this active project ? HOT 1
- StartRom and boot.sdi not found HOT 6
- Windows 7 support HOT 7
- Statically defined deployment share HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wimaging.