I can not create vm using vagrant ( vangrant up does not work)

66 views
Skip to first unread message

Kiran Sharma

unread,
Dec 1, 2015, 3:42:08 PM12/1/15
to Vagrant
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
     vb.name = vmName
     # 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

Alvaro Miranda Aguilera

unread,
Dec 1, 2015, 4:44:58 PM12/1/15
to vagra...@googlegroups.com
Hello,

Are you using a local folder or a shared folder? ie Dropbox with other
users, or shared folder in general.
Is your user/laptop into some Active Directory domain?

Thanks
alvaro
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/4a089012-338d-46fe-be41-d37db38631e2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Kiran Sharma

unread,
Dec 1, 2015, 11:23:36 PM12/1/15
to Vagrant
Hi, 

No. I am using local folder and nothing like dropbox etc. 

Joaquin Menchaca

unread,
Dec 6, 2015, 3:59:10 PM12/6/15
to Vagrant
--debug?
Reply all
Reply to author
Forward
0 new messages