悲剧的一台windows的虚拟机无法重启无法关机。如下图,一直卡住不动。

首先找到这台机器:

[root@xenserver- xen]# xe vm-list name-label=-vss\ server
uuid ( RO) : 2109ad5d-ba26-d51f-aa61-326f02ded276
name-label ( RW): -vss server
power-state ( RO): running

命令行强制关机无果。

[root@xenserver- xen]# xe vm-shutdown uuid=2109ad5d-ba26-d51f-aa61-326f02ded276 force=true

重置电源状态也行不通。

[root@xenserver- xen]# xe vm-reset-powerstate uuid=2109ad5d-ba26-d51f-aa61-326f02ded276 --force
The operation could not be performed because a domain still exists for the specified VM.
vm: 2109ad5d-ba26-d51f-aa61-326f02ded276 (-vss server)
domid: <unknown>

看来得先取消那个卡死的任务了。首先找到任务。

[root@xenserver- xen]# xe task-list
uuid ( RO) : d0098f61-d056-16ba-571f-917d77cc18c4
name-label ( RO): Connection to VM console
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : 43fd7023--929a-5e91-6df0afbed23b
name-label ( RO): Async.VM.clean_shutdown
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : 66a163a2-19e9-9add-fce2-314defe7d667
name-label ( RO): Async.VM.hard_shutdown
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : fdcf42d3-e042-120e--9fa8de7b4ccf
name-label ( RO): Connection to VM console
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : 4d3c8f20-4a73-cd6f-07cc-f5a70279fe67
name-label ( RO): Async.VM.hard_shutdown
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : 2d7c06a9-34e1-dbac-042f-cb33c9ca9a90
name-label ( RO): Async.VM.clean_reboot
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000

接下来取消之。

[root@xenserver- xen]# xe task-cancel uuid=66a163a2-19e9-9add-fce2-314defe7d667
[root@xenserver- xen]# xe task-cancel uuid=4d3c8f20-4a73-cd6f-07cc-f5a70279fe67
[root@xenserver- xen]# xe task-cancel uuid=2d7c06a9-34e1-dbac-042f-cb33c9ca9a90
[root@xenserver- xen]# xe task-cancel uuid=43fd7023--929a-5e91-6df0afbed23b
[root@xenserver- xen]# xe task-list
uuid ( RO) : d0098f61-d056-16ba-571f-917d77cc18c4
name-label ( RO): Connection to VM console
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : fdcf42d3-e042-120e--9fa8de7b4ccf
name-label ( RO): Connection to VM console
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000 uuid ( RO) : 2d7c06a9-34e1-dbac-042f-cb33c9ca9a90
name-label ( RO): Async.VM.clean_reboot
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000

居然有一个取消不掉的,那得换别的方法。

[root@xenserver- xen]# list_domains
id | uuid | state
| c7910908-e995-4ca4-ab25-d6d630cf0729 | R
| 62799f2c---9b39-fb3949432361 | RH
| fd7c79bb-095b-0e6a-6fd7-96bd156907d8 | B H
| 7a3ebab5-d37a-07cb-df1a-1178391604d4 | B H
| 6449155a-1d8c-1acd-24d5-6fb5d9f8adac | B H
| f2bc15f6-d83c-c888-8cab-a18d98f07a0f | B H
| 2109ad5d-ba26-d51f-aa61-326f02ded276 | B H
| b2d729ec-572b-72af-1e87-646cf78f96d1 | B H
| -bcaa--ce69-8aa4c320ca24 | B H
| 370ec73f---a9df-e5c106840f95 | B
| 198eca87-0b84-a6dd-07b1-08fb4970df59 | B H
| -5f69-48c0-4de4-2a26a3b31a27 | B
[root@xenserver- xen]# /opt/xensource/debug/destroy_domain -domid

至此机器已经处于关闭状态了。

另外非正常关闭的一般会在启动时出现VDI不可用的错误,解决方法如下:

先根据存储的名字找到存储,例如:

xe vdi-list name-label=vip03-sys-226

然后使用下面命令分离:

xe vdi-forget uuid=xxxx存储的uuid

这是虚拟机的存储中就没有这个存储了,再到存储设备里点击重新扫描,等扫描出来后再到vm的存储界面通过连接磁盘添加存储。

citrix xen server 虚拟机无法关闭的问题的更多相关文章

  1. Xen Server虚拟机数据恢复的方法和数据恢复过程

    在服务器运行过程中如果出现意外情况突然断电很容易引起服务器故障,服务器中的硬件设备损坏可以修复或者购买,但是服务器中的数据一旦发生故障丢失,对于企业来说将是不可估量的损失.那么服务器数据一旦丢失就除了 ...

  2. Cannot install ubuntu or other linux flavours on citrix Xen server

    Citrix Xen sucks! When u try to install linux stuff on its Xen servers, u will get an error complain ...

  3. Citrix Xen Desktop安装配置

    Citrix虚拟化的东西其实和我现在做的东西完全没有关系的.反正接到通知要搭一个Citrix Xen Desktop那就做. 先放几个教程: :跟着图片通过XenDesktop7发布Win8桌面 这个 ...

  4. vmware安装ubuntu12.04嵌套安装xen server(实现嵌套虚拟化)

    环境准备 软件:vmware workstation 9.0    ubuntu-12.04.2-server-amd64(官方下载) 硬件:确认CPU支持虚拟化VM-T vmware设置 vmwar ...

  5. 连接到 Azure 上的 SQL Server 虚拟机(经典部署)

    概述 本主题介绍如何连接到运行于 Azure 虚拟机的 SQL Server 实例. 它介绍了一些常规连接方案,并提供了在 Azure VM 中配置 SQL Server 连接的详细步骤. Impor ...

  6. Windows Server 2008中关闭事件跟踪程序的方法

    Windows Server 2008跟Windows Server 2003一样,在关机的时候会弹出一个“关闭事件跟踪程序”窗口,当然微软这么做是处于安全的考虑啦,但是如果我们只是个人用用的话,那就 ...

  7. Citrix Presentation server can not contact the license server

    If you come across the above error,  you may also come across one or more of the errors below within ...

  8. SQL Server 虚拟化(2)——理想的SQL Server虚拟机架构

    本文属于SQL Server虚拟化系列 搭建SQL Server虚拟机,在各个组织之间都有自己的标准和最佳实践.从第一眼看去,光物理配置就有过百种,所有的这些细微差别都有可能为后续日常管理过程中故障侦 ...

  9. xen 配置vm 跟随xen server一起启动

    查看Xen Server 信息 (1)查看pool信息 [root@xenserver-243 ~]# xe pool-list uuid ( RO) : e29037aa-0dca-f95a-193 ...

随机推荐

  1. Thinkpad SL400安装黑苹果10.8.4全纪录

    提要 还在为学习苹果开发的装备发愁么 ,也许这篇文章会给你带来一些启发. 关于黑苹果:从苹果采用intel的处理器之后,mac os被黑客破解之后可以安装在PC上,从而出现了一大批未购买苹果机而使用苹 ...

  2. TransactionScope 对该事务的状态无效 和一些注意事项

    使用TransactionScope 的时候要操作同一种数据库操作方式,不能一个方法用ado.net ,另外一个方法用EF,那样会报 "该事务管理器已经禁止了它对远程/网络事务的支持&quo ...

  3. android 无线模式下使用ADB调试

    改动系统system权限 1. cp sud /system/xbin/sud chmod 755 /system/xbin/sud // note: su chmod 成755 2. cp su / ...

  4. 【邮件】imap与pop3的区别

    文:铁乐猫 2015 10月14日 今天替一位在外出差的用户安装和设置完foxmail用于收发邮件,到下午被告知对方用foxmail发完邮件后,在网页上登录邮箱后并没有看到在foxmail中" ...

  5. JUnit4注解基本介绍

    @After If you allocate external resources in a Before method you need to release them after the test ...

  6. loadrunner简单的例子(demo)

    刚刚做了一个loadrunner进行负载测试,把步骤截图给大伙看看.一共三个步骤 一创建/编辑脚本 二运行负载测试 三分析测试结果 首先是第一步的流程:第一步创建/编辑脚本 图一 图二 图三 图四 图 ...

  7. java内存分块

     运行时数据区域 Java虚拟机在执行Java的过程中会把管理的内存划分为若干个不同的数据区域.这些区域有各自的用途,以及创建和销毁的时间,有的区域随着虚拟机进程的启动而存在,而有的区域则依赖线程的启 ...

  8. uploadify上传控件使用

    uploadify是JQuery的一个上传插件,实现的效果非常不错,并且带进度显示,我将给大家演示如何使用uploadify进行图片上传, 1.点我下载http://www.uploadify.com ...

  9. T-SQL基础 (子查询,连接查询,交叉查询,事务|| 笔记0807)

    一: A.子查询: 1.select 字段名 from table where 字段名=(select 字段名 from table 条件)  //只能做1个匹配 2.select 字段名 from ...

  10. 多个线程访问url

    多个线程访问url package com.aig.ecompassios.ecard; import java.io.BufferedReader; import java.io.InputStre ...