Minor fixes: Changed the default natnet1 subnet, explicitly require 'etc', added comments
This commit is contained in:
parent
68652c5d8a
commit
0e5386efea
1 changed files with 18 additions and 4 deletions
20
Vagrantfile
vendored
20
Vagrantfile
vendored
|
@ -2,20 +2,34 @@
|
|||
# Older versions of Vagrant put less info in the inventory they generate.
|
||||
Vagrant.require_version ">= 1.8.0"
|
||||
|
||||
require 'etc'
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
|
||||
config.vm.box = "hashicorp/bionic64"
|
||||
|
||||
# The currently only supported provider is Virtualbox
|
||||
# You will have to install Virtualbox from https://www.virtualbox.org
|
||||
# Manual for the following settings: https://www.virtualbox.org/manual/ch03.html
|
||||
config.vm.provider :virtualbox do |vbox, override|
|
||||
vbox.customize ["modifyvm", :id, "--name", "jotbe DevOps VM Ansible Playground"]
|
||||
# Amount of virtual memory
|
||||
vbox.customize ["modifyvm", :id, "--memory", 8192]
|
||||
# Amount of virtual CPUs, by default it uses half ot the physical CPUs
|
||||
vbox.customize ["modifyvm", :id, "--cpus", Etc.nprocessors/2]
|
||||
# The amount of graphics memory
|
||||
vbox.customize ["modifyvm", :id, "--vram", 128]
|
||||
# If you want to use the 3D graphic acceleration in the VM, turn it on
|
||||
vbox.customize ["modifyvm", :id, "--accelerate3d", "off"]
|
||||
# Required. Allows to use more than 16 IRQs, important esp. for 64-bit guests and if more than 1 virtual CPU is used
|
||||
vbox.customize ["modifyvm", :id, "--ioapic", "on"]
|
||||
# Enable copy & paste between the VM and the host
|
||||
vbox.customize ["modifyvm", :id, "--clipboard-mode", "bidirectional"]
|
||||
# Disable serial ports (COM) if not needed
|
||||
vbox.customize ["modifyvm", :id, "--uartmode1", "disconnected"]
|
||||
vbox.customize ["modifyvm", :id, "--natnet1", "10.0.5/24"]
|
||||
# If your local network uses the same subnet as the default Virtualbox one (10.0.2.0/24), set a different one here
|
||||
vbox.customize ["modifyvm", :id, "--natnet1", "10.0.50.0/24"]
|
||||
# Attach a virtual DVD drive to be able to easily install the Virtualbox Guest Additions
|
||||
vbox.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "0", "--device", "0", "--type", "dvddrive", "--medium", "emptydrive"]
|
||||
#vbox.customize ["storagectl", :id, "--name", "SATA Controller", "--hostiocache", "on"]
|
||||
# Default: The VM is hosted on an SSD.
|
||||
|
@ -23,8 +37,8 @@ Vagrant.configure(2) do |config|
|
|||
#vbox.customize ["storageattach", :id, "--storagectl", "SCSI", "--port", 0, "--nonrotational", "on"]
|
||||
#vbox.customize ["storageattach", :id, "--storagectl", "SCSI", "--port", 1, "--nonrotational", "on"]
|
||||
|
||||
# yes we have a gui
|
||||
vbox.gui = true
|
||||
# Set to true, if you intent to use a GUI
|
||||
vbox.gui = false
|
||||
end
|
||||
|
||||
config.vm.define "jbdev" do |dev|
|
||||
|
|
Loading…
Add table
Reference in a new issue