Recently I have to change my laptop recently. It has same osl ( windows 7) and same version of virtualbox 5.0.10 and same version of vagrant 1.7.4. when I first ran vagrant up against the same vagrantfile I have used previously without any issue many tine, it seems it ran successfully but nothing appeared in virtualbox console.
I tried several times. once time, I shutdown the vm and then it appeared in the virtualbox console. But when i created another , then it override the same directory.
E.g
The virtualbox console shows example200 box. the direcotory shows example100 as I ran vagrant up with hostname and vm name as example100 after created example 200, and now I ran vagrant up with vm name as example300 but it says
C:\vagrant\vbox>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: VirtualBox VM is already running.
--------------------This is my vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
vmName = 'example300'
vmHost = 'example300'
Vagrant.configure(2) do |config|
config.vm.box = "CentOS 7.1 x64"
# config.vm.network "forwarded_port", guest: 80, host: 8080
# config.vm.network "private_network", ip: "192.168.33.10"
# config.vm.network "public_network"
# config.vm.network "public_network", bridge: "en0"
# config.vm.network "public_network", bridge: "Intel(R) Centrino(R) Advanced-N 6235", adapter: "1"
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.hostname = vmName
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
vb.memory = "1024"
end
# config.vm.provision "shell", inline: <<-SHELL
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
end
So two issues,
it does not appear in the console most of the time, sometime
sometime, it does appear, but when I created another VM, it overrides same directory under /user/usernmae/virtublbox vms/vmdir
Thanks
Kiran