Linux – How to boot Windows ISO installation using PXE (without Windows AIK or whatever)

iso-imagelinuxpxewindows

I have a Linux PXE server.
Can boot into Linux ISO installers using PXE with no problems.
But how can I do it with Windows ISO? Just start the installation. Without creating some stuff (winpe) under Windows.

I've extracted some files from image.iso/sources/boot.wim /2/Windows/Boot/PXE/ to tftp root

pxeboot.com
wdsnbp.com           (-> wdsnbp.0)
bootmgr.exe

Pointed kernel to (in pxelinux.cfg/default):

KERNEL wdsnbp.0

That's at least something that boots and gives:

Downloaded WDSNBP...

Architecture: x64
WDSNBP started using DHCP Referral.
Contacting Server: 10.0.0.1 (Gateway: 0.0.0.0)..
No response from Windows Deployment Services server.
Launching pxeboot.com...
TFTP download failed
Could not boot image: Error 0x00000001 (http://ipxe.org/00000001)
No more network devices
FATAL: Could not read from the boot medium! System halted.

What should I do to continue booting process?
I also created a Samba share with ISO contents, but how to connect all this?
All the tutorials I've found are either outdated or (most) require to create an additional boot image under Windows using its tools. Is it really so sad sad situation?

Update

For Linux ISO I have something like this:

KERNEL u1404/casper/vmlinuz.efi
APPEND boot=casper netboot=nfs nfsroot=10.0.0.1:/var/lib/tftpboot/u1404 initrd=u1404/casper/initrd.lz ip=dhcp --

/var/lib/tftpboot/u1404 is a mount point for Ubuntu 14.04 ISO

For Windows I stopped at this (and the error above) and don't know what exactly to do next:

KERNEL wdsnbp.0

And to clarify: the question is how to do it (configure PXE for Windows ISO) in Linux environment. If I was in a hurry I'd use WDS or some other Windows tools without a question.

Best Answer

Have you tried FOG project before? It has a prebuilt PXE server compatible with many versions of Ubuntu Linux. Heres a link

From what I remember, its still open source but they are an excellent project. I have done custom boots of either Barts Duke and Nuke ISO or Ultimate Boot CD (at the moment I cannot remember which one as the last time I was employed their was two years ago.) as a boot option from their PXE menu so I know it would help solve your problem if you only need to boot from an ISO instead of install an image. If you need to install an image its perfect for that too. From what I remember its a simple file change to add a boot option. Its all documented though on the website above. FOG is very powerful, my last job was using it for their main imaging solution. Here's an example where they boot ISO files by simply specifying a path to the ISO file:

https://wiki.fogproject.org/wiki/index.php/Edit_PXE_menu_to_create_sub_menus

It boots any ISO we gave it so far. Easy. It has an installer too.

Related Question