On 9/22/2019 8:40 PM, john doe wrote: > On 9/22/2019 8:26 PM, Reco wrote: >> Hi. >> >> On Sun, Sep 22, 2019 at 08:16:42PM +0200, john doe wrote: >>> Hi there Reco, >>> >>> On 9/22/2019 7:46 PM, Reco wrote: >>>> Hi. >>>> >>>> On Sun, Sep 22, 2019 at 07:35:18PM +0200, john doe wrote: >>>>> I want to Install Debian 10.1 using PXE as a guest using Qemu. >>>>> I have downloaded the netboot.tar.gz, extracted it and use the following >>>>> command: >>>>> >>>>> ... -boot n -net user,tftp=<PATH>,bootfile=pxelinux.0 >>>>> >>>>> "Failed to load ldlinux.c32 >>>>> Boot failed: press a key to retry, or wait for reset..." >>>> >>>> And it says here that you should put ldlinux.c32, libutil.c32 and >>>> probably menu.c32 in your <PATH>. pxelinux.0 is an executable, it needs >>>> libraries ☺ >>>> >>>> All these files are provided by syslinux-common package, and are >>>> probably included in netinst iso. >>>> >>> >>> Actually, I'm able to find the file with the exception of 'menu.c32' in >>> 'debian-installer/amd64/boot-screens' from the 'netboot.tar.gz'. >>> >>> If it helps, I can get them from the above pkg instead of the archive. >>> >>> Now I'm stuck at this one: >>> >>> "Unable to locate configuration file" >> >> You probably need a directory called pxelinux.cfg in <PATH>, and a file >> called "default" in there. >> >> Something like this should get you rolling (menu.c32 is needed for this >> file to work): >> >> === cut === >> default menu.c32 >> prompt 0 >> noescape 1 >> allowoptions 0 >> >> menu title PXE Boot Menu >> >> label d-i >> menu label Debian Buster Installer (amd64) >> kernel linux >> append tasks=standard pkgsel/language-pack-patterns= >> pkgsel/install-language-support=false vga=788 initrd=initrd.gz priority=low >> === cut === >> >> It's assumed that you'll put linux and initrd.gz from netinst in <PATH> >> > > Looks like moving debian-installer/pxelinux.cfg to the root of the tftp > directory, get me to the Debian installer prompt where I can choose to > install/resque Debian. > > It looks also like symlink created on Windows with the 'mklink' command > are not handle properly by Qemu's tftp. > > I'll give also a shot to your above 'default' file but for now, it is > reading time! :) >
On Windows the file ldlinux.c32 needs to be in the tftp root directory, if it is a symlink created with the 'mklink' cmd it won't work and I don't understand why, if anyone has any thoughts on this? As far as I can tell, this is related to Windows and syslinux because it works on Debian with ldlinux.c32 being a symlink. My next step is to automatically fetch the preseed file to do an automatic installation of Debian, I would like to use the local tftp server in Qemu but I'm not finding a way to do that, if I happend one of the following it fails: url=tftp://10.0.2.2/preseed.cfg url=tftp://preseed.cfg How can I use the local tftp server of qemu to fetch the preseedfile? -- John Doe