Page 3 of 4
Re: Announcing: Amahi Netboot pre-release
Posted: Mon Nov 15, 2010 3:10 pm
by smystaki
Just installed amahi-netboot.
Reason is to boot via PXE motherboards for tesing or to install an OS easily with out any CD burning.
So I prepared 2 additional menu files in folder /usr/share/amahi-netboot/tftp/pxelinux.cfg.
File:
default
Code: Select all
DEFAULT menu.c32
PROMPT 0
TIMEOUT 100 # start the default after 10 seconds
MENU TITLE --== Amahi Netboot Main Menu ==--
# Exit the PXE stack and boot the local system
LABEL bootlocal
MENU DEFAULT
MENU LABEL Boot from the Hard Drive
localboot 0
#LABEL PBA
# MENU LABEL PBA --->
# kernel vmlinuz
# APPEND nfsdir=hda:/var/hda/apps/pba/client/iso lang=us ramdisk_size=100000 nomce dma nosound #apm=power-off nopcmcia nofirewire init=/etc/init nomce vga=normal initrd=miniroot.gz 2 BOOT_IMAGE=insert
LABEL Fixes Menu
MENU LABEL ^Fixes Menu
KERNEL menu.c32
APPEND pxelinux.cfg/fixes.menu
LABEL Distros
MENU LABEL ^Distros Menu
KERNEL menu.c32
APPEND pxelinux.cfg/distros.menu
File:
distros.menu
Code: Select all
MENU TITLE Distros Menu
LABEL Main Menu
MENU LABEL ^Return to Main Menu
KERNEL menu.c32
APPEND pxelinux.cfg/default
LABEL pick one
MENU LABEL fluppy --->
kernel vmlinuz
APPEND nfsdir=hda:/var/hda/apps/pba lang=us ramdisk_size=100000 nomce dma nosound apm=power-off nopcmcia nofirewire init=/etc/init nomce vga=normal initrd=miniroot.gz 2 BOOT_IMAGE=insert.iso
LABEL pick two
MENU LABEL puppy --->
kernel vmlinuz
APPEND nfsdir=hda:/var/hda/apps/pba lang=us ramdisk_size=100000 nomce dma nosound apm=power-off nopcmcia nofirewire init=/etc/init nomce vga=normal initrd=miniroot.gz 2 BOOT_IMAGE=insert.iso
fixes.menu
Code: Select all
MENU TITLE Fixes Menu
LABEL Main Menu
MENU LABEL ^Return to Main Menu
KERNEL menu.c32
APPEND pxelinux.cfg/default
#LABEL fsck
# menu label ^File system check
# kernel TRK/kernel.trk
# append initrd=TRK/chkdsk.trk ramdisk_size=32768 root=/dev/ram0 vga=0
LABEL memtest86+
MENU LABEL Memtest86+ --->
kernel memtest/memtest86+-1.65
#LABEL trk3
# menu label ^Trinity Rescue Kit
# kernel TRK/kernel.trk
# append initrd=TRK/initrd.trk ramdisk_size=32768 root=/dev/ram0 vga=0 trknfs=IPADDR:/trk ip=::::::dhcp splash=verbose
Menus are working.
memtest in any location works perfectly.
But it is not possible to mount the image of a live cd.
I have place all images available in folder /var/hda/apps/pba..
It seems like a share problem.
I've tried without success samba shares also.
Any Ideas?
Re: Announcing: Amahi Netboot pre-release
Posted: Mon Nov 15, 2010 4:47 pm
by bigfoot65
There is more to setting up netboot apps than the menus. Many live CDs will not work without extra work. Trinity Rescue CD is one of them. You will need to setup NFS sever to make it work.
You can google to find out how to set that up. There is guidance out there on how to make them work via PXE boot which is the same as Amahi-netboot. Keep in mind this is advanced linux stuff. We have a few apps in beta using amahi-netboot but have not had time to develop it more.
We are a very small team of volunteers working on the Fedora 14 release of Amahi. That is our primary focus at the moment. Maybe once things settle down, we can get back to the netboot.
Re: Announcing: Amahi Netboot pre-release
Posted: Sat Dec 04, 2010 9:40 am
by smccloud
Just found this thread. In theory we should be able to add any OS capable of booting via PXE to this right? i.e. F14, Debian, even possibly Windows Vista/7 (although those two will be very hard).
Re: Announcing: Amahi Netboot pre-release
Posted: Sat Dec 04, 2010 10:04 am
by bigfoot65
In theory, however you will need to add additional packages depending on how you want PXE to work. It uses TFTP now so http access to netboot apps works fine. If you wanna do NFS then you need to add all the structure for it.
One thing that is important is some modification could break the existing structure. I had NFS working for an Ubuntu install a while back. But the Live CDs were another story...some worked but too forever to boot.
It is something to play with and if you have any success, please add it to the wiki.
Re: Announcing: Amahi Netboot pre-release
Posted: Tue Feb 22, 2011 2:16 am
by dforbes
All,
I've been playing with amahi-netboot for a little while now. I don't know whether my use-case is particularly common or not, but I tend to download ISOs for new releases when they come out and like to test drive them with minimal effort. I've come up with a couple of scripts that:
1. Use automount and /dev/loop to allow you to casually browse any ISO on your HDA (in either /home/*/Downloads or /var/hda/torrents).
2. Generate PXE boot menus to allow many ISOs to netboot using NFS on the automounted ISO images.
It doesn't work for some distros; notably any Live images that were generated using the dracut system are particularly problematic. Probably with a bit of tweaking these can be made to work to, I just haven't cracked it yet.
Is anyone else interested in this use-case?
DF
Re: Announcing: Amahi Netboot pre-release
Posted: Tue Feb 22, 2011 8:51 am
by evylrat
Yes please! I use PXE quite alot, mainly for memtest, hd drive testing / nuking. Also got Clonezilla and Gparted on there. Next is Android X86 project. Only just moved these from my old ubuntu server, so not tried clonezilla, gparted yet.
Nice Amahi wallpaper and layout on my PXE menu.
So yes please to your script dforbes
Re: Announcing: Amahi Netboot pre-release
Posted: Tue Feb 22, 2011 12:31 pm
by dforbes
Ok, I've written it up in the wiki at:
http://wiki.amahi.org/index.php/Browse_ ... ISO_images
It's a while since I first set this up, so drop me a line if it doesn't work and we'll work out which steps I've forgotten.
By exchange, I'd love to hear how you got an Amahi wallpaper on your PXE menu; I've been trying to do that, but can't seem to get it to work.
Cheers,
DF
Re: Announcing: Amahi Netboot pre-release
Posted: Wed Feb 23, 2011 6:37 pm
by evylrat
- Screenshot of my PXE
- screenshot.png (74.69 KiB) Viewed 9239 times
Default
Code: Select all
DEFAULT vesamenu.c32
TIMEOUT 600
ONTIMEOUT BootLocal
PROMPT 0
MENU INCLUDE pxelinux.cfg/pxe.conf
NOESCAPE 1
LABEL BootLocal
localboot 0
TEXT HELP
Boot to local hard disk
ENDTEXT
MENU BEGIN Tools and Utilities
MENU TITLE Tools and Utilities
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE pxelinux.cfg/utilities.menu
MENU END
MENU BEGIN DOS Based BootDisks
MENU TITLE DOS Based BootDisks
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE pxelinux.cfg/dos.menu
MENU END
MENU BEGIN Linux
MENU TITLE Linux
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE pxelinux.cfg/linux.menu
MENU END
MENU BEGIN Linux Installs
MENU TITLE Linux Installs
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE pxelinux.cfg/linuxinst.menu
MENU END
pxe.conf
Code: Select all
MENU TITLE PXE Server
MENU BACKGROUND pxelinux.cfg/splash.png
menu color tabmsg 37;40 #a0000000 #00000000
menu color hotsel 37;40 #f0000000 #a0000000
menu color hotkey 37;40 #a0000000 #30000000 none
menu color sel 37;40 #f0000000 #50000000
menu color unsel 37;40 #a0000000 #00000000 none
menu color scrollbar 30;47 #40000000 #00000000
menu color border 30;44 #00000000 #00000000 none
menu color title 1;36;44 #ff000000 #00000000 none
menu color cmdline 37;40 #fff64f09 #00000000 none
menu color cmdmark 1;36;40 #ffc90417 #00000000 none
MENU WIDTH 77
MENU MARGIN 0
MENU ROWS 12
MENU TABMSGROW 20
MENU CMDLINEROW 21
MENU HELPMSGROW 21
MENU HELPMSGENDROW -1
MENU ENDROW -1
MENU TIMEOUTROW 19
MENU VSHIFT 13
NOESCAPE 0
ALLOWOPTIONS 1
utilities.menu
Code: Select all
MENU BEGIN CloneZilla & GParted
MENU TITLE CloneZilla & GParted
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE pxelinux.cfg/clone.menu
MENU END
MENU BEGIN Hard Drive Tools
MENU TITLE Hard Drive Tools
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE pxelinux.cfg/drivetools.menu
MENU END
label memtest
menu label ^Memtest86+ 4.15b
kernel memdisk
append initrd=images/tools/memtestp4.img
label HDT
menu label HDT ^Hardware Detection Tool
kernel memdisk
append initrd=images/tools/hdt-0.3.6.img
label dban
menu label DBAN Hard Drive ^Wipe
KERNEL images/tools/dban.bzi
append initrd pxe/DBAN.BZI root=/dev/ram0 init=rc nuke="dwipe"
TEXT HELP
Warning - This will erase your hard drive
ENDTEXT
label killdisk
menu label ^KillDisk 4.1
kernel memdisk
append initrd=images/tools/killdisk_41.img
So I just need to get Clonezilla/Gparted working again.
Wallpapers have to be 640x480.
You can have different ones per menu, so if you're feeling creative, you could almost make a fake UI.
Re: Announcing: Amahi Netboot pre-release
Posted: Wed Feb 23, 2011 8:04 pm
by bigfoot65
That is a nice splash screen. We would like to add that to amahi netboot. Can it be added to the wiki?
Also, to prevent breakage of current netboot apps....there needs to be some modification to the menu structure.
We use /usr/share/amahi-netboot/tftp/menu to hold menus and /usr/share/amahi-netboot/tftp/conf to hold submenus. This structure is then incorporated in the /usr/share/amahi-netboot/tftp/pxelinux.cfg/default file automaticaly on install of netboot apps.
This is important to prevent any netboot apps installed via one-click from removing others. It is possible to add some of the functionality in the wiki to an app I would imagine.
I would be happy to work this with those interested.
Re: Announcing: Amahi Netboot pre-release
Posted: Sat Apr 09, 2011 11:37 am
by evylrat
Anyone successful with the "Browse and Netboot ISO images" guide? Not getting any iso to mount.
Trying
Code: Select all
# ls /var/hda/files/Public/library/iso
ubuntu-10.10-desktop-amd64.iso unetbootin-windows-549.exe
Code: Select all
# cat /media/.iso-fs.map
DIR_LIST=(/var/hda/files/Public/library/iso)
iso='find ${DIR_LIST[@]} -name $1.iso -type f'
echo "-fstype=iso9660 :$iso"
Code: Select all
# cat auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
/media/iso-fs /media/.iso-fs.map ro,loop --timeout=5
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
Nowt in there!