Difference between revisions of "Netboot"

From Amahi Wiki
Jump to: navigation, search
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
We were able to develop this integration of what used to be PXEKnife, but it's better named as Amahi Netboot, to provide the feature of booting multiple CD/DVD images over the net.
+
{{NeedsUpdate}}
  
Please take it for a spin:
+
{{AdvancedUsers}}
 +
{{NeedsExpantion}}
  
It should not break PBA and as a little example of what this can do, we included the famous memtest86+ memory test. See if you can run it by booting off the network after you install that RPM.
+
== How to Run Netboot ==
  
If this works well, we will be able to package other things as apps that are net-bootable!
+
After installing the app, edit to add boot entries:
  
To add boot entries:
+
vi /var/lib/tftpboot/pxelinux.cfg/default
  
    /usr/share/amahi-netboot/tftp/pxelinux.cfg/default
+
Making bootable images of various OSs is not trivial. It involves precise setup of files in a web server or NFS share or other way to serve files in your network (or in some cases, off the internet).
  
(This needs more documentation here!)
+
== Example Configuration ==
  
= Things that can boot from Amahi Netboot =
+
Suppose that you want to boot a Linux OS over the network, say Fedora 22.
  
 +
This is the configuration you need in /var/lib/tftpboot/pxelinux.cfg/default
 +
 +
label linux
 +
  menu label Install or upgrade Fedora 22
 +
  menu default
 +
  kernel fedora22/vmlinuz
 +
  append initrd=fedora22/initrd.img repo=<nowiki>http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Workstation/x86_64/os</nowiki>
 +
 +
Then you need two files (vmlinuz and initrd.img) inside a directory called fedora22:
 +
 +
  cd /var/lib/tftpboot/pxelinux.cfg/
 +
  mkdir fedora22
 +
  cd fedora22
 +
  wget <nowiki>http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Workstation/x86_64/os/isolinux/vmlinuz</nowiki>
 +
  wget <nowiki>http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Workstation/x86_64/os/isolinux/initrd.img</nowiki>
 +
 +
With that configuration, you should be able to boot Fedora 22 off your network and install from it!
 +
 +
If course, rather then the repo being remote, you can also install from a local repo. For example, if you can make the one form the CD/DVD available in the file system, or via a local web server (e.g. a simple web app pointing to the repo). The configuration will need to change accordingly. See more examples of [https://docs.fedoraproject.org/en-US/Fedora/19/html/Installation_Guide/s1-netboot-pxe-config.html PXE Boot Configuration]
 +
 +
== Things that can boot from Amahi Netboot ==
 +
 +
* [http://wiki.amahi.org/index.php/Netboot_Ultimate_Boot_CD Ultimate Boot CD]
 
* [http://www.hirensbootcd.net/ Hiren's Boot CD]
 
* [http://www.hirensbootcd.net/ Hiren's Boot CD]
 
* [http://www.clonezilla.org Clonezilla]
 
* [http://www.clonezilla.org Clonezilla]
* [[Fedora 14 network install]]
+
 
* ... etc.
+
== Amahi Applications in Testing ==
 +
* [http://www.amahi.org/apps/clonezilla Clonezilla]
 +
* [http://www.amahi.org/apps/damn-small-linux Damn Small Linux]
 +
* [http://www.amahi.org/apps/gParted gParted]
 +
* [http://www.amahi.org/apps/redo-backup-and-recovery Redo Backup and Recovery]
 +
* [http://www.amahi.org/apps/riplinux RIPLinuX]
 +
* [http://www.amahi.org/apps/xpud xPUD]
 +
* [http://www.amahi.org/apps/ubuntu Ubuntu Install]
 +
* [http://www.amahi.org/apps/debian-lenny-network-install Debian Linux Install]
 +
 
 +
 
 +
Also see [[Amahi_Netboot_for_noobs|Amahi Netboot for noobs]]

Latest revision as of 09:37, 17 August 2019

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.


Warning.png WARNING
This is recommended for advanced users only, please proceed with caution.



Msgbox-expand.png Needs Expansion
This section requires expansion. If you have knowledge on this subject, please consider expanding it.


How to Run Netboot

After installing the app, edit to add boot entries:

vi /var/lib/tftpboot/pxelinux.cfg/default

Making bootable images of various OSs is not trivial. It involves precise setup of files in a web server or NFS share or other way to serve files in your network (or in some cases, off the internet).

Example Configuration

Suppose that you want to boot a Linux OS over the network, say Fedora 22.

This is the configuration you need in /var/lib/tftpboot/pxelinux.cfg/default

label linux
  menu label Install or upgrade Fedora 22
  menu default
  kernel fedora22/vmlinuz
  append initrd=fedora22/initrd.img repo=http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Workstation/x86_64/os

Then you need two files (vmlinuz and initrd.img) inside a directory called fedora22:

 cd /var/lib/tftpboot/pxelinux.cfg/
 mkdir fedora22
 cd fedora22
 wget http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Workstation/x86_64/os/isolinux/vmlinuz
 wget http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Workstation/x86_64/os/isolinux/initrd.img

With that configuration, you should be able to boot Fedora 22 off your network and install from it!

If course, rather then the repo being remote, you can also install from a local repo. For example, if you can make the one form the CD/DVD available in the file system, or via a local web server (e.g. a simple web app pointing to the repo). The configuration will need to change accordingly. See more examples of PXE Boot Configuration

Things that can boot from Amahi Netboot

Amahi Applications in Testing


Also see Amahi Netboot for noobs