zoukankan      html  css  js  c++  java
  • vagrant 安装 ubuntu

    安装版本:

    ubuntu  trusty64(14.04)

    step1: 安装vagrant,vbox

    step2: 下载box文件(官网http://www.vagrantbox.es/)

    https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20170222.0.1/providers/virtualbox.box

    Ubuntu16.04

    https://atlas.hashicorp.com/gbarbieru/boxes/xenial/versions/0.0.6/providers/virtualbox.box

    step3: 

    vagrant box add ubuntuTrusty64 **.box
    vagrant init ubuntuTrusty64
    vagrant up --provider virtualbox
    vagrant ssh

    修改Vagrantfile后要重新启动vagrant的命令是:vagrant reload

    vagrant package 命令:
    vagrant package -hUsage: vagrant package [options] [name]Options:
            --base NAME                  virtualbox程序里面的虚拟机的名称,不是box的名字也不是Vagrantfile里面的虚拟机名称.默认是打包当前目录下面的虚拟机。
            --output NAME                要打包成的box名称,不会自动添加.box后缀,要手动加.默认值package.box        --include FILE...            打包时包含的文件名,你可以把.box文件理解为一个压缩包
            --vagrantfile FILE           打包时包含的Vagrantfile文件,原理和上面类似
        -h, --help                       Print this help
    $vboxmanage list vms
    "ubuntu-xenial-16.04-cloudimg" {02ab228e-7803-43cf-958b-2ab6bc8f69f5}
    $vagrant package --base ubuntu-xenial-16.04-cloudimg --output ~/xenial64.box

    vagrant box add --name box_name 
    /path/of/box/file
  • 相关阅读:
    GlusterFS安装部署
    glusterfs peer失败
    GlusterFs 启动报错
    利用idea反编译jar包
    hive 错误记录 之moveing 失败
    节点不可用,显示noReady
    kafka 配置认证与授权
    flink (2) 读取kafka数据
    Flink (1) 安装部署
    redis the cluster is down
  • 原文地址:https://www.cnblogs.com/dunkbird/p/6494844.html
Copyright © 2011-2022 走看看