#1111
[Vagrant] How-To
Set Vagrant name :
Vagrant.configure('2') do |config| config.vm.define "foohost" do |foohost| end end
Set VirtualBox name :
Vagrant.configure('2') do |config| config.vm.provider :virtualbox do |vb| vb.name = "foohost" end end
Shared Folder :
config.vm.synced_folder "C:\\Windows\\Path\\", "/Vagrant/Target/Path"
Customize Virtual Box params :
config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine vb.gui = false vb.name = "VM-1" # # Customize the amount of memory on the VM: vb.memory = "2048" end
Network :
Define default bridge networl
config.vm.network "public_network", bridge: "Intel(R) 82579LM Gigabit Network Connection"
config.vm.network "public_network", bridge: [ "Intel(R) 82579LM Gigabit Network Connection", "Intel(R) Centrino(R) Advanced-N 6205 #2", ]
[Javascript] Pivot Table [Weblogic] Install tips
Since atlas.hashicorp.com is down, Vagrant file must be updated with the following line to download box from vagrantcloud.com :
Resize disk (as root not vagrant sudo) :
for centos, fuser is part of “psmisc” package
for Centos/RHEL >= 7
https://blog.dbi-services.com/how-to-reduce-the-size-a-lvm-partition-formatted-with-xfs-filesystem-on-centos7/
Virtualbox CPU customization :
resize disk space:
Vagrant file :
Using vagrant ssh :
and
see https://gist.github.com/Gcaufy/2212eba360ca6a2f92cf
and https://stackoverflow.com/a/26320277
https://superuser.com/questions/332252/how-to-create-and-format-a-partition-using-a-bash-script