[X2Go-Commits] [[X2Go Wiki]] page changed: doc:howto:tce
wiki-admin at x2go.org
wiki-admin at x2go.org
Thu Dec 15 14:15:39 CET 2016
A page in your DokuWiki was added or changed. Here are the details:
Date : 2016/12/15 13:15
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1481806937
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [List of open ToDos/FIXMEs for this page]
User : stefanbaur
@@ -270,8 +270,51 @@
-rw-r--r-- root/root 164096 2015-08-19 15:17 tftpboot/hdt.c32
</code>
FIXME This page is missing a section/subpage that explains how to speed up the netboot process using iPXE.
+
+ Basically:
+ <code>
+ apt-get install ipxe
+ cd /your-tftp-root
+ mkdir -p {bios,uefi}
+ ln -s /usr/lib/ipxe/undionly.kpxe ./bios/
+ ln -s /boot/ipxe.efi ./uefi/
+ FQDN=DNS-name-of-your-server-here
+ IP_OF_FQDN=`dig $FQDN +short`
+ cat <<EOF>x2go-tce-ipxe
+ #!ipxe
+ dhcp
+ kernel
http://$FQDN/x2go-tce-vmlinuz EVERYTHING-FROM-THE-LINE-STARTING-WITH-APPEND-IN-THE-X2GO-TCE-SAMPLE-FILE-ABOVE
+ initrd http://$FQDN/x2go-tce-initrd.img
+ boot
+ EOF
+ </code>
+
+ Then **add** this to your dhcpd.conf
+ <code>
+ if substring ( option vendor-class-identifier , 19,1 ) = "0" {
+ filename "bios/undionly.kpxe";
+ }
+ else if substring ( option vendor-class-identifier , 19,1 ) = "7" {
+ filename "uefi/ipxe.efi";
+ }
+ else {
+ log (info, concat ( "Unhandled vendor class Arch: ", substring ( option vendor-class-identifier , 19,1 )));
+ }
+ if exists user-class and option user-class = "iPXE" {
+ set hwmac = concat (
+ suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,1,1))),2), ":",
+ suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,2,1))),2), ":",
+ suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,3,1))),2), ":",
+ suffix (concat ("0", binary-to-ascii (16, 8,
"", substring(hardware,4,1))),2), ":",
+ suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,5,1))),2), ":",
+ suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,6,1))),2)
+ );
+
+ filename = concat( "http://DNS-name-of-your-server-here/", hwmac );
+ }
+ </code>
FIXME This page is missing a section/subpage that explains how to create images for USB/CD/local storage.
FIXME Some of the optional steps above could be moved to a separate subpage to reduce clutter.
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
More information about the x2go-commits
mailing list