-
1 votesanswersviews
vagrant管理主机dhcp
我希望每次运行 vagrant up / vagrant destroy 时,根据项目's dirname and VM'的IP地址自动添加/删除我的 /etc/hosts 文件的条目别名 . 有一些插件可以做到这一点,但不支持dhcp . 我正在使用 machine_name = File.basename(File.expand_path('..', Dir.pwd)) + '.local... -
2 votesanswersviews
我想创建一个用户/密码,通过VirtualBox GUI登录vagrant vm
我想使用用户名/密码通过Virtualbox的GUI登录流浪虚拟机 我是Vagrant的新手,我以为我可以通过virtualbox gui登录,使用以下内容: username: vagrant password: vagrant 但是,它无法使用我的设置 . 我已附上以下链接供您考虑: My Vagrantfile(档案) vagrant up (output)(图片仅供参考) virtual... -
2 votesanswersviews
vagrant synced文件夹在virtualbox上实时无法正常工作
我的同步文件夹工作不正常,它们在启动时被同步一次,但是当我在主机上进行更改时,vagrant不会实时同步它 . 首先是我系统的一些细节: 操作系统:Linux Mint 18 Sarah Virtualbox版本:5.0.24-dfsg-0ubuntu1.16.04.1 Vagrant版本:1.9.0 vagrant-hostmanager(1.8.5) vagrant-sha... -
1 votesanswersviews
通过远程服务器上的Vagrant受管服务器运行PuPHPet
所以我使用http://puphpet.com/构建了一个VM,它可以作为本地VM使用 . 我现在的目标是在我的prod服务器上使用相同的东西,所以我不必自己编写所有的木偶东西,更重要的是为dev和prod设置一个木偶设置,以便真正地设置它们 . 要使用Vagrant管理远程服务器,我使用这个插件:https://github.com/tknerr/vagrant-managed-servers(... -
0 votesanswersviews
apache不会在vagrant上重启
我的机器上有一个流浪汉网站设置为vagrantfile的客户端机器(从客户端收到它) . 现在在机器上,我无法重启apache服务器 . 我做了以下命令 . sudo service apache2 restart dpkg-reconfigure -plow apache2 两个都给我以下错误 . 重启web服务器apache2 [fail] apache2 configte... -
1 votesanswersviews
使用NodeJs和vagrant
我有这个Vagrantfile VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "hashicorp/precise32" config.vm.network "forwarded_por... -
0 votesanswersviews
vagrant port forwarding不起作用:连接由peer重置
ssh port forwarding (which is enabled by default) works fine, but my custom port forwardings don't. I took the config below from the official docs, but it doesn't work :( 主机运行Ubuntu 17.04 Vagrantfile ... -
2 votesanswersviews
Laravel / Homestead上的流浪汉坚持使用ssh auth方法
任何人都可以帮助我,每次使用SSH身份验证方法时,流浪汉都会停止 . 我被困了4天 . 请大家帮帮我 Vagrant版本是1.9.2 Virtual Box版本是5.0.16 Sam@sam-PC MINGW32 /c/www/Homestead (master) $ vagrant up Bringing machine 'homestead-7' up with 'virtua... -
0 votesanswersviews
如何设置Vagrant ssh超时
我有一个厨师食谱来为Redhat OS应用补丁 . 注册到RH卫星服务器后,它运行 yum -y update . 我用来测试食谱的rhel 6.4图像有255个包需要更新 . 但它总是在210左右的包中失败,没有消息错误,它只说 "return 1" instead of 0. 我还将我的流浪盒增加到1GB内存,但仍然失败了 . 我怀疑流浪汉ssh超时 . 但我找不到任何... -
2 votesanswersviews
厨师Vagrant,找不到文件夹
厨师真让我困惑 . 你能帮我理解为什么它不起作用吗? Cliff Notes 我正在使用Chef-Solo(不是Berkshelf或其他任何东西) 当我从头开始设置时,一切正常,我可以 vagrant provision 但是,如果我重新启动 HOST (我的主要操作系统),它会中断! 它似乎是在我的流浪汉配置中未指定的.chef文件夹中查找 . 如果我重新启动,我必须做 vm... -
2 votesanswersviews
Vagrant挂起用于Windows VM的安装文件夹
我希望有人可以请求帮助,因为我不知道如何解决这个问题! 我正在使用Vagrant和VirtualBox来运行Chef配方 . 本质上,配方将在Windows 2012机器上创建用户 . 然而,当我输入vagrant reload --provision(或除了停止之外的任何其他vagrant命令)时,我的问题是, 主机执行以下操作: - D:\cookbook-core>vagrant re... -
4 votesanswersviews
vagrant reload synced_folder
这是我的Vagrantfile . config.vm.define :web do |web| web.vm.box = "ubuntu/trusty64" web.vm.network "private_network", ip: "192.168.100.111" web.vm.network "forwarded_... -
-1 votesanswersviews
2个网卡的流浪网络错误(1个无效)
我的Linux主机上有2张网卡 . eth0是片状的,所以我不使用它(ifconfig eth0 down) . eth1设置为DHCP . 在我的Vagrantfile中,我有 config.vm.network :private_network, type: 'dhcp' 这有效 . 有点 . Windows客户机在“以太网2”上启用了工作网络 . 它还具有非活动的“以太网”连接 . ... -
8 votesanswersviews
Vagrant:获取主机操作系统的名称
我们有一个Vagrant设置运行Ubuntu 12.04作为我们团队中的客户操作系统,主机操作系统是Windows 7或8.我希望能够获得Windows主机的主机名和在安装过程中将其附加到Vagrant主机名,例如 config.vm.hostname = <windows hostname>-web 这是因为我们有几个开发人员从他们的本地开发机器连接到外部服务,如果我们都设置了相同... -
2 votesanswersviews
我被要求输入ubuntu用户的密码而不是vagrant(我在GUI中登录的用户)
我有一个流浪汉项目,配备了ansible . 对于ssh设置我使用: config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" config.ssh.forward_agent = true config.ssh.forward_x11 = true 问题是我用GUI启动VM vb.gui = true 安... -
1 votesanswersviews
流浪者认证
我是流浪汉的新手,并尝试使用Windows 10上的VirtualBox设置精确的64框,根据流浪汉入门指南 . 当我运行'vagrant up'时,当我检查VirtualBox但是没有超过登录提示时,该框启动 . 这是我的流浪文件; # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done belo... -
19 votesanswersviews
Vagrant的Ubuntu 16.04 vagrantfile默认密码
我正在尝试通过Vagrant 1.9.1部署和运行Ubuntu 16.04 VM . 我正在使用的Vagrantfile来自Atlas: Ubuntu Xenial 16.04 Vagrantfile 我正在使用Debian Stretch作为主机操作系统 . Vagrant是通过Vagrant网站上的.deb安装的 . Vagrantfile可以正确运行和部署 . 我可以通过我的主机操作系统和... -
1 votesanswersviews
使用VirtualBox在Windows中同步Vagrant文件夹
我不明白我能找到的答案,所以我会再试一次 . 我在使用VirtualBox的虚拟机上使用Vagrant . 我的主机有Windows 10 . 根据https://www.vagrantup.com/docs/synced-folders/basic_usage.html我应该编辑Vagrantfile以包含 config.vm.synced_folder "src/", &q... -
1 votesanswersviews
无法在Linux guest虚拟机中挂载文件夹 - mesg:ttyname失败:设备的ioctl不合适
Vagrant不会挂载文件夹 . 尝试了这么多解决方案,没有任何效果 . 版本:Vagrant 1.8.1 / Ubuntu 15.10 / Virtualbox 5.0.16 vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'ubuntu/... -
1 votesanswersviews
Vagrant同步文件夹在Windows 10上不起作用
我正在尝试将文件夹从Windows 10 hosto同步到ubuntu来宾,但我收到此错误: $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'ubuntu/trusty64' is up to date... ==> defaul... -
3 votesanswersviews
Vagrant multi-vm ssh不能正常工作
我使用底部的Vagrantfile设置了多vm环境 . 但是我无法进入任何一个盒子 . 我已经尝试了vagrant ssh vm-cluster-node1,但它说“找不到为此Vagrant环境配置了名为'vm-cluster-node1'的计算机 . ” # -*- mode: ruby -*- # vi: set ft=ruby : $master_script = <<SCRI... -
4 votesanswersviews
Vagrant配置术语
TL; DR;有人可以帮助我理解Vagrantfile中定义的这些“名称”之间的区别吗? config.vm.define "worker" box.vm.box = "ots-box" box.vm.host_name = "worker" vb.name = "barhost" 在尝试更改我所... -
3 votesanswersviews
Vagrant在引导多台计算机时运行错误的配置文件
我有以下vagrantfile,它指定了2台机器 - 前端和后端框 . Vagrant.configure(2) do |config| config.vm.box = "frontend" config.vm.network "private_network", ip: "192.168.0.5" config.vm.p... -
131 votesanswersviews
Vagrant ssh身份验证失败
ssh身份验证的问题: ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on confi... -
1 votesanswersviews
kubeadm init - 失败
我'm having troubles with this Vagrantfile that I' ve定义了https://github.com/pablotoledo/kubernetes-poc/blob/master/Vagrantfile . 在这个Vagrant文件中我设置: 1硕士 2 Worker 我已经定义了一些要在每个VM上运行的脚本: Master的SSH K... -
3 votesanswersviews
在Vagrant服务器中创建虚拟主机
我正在运行带有vagrant的Apache服务器,我想从主机访问多个网站 . 当前设置如下所示: Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "ubuntu/trusty64" config.ssh.forward_agent = true confi... -
0 votesanswersviews
无法在流浪汉中同步文件夹
我正在使用流浪盒'ubuntu / trusty64' . 我试图在流浪汉中同步文件夹,为此,我修改了我的流浪文件 . 该文件是: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "foo-box" config.... -
0 votesanswersviews
有没有办法阻止Vagrant自动共享/流浪汉?
我正在使用带有Vagrant的FreeBSD 10并遇到共享文件夹的问题,FreeBSD 10 VirtualBox guest虚拟机添加目前不支持这些文件夹 . 我通过使用rsync方法共享文件夹解决了这个问题 . 但是,Vagrant总是试图在/ vagrant加载工作文件夹 . 有办法防止这种情况吗? -
2 votesanswersviews
Vagrant共享文件夹没有同步
如何在没有运行任何同步方法的情况下拥有共享文件夹(从主机和来宾计算机访问同一文件夹)? (我想使用我自己的rsync脚本,这正是我需要的,没有Vagrant文件共享性能损失) . 我试过了 config.vm.synced_folder ".", "/vagrant", disabled: true 但它会禁用整个共享 . 我在Windows 7(主机)上...