世界上最牛逼的人是谁

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

 

posted @ 2018-04-26 11:20  站在浪潮之巅  阅读(8802)  评论(0编辑  收藏  举报