Last active
April 1, 2020 15:40
-
-
Save refactormyself/8350d49f8e2d25bd81f4895d6c2fbb76 to your computer and use it in GitHub Desktop.
Vagrant File for Kernel Dev on minimal/xenial64 box (It will sync repo to "./lk_dev_files" on host)
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 -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "minimal/xenial64" | |
#config.vm.boot_timeout = | |
#config.vm.network "public_network" | |
config.vm.synced_folder "./lk_dev_files", "/home/vagrant/host_sync_files" | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = false | |
# Customize the amount of memory on the VM: | |
vb.memory = "2048" | |
vb.cpus = "2" | |
vb.name = "lk_dev_vagrant_1" | |
end | |
# Enable provisioning with a shell script. Additional provisioners such as | |
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the | |
# documentation for more information about their specific syntax and use. | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
apt-get install -y build-essential vim git cscope libncurses-dev \ | |
libssl-dev bison flex exuberant-ctags gcc make bc | |
apt-get install git-email -y | |
# now prepare the code | |
mkdir -p ~/host_sync_files/linux_work; cd ~/host_sync_files/linux_work | |
# git clone \ | |
# git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git \ | |
# linux_mainline | |
git clone \ | |
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git \ | |
linux_stable | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment