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
    
  • 相关阅读:
    java依赖注入
    Mac OS 中的 Python(和 NumPy)开发环境设置
    英语巴菲
    经济学原理
    You are beautiful
    大数据之tachyon(未完版)
    机器学习温和指南
    机器学习之回归
    Mac 命令
    批处理--批量打开程序&批量关闭程序
  • 原文地址:https://www.cnblogs.com/kouryoushine/p/8950393.html
Copyright © 2011-2022 走看看