openstack虚拟机rescue模式

本文介绍了OpenStack中使用`nova rescue`命令将虚拟机置于救援模式的过程。在救援模式下,虚拟机将以创建时的镜像启动,并将原有磁盘作为vdb挂载。救援密码一旦设定不能更改,且虚拟机状态显示为RESCUE。通过ssh或VNC连接,可以使用root/rescue_password进入虚拟机进行修复。修复完成后,使用`nova unrescue`退出救援模式,虚拟机恢复正常运行状态。
摘要由CSDN通过智能技术生成

nova rescue vm_instance

which option system is linux

lin.wang 20190426

   openstack环境中的虚拟机的救援模式,只能在boot from image的情况下使用,boot from volume的情况,只能采用将虚拟机删除,将虚拟机的volume挂载给其他虚拟机的方式进行修复.

nova rescue命令使用帮助

[root@node-1 ~]# nova help rescue 
usage: nova rescue [--password <password>] [--image <image>] <server>

Reboots a server into rescue mode, which starts the machine from either the
initial image or a specified image, attaching the current boot disk as
secondary.

Positional arguments:
  <server>               Name or ID of server.

Optional arguments:
  --password <password>  The admin password to be set in the rescue
                         environment.
  --image <image>        The image to rescue with.

在控制节点执行如下命令nova rescue

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值