加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – libvirt:如何在主机启动时启动域?

发布时间:2020-12-13 18:40:18 所属栏目:Linux 来源:网络整理
导读:我希望我的某些域在我的主机启动时自动启动(我在ubuntu上使用libvirt KVM).我想我可以在rc.local中添加一些“virsh start …”语句,但有没有办法在libvirt / virsh中配置它? 解决方法 看看“帮助”的输出: virsh # help autostart NAME autostart - autost
我希望我的某些域在我的主机启动时自动启动(我在ubuntu上使用libvirt KVM).我想我可以在rc.local中添加一些“virsh start …”语句,但有没有办法在libvirt / virsh中配置它?

解决方法

看看“帮助”的输出:
virsh # help autostart
  NAME
    autostart - autostart a domain

  SYNOPSIS
    autostart <domain> [--disable]

  DESCRIPTION
    Configure a domain to be automatically started at boot.

  OPTIONS
    [--domain] <string>  domain name,id or uuid
    --disable        disable autostarting

这要求您从文件中定义域(即,域是持久的而不是暂时的.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读