vagrant

vagrant asks password at only the first time 'vagrant up'

。_饼干妹妹 提交于 2019-12-22 06:37:50
问题 I made my custom vagrant box for CentOS 6.6. My question is why vagrant always requires password when I 'vagrant up' at only first time. Here is the console log: $ vagrant up Bringing machine 'ns' up with 'virtualbox' provider... ==> ns: Clearing any previously set forwarded ports... ==> ns: Clearing any previously set network interfaces... ==> ns: Preparing network interfaces based on configuration... ns: Adapter 1: nat ns: Adapter 2: hostonly ==> ns: Forwarding ports... ns: 22 => 2222

Laravel homestead not mapping my code folder

独自空忆成欢 提交于 2019-12-22 05:08:12
问题 I am trying to get homestead to work after following the instructions here I have Virtualbox 5.0.6 and Vagrant 1.7.4 on windows 8. The machine boots up fine(ish) the only problem is that my mapped folder is not present on the vm, meaning when I vagrant ssh , the directory /home/vagrant/ is empty, there is no Code directory inside of it. This is a screenshot of the machine booting(it should keep going and saying mapping the folders and stuff): And this is the content of my Homestead.yaml file

Rails app on percise32 vagrant box - assets get “text file busy” error (Errno::ETXTBSY)

本小妞迷上赌 提交于 2019-12-22 04:32:39
问题 Trying to boot up a Rails app inside a Vagrant box (percise32) host machine is Windows 7. This is my Vagrantfile Vagrant.configure('2') do |config| config.vm.box = 'precise32' config.vm.box_url = 'http://files.vagrantup.com/precise32.box' config.vm.hostname = 'rails-dev-box' config.vm.synched_folder "c:\rails_text", "/home/code" config.vm.network :forwarded_port, guest: 3000, host: 3003 config.vm.provision :puppet do |puppet| puppet.manifests_path = 'puppet/manifests' puppet.module_path =

Vagrant SSH Tunnelling after using `vagrant ssh`

孤街醉人 提交于 2019-12-22 04:26:12
问题 My MySQL client (Sequel Pro) is set up to connect to Vagrant over SSH. I've setup the following in my ~/.ssh/config file: Host vagrant HostName 127.0.0.1 CheckHostIP no Port 2222 User vagrant IdentityFile ~/.vagrant.d/insecure_private_key Everything works fine if I haven't run vagrant ssh . But once I've logged into the Vagrant box with that command Sequel Pro can no longer connect via SSH - it just says "The SSH Tunnel has unexpectedly closed." So I have to run vagrant reload before I can

What ports does pip use?

徘徊边缘 提交于 2019-12-22 04:11:51
问题 This is hopefully a quick one to answer, I'm trying to provision a box on AWS with puppet and one of the steps involves a pip install from a requirements file. Something like this: - /usr/local/venv/ostcms/bin/pip install -r /vagrant/requirements.txt The step basically fails because it can't find any of the packages in the requirements file, but when I open the AWS box's security group up to allow "All Traffic" the pip step works. I'm trying to find the port that pip uses so I can basically

Vagrant Up failing because the name already exists

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 04:01:53
问题 I've recently started using Virtualbox, Vagrant and VVV for my local Wordpress development environment. It's very slick. One issue I've had is that after shutting things down with 'vagrant halt', the next time I start with 'vagrant up' I get this error: ==> default: Setting the name of the VM: vagrant-local The name of your virtual machine couldn't be set because VirtualBox is reporting another VM with that name already exists. Most of the time, this is because of an error with VirtualBox not

Store Vagrant VM in custom folder

只谈情不闲聊 提交于 2019-12-22 03:46:10
问题 I want to specify folder where Vagrant will store my VM. I need it only for one VM, so I don't want to modify VirtualBox.xml defaultMachineFolder or change VBOX_USER_HOME environment variable. What is the right way to do it in Vagrantfile? I've already tried to add the following lines: config.vm.provider "virtualbox" do |vb| vb.customize ["createvm", "--name", "name", "--basefolder", "path"] end It creates VM folder on the path I specified, but it also duplicate it in the ~/VirtualBox VMs

Store Vagrant VM in custom folder

只谈情不闲聊 提交于 2019-12-22 03:45:13
问题 I want to specify folder where Vagrant will store my VM. I need it only for one VM, so I don't want to modify VirtualBox.xml defaultMachineFolder or change VBOX_USER_HOME environment variable. What is the right way to do it in Vagrantfile? I've already tried to add the following lines: config.vm.provider "virtualbox" do |vb| vb.customize ["createvm", "--name", "name", "--basefolder", "path"] end It creates VM folder on the path I specified, but it also duplicate it in the ~/VirtualBox VMs

Vagrant network collides with a non-hostonly network

 ̄綄美尐妖づ 提交于 2019-12-22 02:20:55
问题 I am trying to get a vagrant box up and running, but I keep getting network collide errors. This box is a fresh download of trusty64. I have been searching every file and folder dealing with vagrant trying to find something specifying an IP I can't. I am running vagrant on a windows 7 machine. Here is my Vagrantfile: C:\Users\.vagrant\boxes...\Vagrantfile Vagrant::Config.run do |config| # This Vagrantfile is auto-generated by 'vagrant package' to contain # the MAC address of the box. Custom

Vagrant: missing file id_rsa

时光毁灭记忆、已成空白 提交于 2019-12-22 02:04:51
问题 I'm using windows with homestead and I'm trying to enter vagrant up on the command line but I'm getting this error: C:/www/Homestead/scripts/homestead.rb:106:in read': No such file or directory @ rb_sysopen - C:/Users/Niall/.ssh/id_rsa (Errno::ENOENT) from C:/www/Homestead/scripts/homestead.rb:106:in block (2 levels) in configure' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems