Change-Id: Icc129b1aec453f237cfc45beff3637bd589cd4cc
Reviewed-on: http://photon-jenkins.eng.vmware.com/781
Reviewed-by: Sharath George
Tested-by: Sharath George
| ... | ... |
@@ -46,7 +46,7 @@ Setting up server instruction is based on an Ubuntu 14.04 machine assuming that |
| 46 | 46 |
``` |
| 47 | 47 |
##Optional: http server setup |
| 48 | 48 |
This is step is only needed if: |
| 49 |
-* Planning to serve the ks config file through this server, please refer to [Kickstart suuport](kickstart.md) for more details. |
|
| 49 |
+* Planning to serve the ks config file through this server, please refer to [Kickstart support](kickstart.md) for more details. |
|
| 50 | 50 |
* Serving your local yum repo. |
| 51 | 51 |
You can install apache http web server |
| 52 | 52 |
``` |
| ... | ... |
@@ -61,7 +61,7 @@ Copy the RPMS repo. |
| 61 | 61 |
``` |
| 62 | 62 |
cp -r /mnt/photon-iso/RPMS /var/www/html/ |
| 63 | 63 |
``` |
| 64 |
-To support ks, may be you can copy the sample config from the iso and editing it, please refer to [Kickstart suuport](kickstart.md) for more details. |
|
| 64 |
+To support ks, may be you can copy the sample config from the iso and editing it, please refer to [Kickstart support](kickstart.md) for more details. |
|
| 65 | 65 |
``` |
| 66 | 66 |
cp /mnt/photon-iso/isolinux/sample_ks.cfg /var/www/html/my_ks.cfg |
| 67 | 67 |
``` |
| ... | ... |
@@ -69,14 +69,20 @@ cp /mnt/photon-iso/isolinux/sample_ks.cfg /var/www/html/my_ks.cfg |
| 69 | 69 |
##PXE boot files setup |
| 70 | 70 |
* Mount photon.iso to get linux and initrd images |
| 71 | 71 |
``` |
| 72 |
-mkdir /tmp/photon-iso |
|
| 73 |
-sudo mount <photon_iso> /tmp/photon-iso/ |
|
| 72 |
+mkdir /mnt/photon-iso |
|
| 73 |
+sudo mount <photon_iso> /mnt/photon-iso/ |
|
| 74 | 74 |
``` |
| 75 | 75 |
* Setting the PXE boot files |
| 76 | 76 |
``` |
| 77 |
+wget https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.gz |
|
| 78 |
+tar -xvf syslinux-6.03.tar.gz |
|
| 77 | 79 |
pushd /var/lib/tftpboot |
| 78 |
-cp -r /tmp/photon-iso/isolinux/* . |
|
| 79 |
-cp /usr/lib/syslinux/pxelinux.0 . |
|
| 80 |
+cp -r /mnt/photon-iso/isolinux/* . |
|
| 81 |
+cp ~/syslinux-6.03/bios/com32/elflink/ldlinux/ldlinux.c32 . |
|
| 82 |
+cp ~/syslinux-6.03/bios/com32/lib/libcom32.c32 . |
|
| 83 |
+cp ~/syslinux-6.03/bios/com32/libutil/libutil.c32 . |
|
| 84 |
+cp ~/syslinux-6.03/bios/com32/menu/vesamenu.c32 . |
|
| 85 |
+cp ~/syslinux-6.03/bios/core/pxelinux.0 . |
|
| 80 | 86 |
mkdir pxelinux.cfg |
| 81 | 87 |
mv isolinux.cfg pxelinux.cfg/default |
| 82 | 88 |
``` |
| ... | ... |
@@ -85,4 +91,5 @@ mv isolinux.cfg pxelinux.cfg/default |
| 85 | 85 |
sed -i "s/append/append repo=http:\/\/172.16.78.134\/RPMS/g" menu.cfg |
| 86 | 86 |
popd |
| 87 | 87 |
``` |
| 88 |
-* Optionally, you can add your ks config file, please refer [Kickstart suuport](kickstart.md) for more details. |
|
| 88 |
+* Optionally, you can add your ks config file, please refer [Kickstart support](kickstart.md) for more details. |
|
| 89 |
+ |