Tag: vagrant

首次使用“homestead ssh”时是否有默认密码连接到stream浪汉?

我试图通过homestead ssh连接到stream浪汉: vagrant@127.0.0.1's password: 但是我的公钥密码不起作用。 我的Homestead.yaml看起来像这样: authorize: ~/.ssh/id_rsa.pub keys: – ~/.ssh/id_rsa 我使用的是“Laravel Homestead 2.0.14版”和“Vagrant 1.7.2”。

在VMWare VM中运行Vagrant

我意识到这基本上是OSCeption(操作系统启动),但我认为它可能对我最有意义(请告诉我,如果有更好的select,这似乎很可怕)。 这是情况:我有一个Windows 8的机器。 我喜欢它 – 除了开发,它对任何事情都很好。 对于开发,我一直在使用运行Ubuntu的VMWare虚拟机。 我曾经使用过Cygwin,但是感觉不对。 我现在正在join一个项目,他们一直在使用Vagrant来pipe理开发环境,所以我需要能够使用Vagrant。 但是,从我看到的,Vagrant主要用于在一致的环境中运行代码,但不一定要编写它。 如果我想通过SSH进入我的stream浪箱来编写代码,那么我将不得不像我的.vimrc文件那样重新configuration我的首选项,而不是每个机器都configuration什么。 那么在我的Ubuntu VirtualMachine中安装Vagrant是否有意义? 我觉得在某些时候,虚拟机中的虚拟机会失控并导致问题。 有没有更好的方法来做到这一点? 编辑:所以我试了一下 – 正如我所料,我打了一些错误。 当我尝试启动机器时,出现以下错误消息: Failed to open a session for the virtual machine vagranttest_1371583212. VT-x is not available. (VERR_VMX_NO_VMX). Result Code: NS_ERROR_FAILURE (0x80004005) Component: Console Interface: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392} 看起来我的VMware虚拟机无法运行其他虚拟机。 任何想法最好的方法去做到这一点?

如何让厨师在运行其他食谱之前运行apt-get update

现在我在我的Vagrantfile中有以下内容: config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe "apt" chef.add_recipe "build-essential" chef.add_recipe "chef-redis::source" chef.add_recipe "openssl" chef.add_recipe "git" chef.add_recipe "postgresql::server" chef.add_recipe "postgresql::client" end 为了安装添加到我的recipe_list的软件,我需要在安装其他软件之前让VM发出apt-get更新 。 我的印象是,这是“合适”配方的特点之一 – 它会运行更新的第一件事情。 当我做一个stream浪汉的规定是: [Sat, 11 Feb 2012 22:20:03 -0800] INFO: *** Chef 0.10.2 *** [Sat, 11 Feb 2012 22:20:03 -0800] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[chef-redis::source]", "recipe[openssl]", […]

无法更改stream浪主文件夹内的文件夹的权限

当我进入我的stream浪vm时,我可以更改stream浪用户文件夹之上和之外的文件和文件夹以及stream浪用户文件夹内的文件的权限。 但不能更改stream浪者用户文件夹下的文件夹的权限。 无论是作为stream浪的用户还是root用户,我都有同样的问题。 在更改stream浪用户文件夹中的权限时是否存在某种限制? vagrant用户文件夹不与主机操作系统共享,但capistrano部署文件夹和docRoot是。 客人是CentOS 6,主机是OS X 10.7。 stream浪是1.0.5。 Virtualbox是4.2.1。

作为root用户默认login

问题:我经常input的第一个命令是su – 。 问题:我如何使vagrant ssh默认使用root用户? 版本:stream浪者1.6.5

使用Laravel Homestead:'没有指定input文件'

我是使用Laravel和Homestead的新手,并且希望得到任何帮助或者正确的方向。 当我运行“php artisan serve”时,我已经成功地到达了“你已经到达”屏幕,但是当我尝试通过Vagrant做同样的事情时,我得到了“没有指定input文件”。 我的Homestead.yaml文件如下所示: authorize: /Users/me/.ssh/id_rsa.pub keys: – /Users/me/.ssh/id_rsa folders: – map: /Users/me/code/exampleproject to: /home/vagrant/code/exampleproject sites: – map: exampleproject.app to: /home/vagrant/code/exampleproject/public variables: – key: APP_ENV value: local 在我的电脑上,我有以下目录: /Users/me/code/Homestead /Users/me/code/exampleproject //this is the directory created with composer 在我的Vagrant Box中,我有两个名为“code”和“Code”的目录: /home/vagrant/code/exampleproject /home/vagrant/Code 我已经检查,我可以看到对我的电脑exampleproject文件所做的更改反映在stream浪盒子文件。 不知道如何解决这个问题! 我真的很感激任何可能的帮助:)

VBoxManage:错误:无法创build主机专用适配器

我现在在fedora 17上运行vagrant 1.4和virtual box 4.3。 当我做“stream浪汉”时,我得到这个错误: Bringing machine 'default' up with 'virtualbox' provider… [default] Clearing any previously set forwarded ports… [default] Clearing any previously set network interfaces… There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["hostonlyif", "create"] Stderr: 0%… Progress […]

如何在代理环境中使用stream浪汉?

我公司的networking正在使用代理。 所以当我使用vagrant up ,它给了我一个401权限的错误。 我怎样才能做一些设置来使用stream浪汉?

Windows10上使用VirtualBox的stream氓软件:无法在您的PATH上find“Rsync”

我在Windows 7系统上使用了一段时间的stream浪汉。 现在我有了一台装有Windows 10的新电脑。我安装了Oracle Virtual Box和Vagrant,我尝试用vagrant命令启动一台机器。 Vagrantfile是我在Windows 7系统上使用的文件。 这是Vagrantfile的内容: Vagrant.configure(2) do |config| config.vm.box = "debian/jessie64" config.vm.provider "virtualbox" do |v| v.customize ["modifyvm", :id, "–memory", "768"] end config.vm.provision :shell, path: "bootstrap.sh" config.vm.network :private_network, ip: "172.27.146.17" config.vm.hostname = "www.delevensstijl.hst1.nl" config.hostsupdater.aliases = ["www.thelifestylemethod.hst1.nl"] end 我得到的错误:在您的PATH找不到“rsync”。 确保您的系统上正确安装了rsync,并在PATH上可用。 为什么stream浪使用Virtualbox寻找rsync? 我该如何解决这个错误?

如何在没有实际运行“stream浪ssh”的情况下sshstream浪?

我想重现Vagrant如何使用ssh命令在shell脚本内logging我的虚拟机,所以我为我的Vagrant实例创build一个别名。 什么是使用普通的ssh命令来访问它的命令语法?