vagrant

Using rsync on windows with vagrant running a CoreOS VM

天涯浪子 提交于 2020-01-02 04:36:25
问题 I am using windows 8.1 Pro pc running vagrant and cygwin's rsync. I am configuring as such: config.vm.synced_folder "../sharedFolder", "/vagrant_data", type: "rsync" And when I execute vagrant up I get the following error: C:\dev\vagrantBoxes\coreOS>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'yungsang/coreos' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network

Vagrant stuck in “Waiting for VM to Boot”

十年热恋 提交于 2020-01-02 03:29:08
问题 I want to preface this question by mentioning that I have indeed looked over most if not all vagrant "Waiting for VM to Boot" troubleshooting threads: Things I've tried include: vagrant failed to connect VM https://superuser.com/questions/342473/vagrant-ssh-fails-with-virtualbox https://github.com/mitchellh/vagrant/issues/410 http://vagrant.wikia.com/wiki/Usage http://scotch.io/tutorials/get-vagrant-up-and-running-in-no-time And more. Here's how I setup my Vagrant: Note: We are using Vagrant

GuestAdditions version mismatch

时光总嘲笑我的痴心妄想 提交于 2020-01-02 03:11:54
问题 when I use this command: vagrant up I obtain this error: [machine1] GuestAdditions versions on your host (4.3.36) and guest (5.0.10) do not match. how can I update guest addition from ubuntu shell? 回答1: Use the vagrant vbguest plugin Install the plugin: vagrant plugin install vagrant-vbguest Let vagrant up it will install the virtual box client if needed. If you want to force the installation you can run vagrant vbguest --do install 回答2: You need to upgrade your VBoxGuestAdditions ISO either

Laravel 5.8: A facade root has not been set after homestead restart

不羁的心 提交于 2020-01-01 19:08:06
问题 so I'm trying to get into Laravel and this is my first time using Vagrant, so here's my problem: I've worked through the Laravel Homestead introduction and set up my development box, everything appears to be working and I did see the Laravel default app.When wrapping up the day I've stopped the local vagrant using vagrant halt and tried starting it again using vagrant up as before and then I'm receiving the "( ! ) Fatal error: Uncaught RuntimeException: A facade root has not been set. in

Nginx not passing websocket upgrade response back to client?

*爱你&永不变心* 提交于 2020-01-01 17:11:35
问题 I am using Nginx + Websockets on a precise 64 vagrant box, with c#/mono for the app server. The goal is to serve up static content directly through Nginx, and handle both plain 'ol http service requests (on /service) and also websocket requests (on /webSocket) all on the same port. Here's the relevant conf: map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 80 default_server; # (1) location / { root /var/www; index index.html; } # (2) location /service { add

Updating .bashrc and environment variables during Vagrant provisioning

牧云@^-^@ 提交于 2020-01-01 16:48:31
问题 I'm using Vagrant to set up a box with python, pip, virtualenv, virtualenvwrapper and some requirements. A provisioning shell script adds the required lines for virtualenvwrapper to .bashrc . It does a very basic check that they're not already there, so that it doesn't duplicate them with every provision: if ! grep -Fq "WORKON_HOME" /home/vagrant/.bashrc; then echo 'export WORKON_HOME=/home/vagrant/.virtualenvs' >> /home/vagrant/.bashrc echo 'export PROJECT_HOME=/home/vagrant/Devel' >> /home

Vagrant and Docker with Microservices

懵懂的女人 提交于 2020-01-01 14:25:06
问题 I have a set of microservices whose deployment I would like to automate and standardize using Docker. I have been reading about Vagrant and I have a couple of questions on using Vagrant for setting up the environment. I understand that Vagrant is used for setting up VM's and Docker for creating containers. What is the benefit of running a Docker container inside a VM? Doesn't it defeat the purpose of using Docker in the first place? How is the interaction between Vagrant and Docker happening?

How to create a virtual host with vagrant and chef

大憨熊 提交于 2020-01-01 12:40:50
问题 I've setup my first vagrant machine, with some cookbooks downloaded through knife. I am stuck with the setup of a virtual host. Here's my Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "precise32" config.vm.box_url = "http://files.vagrantup.com/precise32.box" config.vm.network :forwarded_port, guest: 80, host: 8080 config.vm.network :private_network, ip: "192.168.33.10" config.vm.provision :chef_solo do |chef| chef.json = { "mysql" => { "server_root_password" => "admin",

Vagrant - set the location of the virtual hard drive for VirtualBox

醉酒当歌 提交于 2020-01-01 04:22:11
问题 I have executed following commands (on Windows, using Git Bash) in the directory D:\vagrant\precise32\02-lamp\ $ vagrant box add precise32 http://files.vagrantup.com/precise32.box $ vagrant init precise32 $ vagrant up Note. I haven't changed original Vagrantfile. I thought the directory D:\vagrant\precise32\02-lamp\ would be the place of the VDI-like file but it is not. The working directory serves as the shared folder . I found the location of the Vagrant box C:\Users\USER\.vagrant.d\boxes

Vagrant disable Guest Additions

故事扮演 提交于 2020-01-01 04:16:30
问题 I would like to disable VirtualBox Guest Additions. I do not use them for folder syncing, etc. and for the box I am working on (e.g., centos/7), they fail to build anyway. Is there some way to tell vagrant not to try to install them at vagrant up ? 回答1: In your Vagrantfile, add the following param Vagrant.configure("2") do |config| .... config.vbguest.auto_update = false .... end 回答2: Users might not have the vagrant-vbguest plugin, and you could wrap its use in a conditional to avoid