zoukankan      html  css  js  c++  java
  • Virsh中创建虚拟机两种方式define和create的区别

    本质上两者一样的,都是从xml配置文件创建虚拟机

    define  丛xml配置文件创建主机但是不启动

    create  同样是丛xml配置文件创建主机,但是可以指定很多选项,比如是否启动,是否连接控制台

    NAME
        create - create a domain from an XML file
    
      SYNOPSIS
        create <file> [--console] [--paused] [--autodestroy] [--pass-fds <string>] [--validate]
    
      DESCRIPTION
        Create a domain.
    
      OPTIONS
        [--file] <string>  file containing an XML domain description
        --console        attach to console after creation
        --paused         leave the guest paused after creation
        --autodestroy    automatically destroy the guest when virsh disconnects
        --pass-fds <string>  pass file descriptors N,M,... to the guest
        --validate       validate the XML against the schema
    
    NAME
        create - create a domain from an XML file
    
      SYNOPSIS
        create <file> [--console] [--paused] [--autodestroy] [--pass-fds <string>] [--validate]
    
      DESCRIPTION
        Create a domain.
    
      OPTIONS
        [--file] <string>  file containing an XML domain description
        --console        attach to console after creation
        --paused         leave the guest paused after creation
        --autodestroy    automatically destroy the guest when virsh disconnects
        --pass-fds <string>  pass file descriptors N,M,... to the guest
        --validate       validate the XML against the schema
    
  • 相关阅读:
    十二、 Spring Boot 静态资源处理
    九、 Spring Boot 拦截器
    docker之搭建私有仓库
    docker之Dokcerfile 常用指令
    docker之网络管理
    docker之故障问题解决方案
    docker之搭建LNMP
    docker之容器数据持久化
    都说岁月不饶人,我们又何曾饶过岁月
    docker之容器管理
  • 原文地址:https://www.cnblogs.com/kouryoushine/p/8950393.html
Copyright © 2011-2022 走看看