This is an old revision of the document!

Pravin Shinde: - Universal remote network booting for the masses

Useful git commands

To create

git clone --bare git:// syslinux.git

The “–bare” means you don't need a working tree, only the internal .git/ files. Since you'll never been working directly in this directoy on rom, it makes sense not to have a working tree.

creating blank repository on remote server

git init --bare

For pushing the first master repository from local to empty remote server repository, it can be done with

git push master master

Where you are pushing local branch called “master” onto remote branch called “master”

git bisect

This command is quite useful for finding broken commit. Here is the blog which mentions how to use it.

useful commands for qemu

One can use qemu monitor for debugging.
Here is the wikibook for using monitor with qemu.


My ToDo list

  1. Get QEMU + PXE working. – Done QemuPxe.
  2. Get QEMU + PXE + HTTP working – Done .
  3. Get QEMU + PXEKnife working. QemuPxeKnife – Done
  4. Get QEMU + PXEKnife + HTTP working. QemuPxeKnifeHTTP – Stuck :-(
  5. Explore the ability of PXE and SYSLinux to dynamically create INITRAMFS.
  6. Get PXE-Knife working over HTTP.
  7. Check how can I use com32 module from inside syslinux to modify inintramfs files.

Questions that I need to find answers

  • In case of linux distribution, Will entire distriibution run from RAM as initRAMfs or it will use root filesystem from NFS of server?
    • warthog9: a normal distribution will very unlikely run out of ram, in particular when you consider a “normal” distribution is going to need a couple of gig's of data to be complete. That said there are smaller distributions (like Damn Small Linux) which are only in the 50M range of size. It might be more possible to run these straight out of ram. I have not tested DSL specifically for this but it was the thing that seemed the most likely as a 'live' distribution for BKO for the time being. The possibility of running a 'live' distribution out of NFSv4 has also been discussed as a not horrible option, but may have adverse consequences for the server.
  • Can we exploit the PXE/SYSLinux ability to dynamically create INITRAMFS? this way, server will send the part of initramfs whenever user makes any selection and SYSLinux will merge newly downloaded part on initramfs with orinial one. This may reduce the workload on server.
    • warthog9: This should be doable, just stacking the initrd's together would make things a lot simpler, particularly for Linux based utilities. Treat each piece as an individual package (like an rpm of sorts), keep a dependency tree of what each package needs and we should be able to completely build a minimal set of files needed to run a specific component dynamically (or pre-generated if the selection would be static anyway, but the pre-generation would just be the list of things to include)
  • In case, we need to use NFS root filesystem, what about scalability? many users may not have outgoing NFS port access. Can NFS service provided on HTTP?
  • warthog9: NFSv3 from a public internet perspective is off the table for a whole host of reasons the least of which is individual ports, security, etc. NFSv4 would be a consideration, but the scalability might be a bigger issue here. Investigation into the access patterns, load, etc would need to be done. For now a Proof-of-concept for nfsv4 could be done, but actual full implementation should be looked after basic framework is up and running.
  • Whats the difference between initrd and initramfs ?

QR Code
QR Code soc:2009:pravin:notes:start (generated for current page)