vagrant

Can't install Vagrant box Laravel Homestead

谁说我不能喝 提交于 2019-12-29 18:33:44
问题 I'm trying to install Laravel Homestead on Mac OS X following the official documentation instructions on here. I installed VirtualBox and Vagrant. Now I'm trying to add the Homestead box with the command vagrant box add laravel/homestead . After a while the download stops and I get an error. It doesn't let me restore the download so I have to delete the partial download file and start from zero. I've tried it many times. I think my Internet connection has something to do since it's kinda slow

How do I delete a virtualbox machine in the GURU_MEDITATION error state?

为君一笑 提交于 2019-12-29 10:54:11
问题 How do I delete a VirtualBox machine in the GURU_MEDITATION error state? Is it enough just to delete the directory while VirtualBox is not running? EDIT: After posting, I deleted the entire directory that "Show in File Manager" navigates to. It looks like: Note that there is no power off, and even remove is greyed out. I believe this is the exact same as it looked even before I deleted the directory. EDIT 2: I tried the command line poweroff after deleting the files. It hangs: vboxmanage

How do I delete a virtualbox machine in the GURU_MEDITATION error state?

落爺英雄遲暮 提交于 2019-12-29 10:53:25
问题 How do I delete a VirtualBox machine in the GURU_MEDITATION error state? Is it enough just to delete the directory while VirtualBox is not running? EDIT: After posting, I deleted the entire directory that "Show in File Manager" navigates to. It looks like: Note that there is no power off, and even remove is greyed out. I believe this is the exact same as it looked even before I deleted the directory. EDIT 2: I tried the command line poweroff after deleting the files. It hangs: vboxmanage

Easiest way to copy a single file from host to Vagrant guest?

限于喜欢 提交于 2019-12-29 10:07:10
问题 I have a use case where I occasionally want to copy a single file from my host machine to the Vagrant guest. I don't want to do so via traditional provisioners (Puppet / Chef) because this is often a one-off -- I just want something quick to add to my Vagrantfile. I don't want to share an entire directory, possibly because I want to overwrite an existing file without nuking an entire directory on the guest. It also seems a bit overkill to write a shell provisioning script, and deal with

Changing Vagrantfile causes “vagrant ssh” to prompt for a password?

久未见 提交于 2019-12-29 04:37:15
问题 I've been playing around with setting up an environment using Vagrant, and I'm having an issue with the vagrant ssh command. When I change the path of the mounted share folder in the Vagrantfile, and do a vagrant reload , I'm no longer able to vagrant ssh without it asking me for a password. This was my original configuration for a mounted share, which works: config.vm.synced_folder "./", "/home/vagrant/shared" This is what I was trying to change to and it doesn't work after vagrant reload

Docker for GUI-based environments?

人走茶凉 提交于 2019-12-28 04:46:31
问题 Problem I have a set of client machines that are a part of an enterprise web application. Each machine runs identical software, which is a PyQT-based web client that connects to a server. This client software is updated regularly and I would like to have some configuration/provisioning tool that allows to have the same environment on each machine and hence provide easy deployment and configuration of the software onto each of the clients' machines. The problem is that I have tried to use Chef

使用vagrant部署开发环境

三世轮回 提交于 2019-12-25 22:33:25
参考文章:http://blog.smdcn.net/article/1308.html 准备工作: 下载安装 VirtualBox : https://www.virtualbox.org/ 下载安装 Vagrant : http://www.vagrantup.com/ 下载需要使用的 box : 官方提供的范例: http://files.vagrantup.com/precise32.box 还可以在 http://www.vagrantbox.es/ 这里下载更多不同系统甚至是已经配置好环境直接可以用的box,虽然可以直接在Vagrant直接使用网址,由Vagrant自动下载安装,但是考虑到网络情况,还是建议自行先下载好。 设置环境: 第一步,新建目录 mkdir -p vagrant/debiancd vagrant/debian 第二步,初始化文件 vagrant box add debian-local /home/wangkongming/software/pmv3.box debian-local 表示指定默认的box,也可以为box指定名称,比如 debian ,使用base时,之后可以直接使用 vagrant init 进行初始化,如果自行指定名称,则初始化的时候需要指定box的名称。 pmv3.box 是box对应的文件名,这里可以是本地保存box的路径

WARNING: bridge-nf-call-iptables is disabled while starting dcos-vagrant

人盡茶涼 提交于 2019-12-25 16:49:20
问题 I'm new to DC/OS and tried to install dcos-vagrant by following the guide on https://github.com/dcos/dcos-vagrant/blob/master/docs/deploy.md. While running vagrant up m1 a1 a2 a3 boot I get the following warnings: ==> m1: WARNING: bridge-nf-call-iptables is disabled ==> m1: WARNING: bridge-nf-call-ip6tables is disabled After the installation I can connect to the webapp on http://m1.dcos and it seems that DC/OS is running. But if I try deploying some applications the nodes cant connect to each

How to Correct Timezone

风流意气都作罢 提交于 2019-12-25 14:13:25
问题 I set my vagrant server's timezone to Asia/Tokyo. However, though I made change in php.ini and restarted httpd, it doesn't return the correct time. The time is 9 hours late from correct time. When I change the time zone Europe/Berin, I see the time changes but it also doesn't return correct time. Here is my php code echo('<pre>'); var_dump(date("Y/m/d G:i:s")); echo('</pre>'); exit; php.ini date.timezone = Asia/Tokyo Are there any suggestions? 回答1: Also restart your apache once you have

How to pass Windows host env into Vagrantfile?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 09:17:05
问题 I have a Windows-7 host running Vagrant (1.9.1), from which I start a CentOS guest VM I want to pass a Windows environment variable into the guest via the Vagrantfile. Let's call the environment variable ABC >echo %ABC% 123 I know I can pass static values in as: config.vm.provision :shell, path: "scripts/bootstrap.sh", env: {"MYVAR" => "123"} But I don't know how to translate the env var - this doesn't work (passes literal: %ABC%): config.vm.provision :shell, path: "scripts/bootstrap.sh", env