-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (32 loc) · 1.31 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# VM name
vb.name = "myarch"
# Optimise VM running a GUI otherwise comment statements below
# Customise VRAM size and turn on 3D acceleration
vb.customize ["modifyvm", :id, "--vram", "32"]
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
# Customise audio
vb.customize ["modifyvm", :id, "--audiocontroller", "hda"]
vb.customize ["modifyvm", :id, "--audioout", "on"]
# Customise NIC to use virtio driver
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
# Customise the amount of memory on the VM:
vb.memory = "2048"
end
# Enable provisioning with a shell script.
config.vm.provision "shell", path: "bootstrap1.sh"
# bootstrap2 is for enabling GUI otherwise comment statement below
config.vm.provision "shell", path: "bootstrap2.sh"
# bootstrap3 is for saving package cache on shared folder
config.vm.provision "shell", path: "bootstrap3.sh"
end