草庐IT

vagrant-provision

全部标签

windows - 如何在 Windows 上的 Vagrant 中使用 rsync 共享文件夹?

我想使用Vagrant在本地开发WordPress网站(主机:Windows864位;访客:Ubuntu12.04LTS)。我正在使用ChrisWiegman的PrimaryVagrant(Apache版本的VVV)我让它运行起来了,但是一旦我添加了我的所有文件,网站就运行得非常慢。经过研究,我猜这是因为共享文件夹运行缓慢。thisblogpostontheVagrantwebsite中提到的解决方法,就是使用rsync。尽管他们没有关于如何在Windows上运行rsync的说明,但我遇到了thisarticle推荐免费版本的cwrsync。我还必须添加路径环境变量,以便rsync在W

windows - Vagrant laravel homestead 的代理问题

我正在尝试在WindowsPC上使用Laravelhomestead,并在代理后面使用Vagrant。我正在使用“vagrant-proxyconf”并使用代理详细信息更新了我的vagrantfileVagrant.configure("2")do|config|ifVagrant.has_plugin?("vagrant-proxyconf")config.proxy.http="http://$my_account:$my_password@yproxyserver.com.au:8080"config.proxy.https="http://$my_account:$my_pas

windows - vagrant - 不断同步文件夹设置

我正在尝试使用virtualbox在我的windows10上构建一个centos7虚拟机。我正在使用cento/7盒子。它默认使用rsync同步文件夹,我不太喜欢它,因为我必须打开一个额外的cmd才能运行vagrantrsync-auto以进行持续同步。我尝试使用nfs但没有成功。这是我的vagrantfile。Vagrant.configure(2)do|config|config.vm.box="centos/7"config.vm.synced_folder".","/home/vagrant/sync",type:"nfs"end当我尝试运行它时。它给了我这个。Failedto

windows - Tomcat8 无法在 Windows 主机上的 VirtualBox Vagrant 中的 Ubuntu 16.04 中启动

我对vagrant不是很熟悉,我有一个Ubuntu16.04的图像,其中包含一个可以设置和运行tomcat8服务器应用程序的脚本。我去一台windows主机上设置,每次tomcat服务都启动失败。运行ansibleplaybook的结果是:TASK[Restarttomcat]**********************************************************fatal:[localhost]:FAILED!=>{"changed":true,"cmd":"servicetomcat8restart","delta":"0:00:00.046020","

windows - 在 Windows 7 主机上使用事件的 VPN 连接启动时,vagrant provisioned virtualbox 无法访问互联网

我在设置开发虚拟机时遇到网络问题宿主环境为:Windows7x64Vagrant1.7.2Virtualbox4.3.20r96997具有活跃的WLAN互联网连接可以连接到VPNVagrantfile中的相关部分是:ENV['VAGRANT_DEFAULT_PROVIDER']='virtualbox'Vagrant.configure(2)do|config|config.vm.box="ubuntu/trusty64"config.vm.define'crm'do|node|node.vm.network:private_network,ip:'192.168.56.2'enden

windows - 使用 cygwin 时 vagrant up "Error: Could not create directory '/home/username/.ssh'"

使用vagrant1.8.1,当尝试为已经初始化的盒子执行“vagrantup--providervirtualbox”时,我得到一个“错误:无法创建目录‘/home/用户名/.ssh'."按照此处的说明-https://atlas.hashicorp.com/centos/boxes/7the以下:命令:vagrantinitcentos/7;vagrantup--providervirtualbox输出:Therewasanerrorwhenattemptingtorsyncasyncedfolder.Pleaseinspecttheerrormessagebelowformore

windows - 无法在 Vagrant 安装的 Windows 2008 R2 Standard 中运行 PowerShell 脚本

我无法运行此PowerShell脚本#Execute.exefileGet-ChildItem"C:\vagrant"-Filter*.exe|WhereName-NotMatch'.*NoDB\.exe$'|%{New-Objectpsobject-Property@{No=[int]([regex]::Match($_.Name,'(?在WindowsWindows2008R2Standard因为**********************WindowsPowerShellTranscriptStartStarttime:20160719080730Username:VAGRANT

windows - 如何加快 vagrant 共享文件夹的速度

我已经在运行centosVM的Windows8上使用vagrant大约一个星期了。因为我发现在处理共享文件夹(/vagrant)中的文件时,在centos虚拟环境中运行的东西有很多问题,所以我设置了一个文件观察器,当我在windows中更改文件并写入时自动更新文件在/home/vagrant/下的某个地方。这样一来,我的项目完全在centos环境中,没有共享文件夹中发生的任何奇怪情况。但是,我注意到文件同步大约需要15秒。我们谈论的是大约150行或更少的文件——小文件。15秒是永恒。所以我的问题是:天哪,这是怎么回事?我怎样才能加快速度?不到一秒是最理想的。编辑/测试周期让我想起了在C

windows - Windows 8.1 更新后的 Vagrant 错误

最近将我的操作系统从Windows8更新到Windows8.1后,我的vagrant设置停止工作。我尝试在盒子上运行vagrantup,我得到以下信息:$vagrantupBringingmachine'default'upwith'virtualbox'provider...[default]BootingVM...[default]Waitingformachinetoboot.Thismaytakeafewminutes...TheguestmachineenteredaninvalidstatewhilewaitingforittobootValidstatesare'star

windows - 使用 Vagrant 和 Puphpet 配置 AWS EC2 实例

我在使用Windows7上的Puphpet、Vagrant启动和运行AWS机器时遇到问题。盒子已创建,我可以通过SSH连接到它(包括vagrantSSH),但是当Vagrant尝试时似乎出现了问题设置同步文件夹(我已尝试根据下面的配置禁用synced_folder,但无济于事-同样的错误)。Vagrant的输出:$vagrantupBringingmachine'default'upwith'aws'provider...==>default:PreparingSMBsharedfolders...default:Youwillbeaskedfortheusernameandpassw