vagrant

Vagrant / Clojure / Emacs

霸气de小男生 提交于 2020-01-01 03:26:06
问题 I want to put together a standard environment for exploring Clojure with Emacs. Has anyone got a recipe that would suit this? I'm thinking of a Vagrant system running a flavour of Ubuntu, with NREPL and some useful EMACS support plugins. 回答1: vagrant box add preciseMinimal http://goo.gl/wxdwM Change to Clojure vagrant base folder vagrant init preciseMinimal vagrant up vagrant ssh or ssh to 127.0.0.1 port 2222 (or other port mentioned in "vagrant up" output) sudo apt-get update sudo apt-get

Failing to connect to remote mongodb server

℡╲_俬逩灬. 提交于 2020-01-01 02:10:10
问题 I am trying to create a remote mongodb server to work with on my java project. I am using vagrant + ansible to create the environment, but fr soem reson i cannot get a connection. I always get connection refused through the network. the same code on localhost works perfectly. I am using vagrant box: chef/centos-6.5 and my ansible tasks are as follows: - name: Download EPEL Repo get_url: url=http://dl.fedoraproject.org/pub/epel/6/x86_64/epel- release-6-8.noarch.rpm dest=/tmp/epel-release-6-8

Using vagrant on EC2

折月煮酒 提交于 2019-12-31 17:58:10
问题 I need to setup a web server and a database server on EC2. It should be easy to migrate to another service provider later. Currently, I have a web server and a database server, each running on separate EC2 micro instances with software installed there remotely. Can we run a vagrant box on these micro instances with pre-installed and pre-configured softwares like LAMP stack and use that instead. So I will end with 2 vagrant boxes , one for web server another for database server. Amazon

enabling gui in Vagrantfile settings

浪子不回头ぞ 提交于 2019-12-31 17:52:34
问题 I've tried using configure.vm.boot_mode = :gui in Vegrantfile, but got this error: The following settings shouldn't exist: boot_mode the way I fixed it now is by using vendor configuration (virtualbox): config.vm.provider "virtualbox" do |v| v.gui = true end but I would like to avoid vendor-specific anything when not necessary. what vendor-agnostic alternative is there to this? is there a replacement to boot_mode ? 回答1: vm.boot_mode is gone with Vagrant 1.1, but you can still use it if you

“skipping: no hosts matched” issue with Vagrant and Ansible

人盡茶涼 提交于 2019-12-31 17:51:32
问题 I have installed Vagrant, VirtualBox and Ansible and trying to run provision over one host but it always returns "skipping: no hosts matched" The head of my playbook file looks like this: --- - hosts: webservers user: vagrant sudo: yes and my /etc/ansible/hosts file looks like this: [webservers] webserver1 I tried putting the IP address there but had the same result. I have added my ssh key to the server and added webserver1 host to both .ssh/config and /etc/hosts . I can ssh vagrant

“skipping: no hosts matched” issue with Vagrant and Ansible

試著忘記壹切 提交于 2019-12-31 17:51:15
问题 I have installed Vagrant, VirtualBox and Ansible and trying to run provision over one host but it always returns "skipping: no hosts matched" The head of my playbook file looks like this: --- - hosts: webservers user: vagrant sudo: yes and my /etc/ansible/hosts file looks like this: [webservers] webserver1 I tried putting the IP address there but had the same result. I have added my ssh key to the server and added webserver1 host to both .ssh/config and /etc/hosts . I can ssh vagrant

.bashrc: Permission denied

孤人 提交于 2019-12-31 15:14:50
问题 I try to work with a project in vagrant. I have made the command vagrant ssh , and connected to VM. Now I need to edit .bashrc file to set path to the source code. But first I couldn't find that file. So I googled and find that the way is call command ~/.bashrc . But doing this I get message, that I have no access to it: [vagrant@nupic-vagrant:~]$ ~/.bashrc -bash: /home/vagrant/.bashrc: Permission denied So what to do now? UPD. I can't find the .bashrc file. When I try to make command ls -a I

Vagrant Up Error In Headless Ubuntu: The guest machine entered an invalid state while waiting for it to boot

梦想的初衷 提交于 2019-12-31 08:54:27
问题 I need to install vagrant in headless ubuntu(Ubuntu 12.04.2 LTS- 64 Bit).Vagrant ver-v1.3.0 and Virtual box- 4.2.18. After adding the vagrant package box, when I am giving "vagrant up" command, am getting the following error: Bringing machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on

Vagrant is not forwarding when I run django runserver on ssh

∥☆過路亽.° 提交于 2019-12-31 08:44:08
问题 I created a Vagrant Ubuntu (lucid32) box with Python & Django. My idea is start the VM, log into it with vagrant ssh , and then start Django by running: manage.py runserver which defaults to port 8000. The problem is that I can not access the Django server from the host's browser at http://127.0.0.1:8000 . What can I do? 回答1: You need to bind the server to the external IP with: manage.py runserver 0.0.0.0:8000 回答2: First, you need to do port forwarding in Vagrant file. config.vm.network

Vagrant error: NFS is reporting that your exports file is invalid

与世无争的帅哥 提交于 2019-12-31 07:52:11
问题 I am trying to set up the Discourse development environment using these instructions. However when I run Vagrant I get the error: NFS is reporting that your exports file is invalid. Vagrant does this check before making any changes to the file. Please correct the issues below and execute "vagrant reload": Can't open /etc/exports I checked, and I don't have an etc/exports folder, so I created one and ran vagrant reload . This got me: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1