Skip to content

Instantly share code, notes, and snippets.

View skottler's full-sized avatar

Sam Kottler skottler

View GitHub Profile

Setting up netboot.xyz with an EdgeRouter

This document covers how to setup netboot.xyz, a service that provides iPXE-based installation and live boot of a bunch of operating systems, on a Ubiquiti EdgeRouter.

Assumptions

I've made a few assumptions throughout this document that will probably be different for your setup:

Keybase proof

I hereby claim:

  • I am skottler on github.
  • I am skottler (https://keybase.io/skottler) on keybase.
  • I have a public key ASCa8nLfxV-khq9Km_FD-4trWcoOyAOWjfG6AHAKk-brZAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am skottler on github.
  • I am samkottler (https://keybase.io/samkottler) on keybase.
  • I have a public key ASCT60MdsGpZfjvNNtvOIHOW55Kc34TdMx6yHXuutvKuzwo

To claim this, I am signing this object:

samkottler@ip-10-253-6-159:/etc/logrotate.d$ sudo dpkg -S nginx
nginx: /etc/nginx/scgi_params
nginx: /etc/nginx/conf.d/example_ssl.conf
nginx: /etc/nginx/nginx.conf
nginx: /etc/nginx/win-utf
nginx: /opt/nginx/sbin/nginx
nginx: /opt/nginx/html/50x.html
nginx: /etc/nginx/mime.types
nginx: /opt/nginx/conf/uwsgi_params
nginx: /opt/nginx/sbin/nginx.old
#rubygems Central conversation
#rubygems-status: The content of the status site
#rubygems-verification: Checking MD5's against S3
timeout=5
menuentry "Fedora 18" {
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
insmod lvm
set root='hd0,gpt5'
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' 4d293507-3ec0-410a-9606-bcbcfe44d7dd
echo 'Loading vmlinuz...'
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-root /vagrant
#!/usr/bin/ruby
require 'puppet'
require 'net/http'
require 'yaml'
Factsdir = "/var/lib/puppet/yaml/facts"
Foreman = "http://foreman"
node = ARGV[0]
#!/usr/bin/env python
import sys
import time
import argparse
from datetime import timedelta
import pyes
__version__ = '0.1.0'