citrix xen server 虚拟机无法关闭的问题
悲剧的一台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 虚拟机无法关闭的问题的更多相关文章
- Xen Server虚拟机数据恢复的方法和数据恢复过程
在服务器运行过程中如果出现意外情况突然断电很容易引起服务器故障,服务器中的硬件设备损坏可以修复或者购买,但是服务器中的数据一旦发生故障丢失,对于企业来说将是不可估量的损失.那么服务器数据一旦丢失就除了 ...
- 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 ...
- Citrix Xen Desktop安装配置
Citrix虚拟化的东西其实和我现在做的东西完全没有关系的.反正接到通知要搭一个Citrix Xen Desktop那就做. 先放几个教程: :跟着图片通过XenDesktop7发布Win8桌面 这个 ...
- vmware安装ubuntu12.04嵌套安装xen server(实现嵌套虚拟化)
环境准备 软件:vmware workstation 9.0 ubuntu-12.04.2-server-amd64(官方下载) 硬件:确认CPU支持虚拟化VM-T vmware设置 vmwar ...
- 连接到 Azure 上的 SQL Server 虚拟机(经典部署)
概述 本主题介绍如何连接到运行于 Azure 虚拟机的 SQL Server 实例. 它介绍了一些常规连接方案,并提供了在 Azure VM 中配置 SQL Server 连接的详细步骤. Impor ...
- Windows Server 2008中关闭事件跟踪程序的方法
Windows Server 2008跟Windows Server 2003一样,在关机的时候会弹出一个“关闭事件跟踪程序”窗口,当然微软这么做是处于安全的考虑啦,但是如果我们只是个人用用的话,那就 ...
- 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 ...
- SQL Server 虚拟化(2)——理想的SQL Server虚拟机架构
本文属于SQL Server虚拟化系列 搭建SQL Server虚拟机,在各个组织之间都有自己的标准和最佳实践.从第一眼看去,光物理配置就有过百种,所有的这些细微差别都有可能为后续日常管理过程中故障侦 ...
- xen 配置vm 跟随xen server一起启动
查看Xen Server 信息 (1)查看pool信息 [root@xenserver-243 ~]# xe pool-list uuid ( RO) : e29037aa-0dca-f95a-193 ...
随机推荐
- ASM集群文件系统ACFS(ASM Cluster File System)
在11g R2中ASM文件支持包括数据文件,控制文件,归档日志文件,spfile,RMAN备份文件,Change Tracking文件,数据泵Dump文件盒OCR文件等.而推出的ACFS和Oracle ...
- QT显示输出及其桌面
/* 应用程序桌面 */ QDesktopWidget* desktop = QApplication::desktop(); /* 指定显示器的屏幕尺寸(1024 * 768) */ QRect ...
- 适用于cocos2dx的编辑器:Texture,Tilemap,Particle,Action,Level etc
原文:http://www.cocos2d-x.org/wiki/Editors_for_cocos2d-x_TextureTilemapParticleActionLevel_etc Action ...
- 【转】Cocos2d-x 2.0 拖尾效果深入分析
Cocos2d-x 2.0 拖尾效果深入分析 另:本章所用Cocos2d-x版本为: cocos2d-2.0-x-2.0.2@ Aug 30 2012 http://cn.cocos2d-x.org/ ...
- leecode 每日解题思路 127-Factorial Trailing Zeroes
原题描述: 原题地址: Factorial Trailing Zeroes 题目描述很直接, 给出一个整数N, 求这个N的阶乘后尾有几个零.(要求O(logN)时间复杂度) 个人思路: 一开始,最简单 ...
- Java并发——同步容器与并发容器
同步容器类 早期版本的JDK提供的同步容器类为Vector和Hashtable,JDK1.2 提供了Collections.synchronizedXxx等工程方法,将普通的容器继续包装.对每个共有方 ...
- Oracle删除多张表
项目中遇到要删除多张表,发现不能同时删除,可以先查询出SQL语句,然后批量执行 1.查询出SQL语句: select 'drop table '||table_name || ';' from use ...
- 处理 eclipse 导入报错 Invalid project description,问题
有时候在添加工程时,会出现如图所示的错误信息, ,提示显示将要添加的工程已经存在,但是在工作空间里却找不到,这个时候,要做就是, 在导入的时候选择General->Existing Projec ...
- ASP.NET问题处理---targetFramwork=‘4.0’错误
问题原因分析:系统没有下载 .NET framwork 4.0 版本的框架或者有下载但没使用. 解决办法: 打开iis上发布的“应用程序池”,并右键我们所发布的网站: 选择“添加应用程序池”: 最后选 ...
- javascript调用oc的方法
1.引入#import <JavaScriptCore/JavaScriptCore.h> 2.JSContext *jsContext = [self.webView valueForK ...