-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
64 lines (47 loc) · 1.99 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
NB_MONITORS = "1"
NB_CPUS = 6
MEMORY = "8192"
VRAM = "64"
#SYSTEM_DISK_SIZE = "20GB"
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
unless Vagrant.has_plugin?("vagrant-disksize")
raise 'You must install the vagrant-disksize plugin. install using: vagrant plugin install vagrant-disksize'
end
unless Vagrant.has_plugin?("vagrant-reload")
raise 'You must install the vagrant-reload plugin. install using: vagrant plugin install vagrant-reload'
end
# TODO: create a new /home directory with the ~40G extra
#config.disksize.size = SYSTEM_DISK_SIZE
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
vb.name = "devbox-arch"
# resources
vb.memory = MEMORY
vb.customize ["modifyvm", :id, "--cpus", NB_CPUS]
# drives
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--device', 1, '--port', 1, '--type', 'dvddrive', '--medium', 'C:\Program Files\Oracle\Virtualbox\VBoxGuestAdditions.iso']
# graphics
vb.customize ["modifyvm", :id, "--monitorcount", NB_MONITORS]
vb.customize ["modifyvm", :id, "--vram", VRAM]
vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
#none|vboxvga|vmsvga|vboxsvga
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
# Customise audio
vb.customize ["modifyvm", :id, "--audioout", "on"]
vb.customize ["modifyvm", :id, "--audio", "dsound"]
vb.customize ["modifyvm", :id, "--audiocontroller", "hda"]
vb.customize ['modifyvm', :id, '--clipboard-mode', 'bidirectional']
end
# mount my Users\<>\src folder on host to /home/vagrant/src
config.vm.synced_folder ENV['USERPROFILE'] + "/src", "/home/vagrant/src"
# Provision code arch setup
config.vm.provision "shell", path: "1-setup-arch.sh"
config.vm.provision :reload
# install core components
config.vm.provision "shell", path: "2-core.sh"
config.vm.provision :reload
end