XenServer虚拟机开机自启

XenServer虚拟机开机自启

一、先登录XenServer

$ssh root@172.16.18.21
root@172.16.18.21's password:
Permission denied, please try again.
root@172.16.18.21's password:
Last failed login: Mon Nov  5 11:29:46 CST 2018 from 172.16.18.238 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Tue Oct 30 16:24:26 2018 from 172.16.18.238
[root@metrics ~]#

二、查看 pool list 

[root@metrics ~] xe pool-list
uuid ( RO)                : c1ca74cd-e670-c67c-435f-b0367116c542
          name-label ( RW):
    name-description ( RW):
              master ( RO): adb8383a-f355-4971-814a-5826c4f440ac
          default-SR ( RW): bb587bb4-3576-ae8d-d0be-e262a47c39c7


[root@metrics ~] xe pool-param-set uuid=c1ca74cd-e670-c67c-435f-b0367116c542 other-config:auto_poweron=true

三、查看虚拟机列表,并添加到自动启动

[root@metrics ~]# xe vm-list
uuid ( RO)           : 546e7189-143f-3e97-af37-40ad82fbefa8
     name-label ( RW): 你装机前设定定的名字
    power-state ( RO): running


uuid ( RO)           : 0430cad8-6990-044e-101b-b05cfa98e2e0
     name-label ( RW): CentOS 7-Redis5
    power-state ( RO): running

添加到自动启动,注意uuid为虚拟机的唯一标识
[root@metrics ~]# xe vm-param-set uuid=546e7189-143f-3e97-af37-40ad82fbefa8 other-config:auto_poweron=true

[root@metrics ~]# xe vm-param-set uuid=0430cad8-6990-044e-101b-b05cfa98e2e0 other-config:auto_poweron=true

 

转载于:https://my.oschina.net/golang/blog/2870139

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值