-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
44 lines (34 loc) · 1.18 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-17.10"
config.vm.provider :virtualbox do |vb|
vb.memory = 4024
vb.gui = true
vb.name = "Ubuntu 17.10 64-bit"
# modifyvm
vb.customize [
"modifyvm", :id,
"--accelerate3d", "on",
"--vram", "256",
]
# Add a DVD drive.
vb.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "emptydrive"]
vb.customize ["modifyvm", :id, "--boot1", "disk", "--boot2", "dvd"]
vb.customize "post-boot", [
"controlvm", :id,
"setvideomodehint", "1920", "1080", "32",
]
vb.customize "post-boot", [
"controlvm", :id,
"clipboard", "bidirectional",
]
end
# Install essentials
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt-get -y install linux-headers-generic build-essential dkms vim git unzip zsh \
virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 \
python-pip ansible
SHELL
end