-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't visit sites on my host after updating of Virtualbox. #7169
Comments
Hi @berpcor Can you please run the command again like this:
and then put the contents of vagrant.log in a gist? |
Hey @berpcor Unfortunately I don't have access to those installation scripts. I removed some of the comments and the plugins from your Vagrantfile - can you tell me if the issue persists with this Vagrantfile: Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = hostname
config.vm.network :private_network, ip: server_ip
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.network :forwarded_port, guest: 9200, host: 9200
config.ssh.forward_agent = true
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder "projects", "/var/www", create:true,
id: "core",
:nfs => true,
:mount_options => ['nolock,vers=3,udp,noatime,actimeo=2']
config.vm.provider :virtualbox do |vb|
vb.name = hostname
vb.customize ["modifyvm", :id, "--cpus", server_cpus]
vb.customize ["modifyvm", :id, "--memory", server_memory]
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
end
config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone]
config.vm.provision "shell", path: "#{github_url}/scripts/base_box_optimizations.sh", privileged: true
config.vm.provision "shell", path: "#{github_url}/scripts/php.sh", args: [php_timezone, hhvm, php_version]
config.vm.provision "shell", path: "#{github_url}/scripts/vim.sh", args: github_url
config.vm.provision "shell", path: "#{github_url}/scripts/apache.sh", args: [server_ip, public_folder, hostname, github_url]
config.vm.provision "shell", path: "#{github_url}/scripts/mysql.sh", args: [mysql_root_password, mysql_version, mysql_enable_remote]
config.vm.provision "shell", path: "#{github_url}/scripts/memcached.sh"
config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh"
config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: [github_pat, composer_packages.join(" ")]
config.vm.provision "shell", path: "#{github_url}/scripts/git-ftp.sh", privileged: false
end |
This vagrantfile doesn't work as github_url variable not set, for example. Should I create a new vagrantfile in a new directory with the content you provided? |
Hi @berpcor Sorry - you still need all the variables at the top (same as your original Vagrantfile). I just didn't post them there. |
I created a new folder c:\www3, put there vagrantfile you provided. Executed |
Nope, the same problem... (( |
Hi @berpcor What port(s) are you trying to access and how? |
80 I guess... |
Hi @berpcor I'm not familiar with xip.io - what is that? Did you destroy the old Vagrant machines? Im not sure why you have so many host-only adapters. |
http://xip.io/ |
I am checking settings in Virtualbox GUI. The last VM has no shared folders. |
Hi @berpcor Can you access the machine by IP address directly (no xip.io)? The last VM won't have shared folders (they are explicitly disabled, and if you put it in a subfolder, "projects" won't exist either). |
http://192.168.56.56 |
Why I decided to use gulp?.. Main rule: don't touch if it works - was broken... |
I have access to my guest on url localhost:8080, but I can't open IP-address. |
Exactly. Every time I reload vagrant it creates a new host-only Network. |
Hi @berpcor I just tried, and I'm unable to reproduce this issue on my machine. Just to make sure, your "host" (local laptop) is ubuntu 14.04 and the guest (vm you're trying to run) is windows 7? What box are you using? |
1-st question: yes and yes. |
Again. |
config.vm.network :private_network, ip: "169.254.213.188" - my IP now. |
From inside of the guest I can ping 169.254.213.188. |
If I set IP equals to 192.168.56.X |
I moved forward a little bit. Vagrant is installed (latest version), Virtualbox (4.3.36, downgraded from 5) too. |
It looks like this - #1014 - is my problem. |
Hi like i have the same issue regards |
Hi @berpcor I'm having a very difficult time following the issue you're describing. It seems your original reported issue has changed. Can you do the following:
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", ip: "33.33.33.10"
config.vm.provision "shell", inline: "sudo apt-get -yqq install apache2"
end This is a vanilla Vagrantfile that installs apache 2. You should see a message like "it works" on the default page. |
Hey there, I am going to close this due to lack of response. If this is still occurring, please open a new issue and follow the provided issue template that appears when you click the "New Issue" button. This will help us in getting a reproduction and fix. Thanks! 😄 |
Everything worked excelent. Had a problem with long names of files in shared folder created by npm. (I needed to install gulp).
Installed the latest version of virtualbox (Vagrant version was 1.7.x). After that vagrant up stopped working (Virtualbox's error - E_FAIL (0x80004005) Failed to create the host-only adapter). Then I reinstalled Virtualbox - didn't help. Then I deleted virtualbox at all. For some reasons all of my network adapters were deleted too (ethernet and wireless) - there were deleted drivers. I deleted them from the list of hardware, updated my configuration and reinstalled drivers. Then I installed Virtualbox 5 (latest for now). Vagrant up now is working (it looks like that), but when I type in some of my sites in address bar, I can't visit it - timeout.
Upd.: I watched logs There was
I installed https://github.com/dotless-de/vagrant-vbguest
Additions updated, but I still can't enter my site via browser.
Vagrant version
Installed Version: 1.8.1
Latest Version: 1.8.1
Host operating system
"Ubuntu 14.04.3 LTS"
Guest operating system
Windows 7
Vagrantfile
Debug output
https://gist.github.com/berpcor/9f475bd8b0823d45d690
Upd.: https://gist.github.com/berpcor/d04b5bf6e36a51c5ad72
There was a big amount information in console but only this is stored in file.
Expected behavior
After vagrant up I should be able to visit my project ia adress bar. But I can't.
The text was updated successfully, but these errors were encountered: