[gPXE] Linux instalation using linux iso image.

Stefan Hajnoczi stefanha at gmail.com
Sat Jul 3 03:43:27 EDT 2010


On Sat, Jul 3, 2010 at 7:57 AM, sivakumar siva kumar
<td_sk at rediffmail.com> wrote:
>
> Sir,
>
> Thanks for the replay.

Please keep the gpxe at etherboot.org mailing list CCed.  That way others
can follow the conversation and make suggestions.

>
> I try to excute the lines which you mentioned. But after that whn i try to boot it is showing error no uniqe image loaded.

It is unclear which component (gPXE, BIOS, Linux kernel, distro
installer) is displaying this error message.  Can you give more
details about your configuration and what happens before you see the
error message?

The following commands work for me, I just tested with RHEL 5.5 and a
KVM virtual machine:
dhcp net0
kernel http://10.0.2.2:8000/isolinux/vmlinuz askmethod
initrd http://10.0.2.2:8000/isolinux/initrd.img
boot

The HTTP server is listening on 10.0.2.2:8000 and exports the entire
RHEL 5.5 ISO contents.  The ISO was mounted with "mount -o loop
RHEL5.5.iso /mnt" and the HTTP server has /mnt as the server root.
The kernel and initrd paths therefore need to point into the isolinux/
directory (i.e. isolinux/vmlinuz and isolinux/initrd.img).

I use "askmethod" on the kernel command-line so that the installer
prompts whether to install from CD-ROM, HTTP, FTP, etc.  When HTTP is
selected, there is a dialog to enter the hostname/ip of the HTTP
server and the path, I use "10.0.2.2:8000" and "/".

When you run the commands above, you will see gPXE download the kernel
and initrd.  Then Linux boots and kernel messages scroll past - at
this stage gPXE is not used anymore and Linux has taken over.  Then
/sbin/loader starts the distro installer and menus appear to select
your language, keyboard, and installation method.  At which stage are
you seeing the error message?

Also, I noticed in your original email you wrote "insolinux" instead
of "isolinux".  Is that a typo in the email or did you really use that
in the command?

If you're still stuck, consider sending a screenshot when the boot
stops with an error message.

Stefan

>
> Thanks
> Siva Kumar.
>
> On Sat, 03 Jul 2010 00:54:14 +0530 wrote
> >On Fri, Jul 2, 2010 at 9:30 AM, sivakumar siva kumar
>
> wrote:
>
> >
>
> > Hi all,
>
> >
>
> > I would like to install an os through gpxe using httpd servece.
>
> >
>
> > My setup like this.
>
> >
>
> > 1.I have web server which is running in linux. I mounted the iso image in /var/www/html/.
>
> >
>
> > 2. I have created the dhcp server and through gpxe iso i am getting dhcp ips.
>
> >
>
> > 3. After getting the ipaddress i press ctl b from i am issuing the the following cmd
>
> >
>
> > gPXE> kernel http://ipaddress/RH_5.5/insolinux/vmlinuz
>
> > http://ipaddress/RH_5.5/insolinux/vmlinuz......ok
>
> > gPXE> initrd ipaddress/RH_5.5/insolinux/initrd.img ramdisk_size=8265
>
> > gPXE> append method http://ipaddress/RH_5.5/
>
> > Append command is not found
>
> > gPXE>
>
> >
>
> > RH_5.5 is my folder where the iso is mounted.
>
>
>
> "append" is not a gPXE command. It is a PXELINUX command, which you
>
> may have used previously to PXE install Linux. See here for the list
>
> of gPXE commands:
>
>
>
> http://etherboot.org/wiki/commandline
>
>
>
> I suggest trying:
>
> dhcp net0
>
> kernel http://ipaddress/RH_5.5/insolinux/vmlinuz method http://ipaddress/RH_5.5/
>
> initrd ipaddress/RH_5.5/insolinux/initrd.img
>
> boot
>
>
>
> Stefan
>
>


More information about the gPXE mailing list