zoukankan      html  css  js  c++  java
  • 如何使用vagrant创建并管理kvm虚拟机?

    安装vagrant-libvirt

    Archlinux,其他linux类似

    #!/usr/bin/env bash
    [[ -n $DEBUG ]] && set -x
    set -eou pipefail
    
    useage(){
      cat <<"EOF"
    USAGE:
        install_vagrant_libvirt.sh
    EOF
    }
    
    exit_err() {
       echo >&2 "${1}"
       exit 1
    }
    
    if [ $# -lt 0 ];then
        useage
        exit 1
    fi
    
    ln -s /usr/include/libxml2/libxml /usr/include/libxml
    CONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib' GEM_HOME=~/.vagrant.d/gems GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems PATH=/opt/vagrant/embedded/bin:$PATH proxychains vagrant plugin install vagrant-libvirt
    
    
  • 相关阅读:
    错误处理
    触发器
    存储过程
    用户自定义函数
    动态 SQL
    临时表
    游标
    流程控制元素
    锁定和阻塞
    Spring内置事件以及自定义事件
  • 原文地址:https://www.cnblogs.com/futuretea/p/11996210.html
Copyright © 2011-2022 走看看