Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cross-compile Vagrant box for EdgeRouter
Vagrant.configure(2) do |config| = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y qemu-system
# See for different archs
wget -nv
wget -nv
sudo chown vagrant:vagrant vmlinux-3.2.0-4-5kc-malta
sudo chown vagrant:vagrant debian_wheezy_mips_standard.qcow2
sudo sh -c 'echo "qemu-system-mips64 -M malta -kernel $HOME/vmlinux-3.2.0-4-5kc-malta -hda $HOME/debian_wheezy_mips_standard.qcow2 -append "root=/dev/sda1 console=ttyS0" -nographic\n" >> /etc/bash.bashrc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.