Difference between revisions of "Netboot for Noobs Tutorial 2"

From Amahi Wiki
Jump to: navigation, search
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!--
+
{{NeedsUpdate}}
This page is crated automaticaly by a script.
 
This part is commented and shall not show
 
-->
 
<!--At the top of the page can be vissible one of the following tags..-->
 
    {{WorkInProgress}}
 
<!--{{NeedsUpdate}}-->
 
<!--{{NeedsMerge | [[Main Page]]}}-->
 
<!--{{NeedsExpantion}}-->
 
<!--{{NeedsDelete |[[Main Page]]}}-->
 
<!--Please remove or place comment accordingly-->
 
<!--Your text bellow this line-->
 
  
HAVE TO FIX FORMATTING
 
  
Ok Netboot works, Now what?
+
<b>NOTE:</b>  This is for Fedora 14 ONLY and needs updated to reflect Amahi 7 specifics.
Now lets add parted magic to the menu and try booting it.
+
 
 +
Ok Netboot works, so now what? Let's try adding Parted Magic
 +
__NOTOC__
 
----
 
----
= Step 1: Create share in amahi Dashboard: =
+
= Step 1: Create share in Amahi Dashboard: =
login ->Setup->Shares->New Share
+
*login -> Setup -> Shares -> New Share
[[File:1-Createshare.PNG|right|500px|caption|]]
+
 
Name: Call it tfpt/pxe or whatever you want
+
[[File:1-Createshare.PNG|500px|caption|]]
 +
 
 +
<ins>Name:</ins> Call it ''' "netboot" ''' or ''' "pxe" ''' or ''' "tftp" ''' or whatever you want. I use ''' "pxe" '''.
  
Location:/usr/share/amahi-netboot/tftp
+
<ins>Location:</ins>  /usr/share/amahi-netboot/tftp
  
*Note:This is where amahi-netboot installs configuration files
 
  
If you browse this folder you should see:
+
'''NOTE:'''  This is where amahi-netboot installs configuration files
*boot.msg
+
 
*logo.16  
+
*If you browse this folder you should see:
*menu.c32  
+
<pre>boot.msg
*other.conf
+
logo.16  
*f2
+
menu.c32  
*memtest  
+
other.conf
*minirooot.gz  
+
f2
*pxelinux.0
+
memtest  
*vmlinuz  
+
minirooot.gz  
*pxelinux.cfg folder
+
pxelinux.0
 +
vmlinuz  
 +
pxelinux.cfg folder</pre>
  
 
= Step 2: Add Parted Magic entry to menu: =
 
= Step 2: Add Parted Magic entry to menu: =
- Navigate into pxlinux.cfg folder
+
* Navigate into pxlinux.cfg folder
- Right click on "default" file and edit with notepad++
+
* Right click on "default" file and editYou should see:
You should see:
 
{|border="1"
 
|
 
 
<pre>DEFAULT menu.c32
 
<pre>DEFAULT menu.c32
 
PROMPT 0
 
PROMPT 0
Line 49: Line 39:
 
MENU TITLE --== Amahi Netboot Main Menu ==--
 
MENU TITLE --== Amahi Netboot Main Menu ==--
  
# Exit the PXE stack and boot the local system
+
<nowiki>#</nowiki> Exit the PXE stack and boot the local system
 
LABEL bootlocal
 
LABEL bootlocal
 
MENU DEFAULT
 
MENU DEFAULT
Line 57: Line 47:
 
LABEL PBA
 
LABEL PBA
 
MENU LABEL PBA --->
 
MENU LABEL PBA --->
kernel vmlinuz
+
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
 
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 memtest86+
 
LABEL memtest86+
 
MENU LABEL Memtest86+ --->
 
MENU LABEL Memtest86+ --->
kernel memtest/memtest86+-1.65
+
KERNEL memtest/memtest86+-1.65</pre>
</pre>
 
|}
 
  
 +
*At the bottom paste in the following:
  
At the bottom paste the following:
+
<pre>LABEL pmagic  
{|border="1"
+
        MENU LABEL Parted Magic
|
+
        KERNEL images/pmagic/bzImage
<pre>
+
         APPEND noapic root=/dev/ram0 init=/linuxrc ramdisk_size=100000 initrd=images/pmagic/initrd.img</pre>
LABEL pmagic  
 
MENU LABEL Parted Magic
 
KERNEL images/pmagic/bzImage
 
INITRD images/pmagic/initrd.img
 
         APPEND noapic root=/dev/ram0 init=/linuxrc ramdisk_size=100000D
 
</pre>
 
|}
 
Note the paths after KERNEL & INITRD images/pmagic/
 
Save and close file.
 
  
Go to the your share Create New folder called images and inside another new folder called pmagic so it has following structure
+
*Save the file.
your share/pxelinux.cfg/
 
your share/images/pmagic/
 
  
 +
*Create folder in your share called ''' "images" '''
  
= Step 3: Download Parted Magic pxe zip file here: =
+
*Create another folder in ''' "images" ''' called ''' "pmagic" '''
http://partedmagic.com/doku.php?id=downloads
 
  
right click=> 7zip->open or extract archive
+
*Should have the following structure
  
Locate the files '''''"bzimage"''''' and '''''"initrd.img"'''''
+
<pre>
 +
your share/pxelinux.cfg/
 +
your share/images/pmagic/
 +
</pre>
  
copy them to the newly created folder: '''''your share/images/pmagic'''''
+
= Step 3: Download Parted Magic : =
 +
*Download Parted Magic (scroll down a bit to get to the PXE ZIP files and choose the correct one for your architecture): [http://partedmagic.com/doku.php?id=downloads http://partedmagic.com/doku.php?id=downloads]
  
Open virtual box.
+
*Right click=> 7zip->open or extract archive
  
[[File:starttest.png|none|500px|]]
+
*Locate the files '''''"bzimage"''''' and '''''"initrd.img"'''''
  
Start''''' "test" '''''virtual machine and
+
*Copy them to the newly created folder: '''''your share/images/pmagic'''''
  
should display menu:
+
*Open virtual box.
[[File:menupmagic.png|none|500px|]]
 
  
Select "Parted Magic" from menu
+
[[File:starttest.png|none|500px|]]<br>
  
Should display:
+
*Start''''' "test" '''''virtual machine and should display menu:
[[File:loadpmagic.png|none|500px|]]
+
[[File:menupmagic.png|none|500px|]]<br>
  
It may take a couple of minutes to load into memory and boot depending on your network connection and activity
+
*Select "Parted Magic" from menu and should display:
 +
[[File:loadpmagic.png|none|500px|]]<br>
  
[[File:pmagic.png|none|500px|]]
+
*It may take a couple of minutes to load into memory and boot depending on your network connection and activity
  
 +
[[File:pmagic.png|none|500px|]]<br>
  
All that and not one bash commandline entry!
 
  
 +
All that and not one bash command line entry!
  
= Works:Go on to Netboot Tutorial 3 =
+
= Works =
 +
Go to [[Netboot_for_Noobs_Tutorial_3|Tutorial #3]]
 
----
 
----
 
== Troubleshooting if it doesn't work: ==
 
== Troubleshooting if it doesn't work: ==
 
* <ins>If you select Parted Magic and the screen just blinks</ins>
 
* <ins>If you select Parted Magic and the screen just blinks</ins>
 
**Double check the KERNEL path in your menu entry:
 
**Double check the KERNEL path in your menu entry:
<pre>           KERNEL images/pmagic/bzImage</pre>
+
<pre>KERNEL images/pmagic/bzImage</pre>
  
 
* <ins>If it starts and doesn't boot completely</ins>
 
* <ins>If it starts and doesn't boot completely</ins>
**double check the INITRD menu entry  
+
**Double check the INITRD menu entry  
<pre>           INITRD images/pmagic/initrd.img</pre>
+
<pre>INITRD images/pmagic/initrd.img</pre>
  
 +
* <ins>Permissions problems: login as root in console or putty</ins>
 +
<pre>cd /usr/share/amahi-netboot/
 +
chown -Rc admin:admin tftp
 +
chmod -Rc 755 tftp</pre>
 
* <ins>Still nothing, </ins>
 
* <ins>Still nothing, </ins>
**I problably messed up something on this page. post on forum link
+
**Post on forum link [http://forums.amahi.org/viewtopic.php?f=26&t=3596 here].
***http://forums.amahi.org/viewtopic.php?f=26&t=3596
+
 
  
<!--Your text above this line-->
+
Go back to [[Amahi_Netboot_for_noobs|Amahi Netboot for noobs]]
<!--This page must bellong to one of the following categories please remove comment-->
 
<!--[[category:Apps]]-->
 
<!--[[Category:Fedora]]-->
 
<!--[[Category:Platform]]-->
 
<!--[[Category:Pro Version]]-->
 
<!--[[Category:Services]]-->
 
<!--[[Category:VPN]]-->
 
  
<noinclude>
+
Also see [[Netboot]]
[[Category:WikiModTools]]
 
</noinclude>
 

Latest revision as of 01:38, 1 February 2019

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


NOTE: This is for Fedora 14 ONLY and needs updated to reflect Amahi 7 specifics.

Ok Netboot works, so now what? Let's try adding Parted Magic


Step 1: Create share in Amahi Dashboard:

  • login -> Setup -> Shares -> New Share

1-Createshare.PNG

Name: Call it "netboot" or "pxe" or "tftp" or whatever you want. I use "pxe" .

Location: /usr/share/amahi-netboot/tftp


NOTE: This is where amahi-netboot installs configuration files

  • If you browse this folder you should see:
boot.msg
logo.16 
menu.c32 
other.conf
f2
memtest 
minirooot.gz 
pxelinux.0
vmlinuz 
pxelinux.cfg folder

Step 2: Add Parted Magic entry to menu:

  • Navigate into pxlinux.cfg folder
  • Right click on "default" file and edit. You should see:
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 memtest86+
	MENU LABEL Memtest86+ --->
	KERNEL memtest/memtest86+-1.65
  • At the bottom paste in the following:
LABEL pmagic 
        MENU LABEL Parted Magic
        KERNEL images/pmagic/bzImage
        APPEND noapic root=/dev/ram0 init=/linuxrc ramdisk_size=100000 initrd=images/pmagic/initrd.img
  • Save the file.
  • Create folder in your share called "images"
  • Create another folder in "images" called "pmagic"
  • Should have the following structure
your share/pxelinux.cfg/
your share/images/pmagic/

Step 3: Download Parted Magic :

  • Right click=> 7zip->open or extract archive
  • Locate the files "bzimage" and "initrd.img"
  • Copy them to the newly created folder: your share/images/pmagic
  • Open virtual box.
Starttest.png


  • Start "test" virtual machine and should display menu:
Menupmagic.png


  • Select "Parted Magic" from menu and should display:
Loadpmagic.png


  • It may take a couple of minutes to load into memory and boot depending on your network connection and activity
Pmagic.png



All that and not one bash command line entry!

Works

Go to Tutorial #3


Troubleshooting if it doesn't work:

  • If you select Parted Magic and the screen just blinks
    • Double check the KERNEL path in your menu entry:
KERNEL images/pmagic/bzImage
  • If it starts and doesn't boot completely
    • Double check the INITRD menu entry
INITRD images/pmagic/initrd.img
  • Permissions problems: login as root in console or putty
cd /usr/share/amahi-netboot/
chown -Rc admin:admin tftp
chmod -Rc 755 tftp
  • Still nothing,
    • Post on forum link here.


Go back to Amahi Netboot for noobs

Also see Netboot