Created
March 24, 2017 14:02
-
-
Save alexpatel/73cc34504f1ec68d58532bd1babd00ce to your computer and use it in GitHub Desktop.
Vagrantfile for hacking on OS/161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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