openwrt-builder
openwrt-builder copied to clipboard
[DEAD] Vagrant VM for building OpenWrt
OpenWrt Builder
Setup an [OpenWrt](http://www.openwrt.org/] Buildroot buildroot environment inside VirtualBox, build OpenWrt, boot to OpenWrt in VirtualBox.

Install
- Install VirtualBox
- Install Vagrant
- (Optionally) install vagrant-vbguest
- ~~Install Veewee~~
- Check out the repository.
- Run
vagrant up - You may need to run
vagrant reloadto ensure VirtualBox guest additions are setup. - The Chef provisioner will setup all the build prerequisites and build a VM image. This is slow!
- Once the Chef provisioner completes, you'll have an x86 VirtualBox image in
bin/x86 vagrant sshto login- Code is in
/mnt/openwrton the guest. We're not mounting from host to guest because hard links on VirtualBox filesystems don't work on all platforms. - Run
raketo setup a VirtualBox image for the OpenWrt build. - Launch the VM from VirtualBox manager or run
rake vbox_launch. - from wiki Boot up OpenWrt and add to /etc/config/network
config 'interface' 'wan'
option 'proto' 'dhcp'
option 'ifname' 'eth1'
- Start the wan with
ifup wan - DNS resolution should work:
nslookup cnn.com 127.0.0.1
Todo
- Get networking to be sane.
- Combine Vagrantfile into Rakefile
- Use Veewee to output a Vagrant image of OpenWrt itself.
- Provisioning for OpenWrt packages.