Created
February 24, 2020 17:49
-
-
Save ex0dus-0x/395e21037ff93f3d038e0c821a630a6e to your computer and use it in GitHub Desktop.
Personal vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANT_BOX = 'bento/ubuntu-18.10' | |
VM_NAME = 'vagrant' | |
VM_USER = 'vagrant' | |
MAC_USER = 'alan' | |
HOST_PATH = '/Users/' + MAC_USER + '/Code/' | |
GUEST_PATH = '/home/' + + VM_USER | |
# main configuration | |
Vagrant.configure(2) do |config| | |
config.vm.box = VAGRANT_BOX | |
config.vm.hostname = VM_NAME | |
config.vm.provider "virtualbox" do |v| | |
v.name = VM_NAME | |
v.memory = 2048 | |
v.cpus = 4 | |
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] | |
end | |
config.vm.network "private_network", type: "dhcp" | |
config.vm.synced_folder HOST_PATH, GUEST_PATH | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment