# 查看创建的虚拟机的uuid
xe vm-list

# 开启虚拟机启动顺序功能
xe vm-param-set HVM-boot-policy="BIOS order" uuid=<vm-uuid>

# 设置虚拟机从DVD启动
xe vm-param-set HVM-boot-params:order="dc" uuid=<vm-uuid> # d表示光驱, c表示硬盘

# 强制关闭机器
xe vm-shutdown vm=test-vm-005 force=false

# 重置vm的电源状态
xe vm-reset-powerstate force=true vm=<vm name>

# 尝试重启toolstack
xe-toollstack-restart

# descroy domain
xe vm-list name-label=<vm name> params=uuid
# 获取vm的domain id
list domains | grep <vm-uuid>
# 尝试重置hang状态的vm
/opt/xensource/debug/xenops destroy_domain -domid <vm domain id>

# 强制vm进入崩溃状态
xe vm-list name-label=<vm name> params=uuid
# 获取vm的domain id
list_domains | grep <vm-uuid>
# 手动出发vm的crash机制
/usr/lib/xen/bin/crash_guest <domain id>
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""