LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2007, 11:13 PM   #1
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Rep: Reputation: 31
PXE boot CD/DVD ISO images...


I don't know what forum to put this in, so I chose "General". Please move if there is a better spot for it.

Anyways, I just setup a PXE server earlier today and it's working great (I followed this howto on Debian Administration). So far I have Debian Etch & Lenny both working over PXE. However, I could not help notice that I was forced to download the netboot files from the debian mirrors. I already have the CD/DVD ISO images for Debian and I would like to use those if at all possible.

Another reason I want to use regular ISO images is because of the fact that I have ISO images of all the main Windows versions (OEM - for when I reinstall Windows on my customer's computer - I'm a computer repairman) and I would love it if I could PXE boot these ISO's over the network.

Some of my customer's dont have CDROM drives, so it requires me to open the box and temporarily install a CD/DVD drive. Other times I find the my CD/DVDs have either become scratched or lost, so I end up having to burn more - which takes time and money.

I have searched endlessly on google and various Linux related websites and it seems a lot of people are wanting to know how to do this very thing, but very few people are giving answers. And at that, the answers are always either "it's not possible" for a number of reasons (mostly that cdrom iso's communicate directly with the hardware, which is not possible over PXE) or the person vaguely gives a rundown on what it takes do make it happen, but doesn't actually tell how to do it or what it takes. It's getting frustrating to see this type of responses, especially in the open source world.

But anyways - I am sure there is some way I can boot my ISO's over PXE - if not directly, then some round about way. I'm not afraid to get my hands dirty to make this PXE server how I want it, no matter how complex things may get.

Does anyone know anything at all? Please - help me out here!

Thanks!
 
Old 11-05-2007, 03:35 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If I understand you correctly, you want PXE to boot a cd/dvd iso image from the hard drive.

Recently, my CD/DVD combo drive gave up the ghost. So I was forced to translate the last two years pondering this issue into action. I succeeded in getting the OpenSUSE 10.3 dvd iso to boot from the hard drive, via grub. You may be able to adapt the instructions to PXE.

The method requires that each iso you want to boot from hard drive must be in it's own partition. For your server, that means making a small cd or dvd sized partition for each iso. Mount the iso and copy the contents to a partition in which it will be the sole occupant. I used grub to boot the iso; you may be able to adapt the instructions to work with PXE.

You can read the full text of my response to a user's question here (post #3):
http://www.linuxquestions.org/questi...out-cd-592527/

Just substitute your own partition numbers and distro names into the instructions.

Hope this works for you, or at least gives you insight into how to make PXE work for you.
 
Old 11-05-2007, 09:50 PM   #3
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Original Poster
Rep: Reputation: 31
So far you are the first person to respond to me (from 4 different forums and countless people in chat/im), so thanks!

As for mounting the ISO files and creating partitions and such, the ISO files would be on the PXE server itself. I'm not exactly sure about your post, whether to create these partitions/mount son the server or client.. But here's the scenario I am looking for:

PCE Server (192.168.1.123):
/usr/var/tftpboot/ is the tftp directory containing pxelinux.0 and all CD/DVD ISO files that I have.

Client (dhcp):
When the client does a netboot it gets a dhcp response from my SmoothWall router, which also hands down the PXE server info (IP,files,tftp directory).

The client then hops on the network, and makes a tftp connection to the PXE server and downloads the needed files to get my menu to post. This menu contains a list of all the ISO files I have on the PXE server available to boot from.

Once the client chooses an ISO to boot from, I go blank. This is where I seem to not know what I am doing exactly. From what I read, PXE supports downloading the floppy image(s) (linux & initrd.gz) and booting those up - they are very small files, so the download to the client goes unnoticed. Now, if I were to somehow get it to download the ISO files, this could take some time as most ISOs are 700mb or 4.7gb. So thats a fall point. But, even if I was able to get the ISO files to download to the client, then what? The client isn't going to know how to handle the ISO images... this is where your post comes into play in my head (but I still need some clarifications). If I mount the ISO images on the PXE server (as loopback devices) or even extract the contents of them into their own partitions, then I can have PXE load up parts (if not all) of this - but what parts should I download to the client - just linux & initrd.gz? What about the packages on the cd/dvd? Or what about a Windows Install CD? This is where I become really lost again.

In the end, I want to have the least amount of work - as in, I want to plug ethernet into the client, do a netboot, choose an OS (Windows XP for example), and have its installation start up automatically, just as if I had booted form the CD/DVD.

Don't get me wrong - I'm willing to go the distance to get this PXE server to work, but when its all setup I want it to work with ease. If in the end its more work than its worth, I'll just stick with the Cd/DVD mediums and the occassional reburning... I'm trying to make my job easier in the end by speeding things up - wouldn't make much sense to do the opposite

Anyways - to make a long story short (too late), could you clarify/elaborate your post for me?

Thanks!

[edit]Also, just wnated to clarify - my PXE server works flawlessly with the Debian netboot files (linux & initrd.gz) as mentioned in the link in my first post. It's just a matter of getting regular ISOs to work now.[/edit]

Last edited by BillyGalbreath; 11-05-2007 at 09:52 PM.
 
Old 11-06-2007, 07:25 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It's been done and documented!

Setting Up A PXE Install Server For Multiple Linux Distributions With Ubuntu Edgy Eft

http://www.howtoforge.com/ubuntu_pxe_install_server

There are 9 pages of instructions (links to the remaining 8 pages at the bottom of the first page).

As you can see, this user used Ubuntu, but you should be able to adapt the instruction to work with Debian (since Debian is included in the list of isos made available to boot in this example).

I've only found one document refering to MS windows install via PXE but I didn't copy the link. Sorry. You should be able to find it: I pointed my browser at www.google.com/linux, and searched for 'pxe'. The one page in re windows is in the first 3 or 4 pages of google returns.
 
Old 12-08-2007, 09:09 AM   #5
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
on what "bigrigdriver" was saying before, you can boot grub via PXE, you can also boot using grub via nfs. hence if you were to PXE boot the system to load grub and have the partitions holding the iso's shared over nfs then you could theoretically boot any of those iso's using grub post PXE via nfs!!!

by geez i think he's got it
 
Old 12-08-2007, 05:14 PM   #6
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Person_1873 View Post
on what "bigrigdriver" was saying before, you can boot grub via PXE, you can also boot using grub via nfs. hence if you were to PXE boot the system to load grub and have the partitions holding the iso's shared over nfs then you could theoretically boot any of those iso's using grub post PXE via nfs!!!

by geez i think he's got it
Holy crap! I absolutely love your explanation so much more! Now I know what to look for and where to look! Thanks a million!
 
Old 12-11-2007, 05:15 AM   #7
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
i aim to please, i'm trying to do similar myself but don't know which files to boot out of isolinux, i'm lost myself
 
Old 12-28-2007, 10:49 AM   #8
noisome
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
Hey all! Did you get this to work? I've been looking into this too, but going totally the wrong way with ISO booting.

If you got it, can you post your configuration and everything is total detail please!

Or at least, what have any of you tried to get this to work so we don't duplicate in our attempts too. Whoever figures this out and posts it gets mad pats for a very very long time.



Thanks a ton!

Noisome
 
Old 12-29-2007, 11:36 PM   #9
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
ok i've done it except without PXE, i did it by creating a HDD partition 1GB in size format to ext3 extracted the ISO to that partition, created a GRUB boot floppy and essentially coppied the kernel instructions out of isolinux.cfg, translating them into GRUB instructions, booted the floppy, chose the OS to boot, booted installed n bobs ur uncle i was running ubuntu 7.10
 
Old 11-07-2008, 11:08 PM   #10
valuequest
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
Hmmm...

http://kleeschulte.blogspot.com/2008...image-and.html
 
Old 03-01-2009, 09:02 AM   #11
danny_skj
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
http://www.ultimatedeployment.org/

Can even boot PE windows iso files
 
Old 06-17-2009, 03:08 PM   #12
Bjarty
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Has anyone ever managed to do this? I've been searching for this a week now, im getting crazy.
The point is that the PXE client is suppose to chose what OS to install. Say i choose XP, than i want my iso on my pxe server to be booted just like a cdrom.
Is there a way?
 
Old 06-20-2009, 01:44 AM   #13
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
you need to have your system PXE boot a GRUB bootloader or equivalent to give you the selection, your ISO files are not maintained as ISO's however, you have to extract the ISO's to an individual folder and set your bootloader that you've pre-configured to boot over nfs (no not NTFS, NFS stands for "networked file system") to load the extracted ISO's and boot the system
 
Old 06-24-2009, 11:09 AM   #14
Bjarty
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Can you please give an example on how and what files the pxegrub should load then.

LABEL 1
MENU LABEL XP Install
root /winxp
KERNEL /winxp/bootfont.bin
makeactive
savedefault

or something like that.
 
Old 06-28-2009, 09:33 AM   #15
danny_skj
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
pxe booting iso files...

You cant use grub to hook the iso image, when the windows installers kernel is loaded it wont be hooked anymore, however windows 2000/xp/2003 have a pxe bootable kernel included, its used for RIS (remote instalation services) in 2000/2003 server.

Vista and windows 7 have a slightly diffrend system called wds where a compressed harddisk image is loaded over tftp and booted and again the instalation is loaded over smb.

You can make your own ris server with tftpd32 and binl or on linux, http://oss.netfarm.it/guides/pxe.php
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 6 Bootable DVD from ISO images deepakpchowdary Fedora 7 07-31-2008 11:42 AM
why create dvd from 4 iso cd images sadok Linux - Software 1 08-29-2007 08:34 AM
how create dvd from 4 iso cd images sadok Linux - Software 1 08-29-2007 03:48 AM
PXE boot Knoppix - update ISO sharptech Linux - Networking 11 05-01-2007 12:18 PM
How do you merge 4 CD ISO images into one DVD ISO image? nsydenham Linux - Software 6 01-15-2007 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration