Skip to content

Instantly share code, notes, and snippets.

@alexpatel
Created March 24, 2017 14:02
Show Gist options
  • Save alexpatel/73cc34504f1ec68d58532bd1babd00ce to your computer and use it in GitHub Desktop.
Save alexpatel/73cc34504f1ec68d58532bd1babd00ce to your computer and use it in GitHub Desktop.
Vagrantfile for hacking on OS/161
# -*- mode: ruby -*-
Vagrant.configure("2") do |config|
# Ubuntu 14.04
config.vm.box = "ubuntu/trusty64"
# sync host repository with ~/cs161/os161 on virtual machine
config.vm.synced_folder ".", "/home/vagrant/cs161/os161", :owner=> 'vagrant', :group=> 'vagrant'
# forward host SSH agent
config.ssh.forward_agent = true
# install OS161 toolchain
config.vm.provision "shell", inline: <<-SHELL
add-apt-repository ppa:cs161/sp2017
apt-get update
apt-get install -y os161-toolchain
chown -R vagrant:vagrant /home/vagrant/cs161
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment