Skip to content

Commit ec1fe0f

Browse files
author
Nik Mohamad Aizuddin b. Nik Azmi
committed
feat(vagrant): Add VirtualBox
1 parent 4abe250 commit ec1fe0f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ Vagrant.configure("2") do |config|
2828
v.autostart = false
2929
end
3030

31+
centos_box.vm.provider "virtualbox" do |v, override|
32+
override.vagrant.plugins = config.vagrant.plugins + ["vagrant-vbguest"]
33+
override.vbguest.auto_update = false
34+
override.vm.box_download_checksum_type = "sha256"
35+
override.vm.box_download_checksum = "7e83943defcb5c4e9bebbe4184cce4585c82805a15e936b01b1e893b63dee2c5"
36+
override.vm.network "private_network", type: "dhcp"
37+
v.name = "centos-box"
38+
v.gui = false
39+
v.cpus = "2"
40+
v.memory = "2048"
41+
v.linked_clone = true
42+
v.customize ['modifyvm', :id, '--graphicscontroller', 'vmsvga']
43+
v.customize ['modifyvm', :id, '--audio', 'none']
44+
end
45+
3146
centos_box.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ['.git/']
3247
end
3348
end

0 commit comments

Comments
 (0)