本质上两者一样的,都是从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

 

相关文章:

  • 2021-08-14
  • 2022-02-08
  • 2022-02-28
  • 2022-01-08
  • 2021-12-05
  • 2021-11-12
  • 2021-04-02
  • 2021-07-07
猜你喜欢
  • 2021-08-09
  • 2021-12-13
  • 2021-05-19
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案