Hello,
I've observed something odd. Here it is. So Initially I used most basic vagrantfile and created VM. This vagrant file location is /media/../test
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.network "forwarded_port", guest: 80, host: 3456
end
This created a VM with default hostname precise64
I then edited vagrant file and added config.vm.hostname parameter and set the hostname to ubu-vm1. After this, I ran vagrant reload and sure enough the hostname was changed to ubu-vm1.
But after commenting config.vm.hostname and doing "vagrant reload" it did not change hostname back to default.
When I introduced few parameters for CPU (like no of CPU/CPU cap) all those changes were effective upon "vagrant reload". My VM had 1 CPU and 50% cap.
Surprisingly, when I did vagrant reload after commenting these parameters in the vagrant file, things remained same. my VM still had 1 CPU and 50% cap.
BUG? Why is vagrant still reading values which are not present in current file? I am running vagrant 2.0.0 on Linux Mint 18.3.
Note:- When I destroy VM vagrant destroy and then do vagrant up, then files it only picksup whatever is defined in file.