vagrant

Run Python script in Vagrant

亡梦爱人 提交于 2019-12-23 03:47:15
问题 This is a dumb question but please help me. Q. How do I run Python script that is saved in my local machine? after vagrant up and vagrant ssh , I do not see any Python file in the VM. Then what if I want to run Python scripts that are saved in my Mac? I do not want to copy and paste them manually using vim. How would you run Python script in Vagrant ssh? 回答1: On your Guest OS there will be a folder under / called /vagrant/ this will be all the files and directories under the directory on your

Why won't Ansible mount Vagrant remote NFS share

混江龙づ霸主 提交于 2019-12-23 03:08:31
问题 My Ansible playbook is raising an error when I try to execute the mount module: Error mounting 192.168.33.1:/Users/me/playbooks/site1/website: mount.nfs: remote share not in 'host:dir' format The code directory is mounted: $ vagrant ssh -c "mount | grep http" 192.168.33.1:/Users/me/playbooks/site1/website on /srv/http/site1.com type nfs (...) Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "debian/jessie64" config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm

Local Django website won't load in browser

对着背影说爱祢 提交于 2019-12-22 19:42:11
问题 I'm guessing there's a very simple solution to this, but I searched every forum and setup guide and can't figure it out: I built a Django/CentOS-6.3 environment on my local server (using VirtualBox and Vagrant). When I startup my server in the vagrant terminal with 'python manage.py runserver [::]:8000' it starts up with no errors. Validating models... 0 errors found May 31, 2013 - 13:56:15 Django version 1.5.1, using settings 'mysitename.settings' Development server is running at http://[::]

How can I restore my vagrant VM ( all file have been deleted)?

和自甴很熟 提交于 2019-12-22 18:39:13
问题 I don't know why but after doing vagrant halt then up, all my file in the VM are lost. There is only an empty data file. And when I SSH into it , putty tell me that the key has changed. I have saved a package.box that maybe can help to restore my VM. I really don't know what to do. Thanks very much 回答1: In some occasions, vagrant seems to recreate a new VM while there is existing ones. If you need to re-associate an existing VM to your current vagrant project directory, you can run the

How to switch order of network adapters in Vagrant under VirtualBox?

心已入冬 提交于 2019-12-22 13:47:12
问题 Under Vagrant I have config something like this: Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64" config.vm.provider "virtualbox" do |vb| vb.memory = "512" end config.vm.host_name = 'core.example.com' config.vm.network "forwarded_port", guest: 22, host: 2222, id: 'ssh' config.vm.network "private_network", ip: '172.28.128.3' config.vm.synced_folder "./vagrant_core", "/vagrant", create: true end And after this I receiving something like that: Adapter eth0 -> NAT Adapter eth1 -

Laravel/Homestead - OSX - Vagrant Connection Timeout

心不动则不痛 提交于 2019-12-22 11:05:24
问题 Problem I am attempting to get Laravel Homestead working on my Mac Book Air. I have followed the instruction from http://laravel.com/docs/4.2/homestead but when I vagrant up I get stopped on: default: Warning: Connection timeout. Retrying... After I vagrant up fails because of connection timeout i can not vagrant provision or vagrant reload . I can however vagrant ssh into the machine and I can ping google from the machine. I can also spin up other vagrant boxes on my machine with no problem.

Vagrant to test chef recipies - but how to deal with private git

自古美人都是妖i 提交于 2019-12-22 10:10:02
问题 I use vagrant to test my chef recipes. The issue is that I have clone my private repo and the machine is not auteticated. How can i automated git authentication to boostrap chef? I am using the vagrant ubuntu 11.10 with chef. Thanks 回答1: use ssh keys with passphrase on a vagrant+chef setup will have similar answers that might be helpful. Without knowing more details of chef-solo, or chef-client + chef-server. It comes down to ssh keys. Make sure you are authing with something like git@github

Error: Could not parse application options: invalid option: --manifestdir

假装没事ソ 提交于 2019-12-22 10:08:33
问题 I was trying to install piwik-dev-environment. According to instructions I cloned the repo, installed Vagrant and executed vagrant up . The process ended with the following error: Error: Could not parse application options: invalid option: --manifestdir Full logs are here: Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'trusty64' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Box

Homestead 2 xdebug doesn't work

前提是你 提交于 2019-12-22 08:08:33
问题 I have a Homestead vagrant VM setup. Xdebug is all setup for remote debugging out of the box. I can see this in here /etc/php5/fpm/conf.d/20-xdebug.ini and by doing a php -i | grep 'xdebug' I've setup a breakpoint in my default index.php and clicked the 'start listening for PHP debug connections' in my IDE PHPstorm. I have installed xdebug helper for chrome and turned it on, also setting my IDE string to PHPstorm in it's settings. I've tried setting different ports in both my IDE and xdebug

debug spring boot in vagrant and docker

杀马特。学长 韩版系。学妹 提交于 2019-12-22 08:07:46
问题 I'm trying to setup development environment for spring-boot project based on docker and vagrant. I'm using IntelliJ running on windows to write code and vagrant to be able to run project in docker containers on any system. I'm building project with maven. Currently I'm able to run application packaged in jar in docker container running in ubuntu on virtualbox via vagrant. I cannot figure it out how to debug my application in IntelliJ, I start application with remote debugging on, correctly