-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
37 lines (30 loc) · 1.04 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "public_network"
config.disksize.size = "200GB"
config.vm.provider "virtualbox" do |vb|
# vb.gui = true
vb.memory = "4096"
vb.cpus = 4
end
config.vm.provision "shell", inline: <<-SHELL
# install dependencies
yum update -y
yum upgrade -y
yum groupinstall -y "Development Tools"
yum install -y wget ncurses-devel bison flex elfutils-libelf-devel openssl-devel bc vim-enhanced epel-release
# download kernel source (4.19.52)
cd /root
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.52.tar.xz
unxz -v linux-4.19.52.tar.xz
tar xvf linux-4.19.52.tar
cd linux-4.19.52
make ARCH=x86 cscope tags # create ctags / cscope
# install ceph-common (luminous)
rpm --import 'https://download.ceph.com/keys/release.asc'
rpm -Uvh http://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm
yum install -y ceph-common
SHELL
end