精华内容
下载资源
问答
  • vagrant

    2017-06-22 20:22:26
    vagrant
    下载安装 VirtualBox :https://www.virtualbox.org/
    下载安装 Vagrant :http://www.vagrantup.com/


    1
    cd ~
    mkdir va
    cd va
    mkdir php
    cd php
    2
    vagrant box add mybox1 server.box
    3
    vagrant init
    4
     vim Vagrantfile 
     config.vm.box = "mybox1"
     config.vm.network "private_network", ip: "192.168.33.10"
     config.vm.synced_folder "/var/www", "/destination_dir"
     $script = <<-SCRIPT
       sudo service nginx start > /dev/null 2>&1
    SCRIPT
    config.vm.provision "shell", inline: $script, run: "always"
    config.ssh.username="vagrant"
    config.ssh.password="vagrant"
    5
    $ vagrant up
    $ vagrant up [vm-name]
    $ vagrant reload [vm-name]
    $ vagrant halt [vm-name]
    $ vagrant destroy [vm-name]
    $ vagrant ssh [vm-name]
    展开全文
  • Vagrant

    2020-06-30 20:20:19
    1、Vagrant 2、征服诱人的Vagrant
    展开全文
  • /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant" INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded" INFO global: VAGRANT_INSTALLER_VERSION&#...
  • m on Windows 10 and just updated Virtualbox from 5.1.10 to 5.1.18 and Vagrant from 1.9.2 to 1.9.3. Now if I try to <code>vagrant up</code> a wocker box I get the following error. It doesn't matter...
  • <div><p>Can no longer connect with <code>vagrant ssh</code> with Vagrant 1.9.5 update (on multiple boxes on Windows 10). Virtual Box 5.1.22. An example from one <code>vagrant ssh-config</code> output:...
  • 流浪者仓库 这是一个私人存储游民箱的游民仓库 在GitHub存储库中找到代码: ... 它还提供了Vagrant客户端用来检索有关托管Vagrant框的信息的端点。 入门 Vagrant存储库组件可在Docker Hub中作为Docker容器使用:
  • <pre><code>from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/guest.rb:70:in`new' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/guest.rb:70:in &...
  • Windows上的install-vagrant-on:Windows上Vagrant的安装指南。 包括Vagrant,VirtualBox,Git和Vagrant的有用插件
  • machinekit-vagrant:Machinekit的Vagrant配置
  • Vagrantvagrant up卡死

    2021-01-31 11:04:32
    Vagrantvagrant up卡死 1. 环境 OS:macOS 10.15.7 VagrantVagrant 2.2.14 VirtualBox:6.1.18 r142142 box: CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box 2. 错误日志 vagrant up日志: Bringing ...

    Vagrant:vagrant up卡死

    1. 环境

    • OS:macOS 10.15.7
    • Vagrant:Vagrant 2.2.14
    • VirtualBox:6.1.18 r142142
      • box:
        • CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box

    2. 错误日志

    vagrant up日志:

    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Importing base box 'centos8'...
    ==> default: Matching MAC address for NAT networking...
    ==> default: Setting the name of the VM: demo_default_1612023130938_87148
    ==> default: Clearing any previously set network interfaces...
    ==> default: Preparing network interfaces based on configuration...
        default: Adapter 1: nat
    ==> default: Forwarding ports...
        default: 22 (guest) => 2222 (host) (adapter 1)
    ==> default: Booting VM...
    ==> default: Waiting for machine to boot. This may take a few minutes...
        default: SSH address: 127.0.0.1:2222
        default: SSH username: vagrant
        default: SSH auth method: private key
    Timed out while waiting for the machine to boot. This means that
    Vagrant was unable to communicate with the guest machine within
    the configured ("config.vm.boot_timeout" value) time period.
    
    If you look above, you should be able to see the error(s) that
    Vagrant had when attempting to connect to the machine. These errors
    are usually good hints as to what may be wrong.
    
    If you're using a custom box, make sure that networking is properly
    working and you're able to connect to the machine. It is a common
    problem that networking isn't setup properly in these boxes.
    Verify that authentication configurations are also setup properly,
    as well.
    
    If the box appears to be booting properly, you may want to increase
    the timeout ("config.vm.boot_timeout") value.
    

    VirtualBox日志:

    # VirtualBox打开虚拟机查看虚拟机情况显示
    virtual box vagrant random: crng init done
    

    3. 原因

    查找了一些资料也没有确定到底是什么问题导致的。

    4. 解决办法

    下面两种是独立的解决方案,没有上下关系

    4.1. 从VirtualBox UI启动

    1. 从VirtualBox UI启动
    2. 使用vagrant halt停止虚拟机
    3. 接下来就可以使用vagrant up正常启动了

    4.2. 更新box

    试了下将CentOS7替换为CentOS8最新版本不存在这个问题,测试通过的CentOS-8-Vagrant-8.3.2011-20201204.2.x86_64.vagrant-virtualbox.box。

    展开全文

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 25,276
精华内容 10,110
热门标签
关键字:

vagrant