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 ...
随机推荐
- linux下lighttpdserver的具体安装步骤 以及对flv流媒体的支持配置
准备条件: a,创建/usr/local/lighttpd文件夹,用于安装lighttpd b,创建lighttpd用户password为lighttpd账号,用于lighttpd的启动用户 c,安装 ...
- How To Install Kernel 3.10 On Ubuntu, Linux Mint, Debian and Derivates
n this article I will show you how to install Linux Kernel 3.10 on Ubuntu 13.10 Saucy Salamander, Ub ...
- 玩转Android之Picasso使用详详详详详详解,从入门到源码剖析!!!!
Picasso是Squareup公司出的一款图片加载框架,能够解决我们在Android开发中加载图片时遇到的诸多问题,比如OOM,图片错位等,问题主要集中在加载图片列表时,因为单张图片加载谁都会写.如 ...
- Java基础知识强化之IO流笔记44:IO流练习之 复制图片的 4 种方式案例
1. 复制图片的 4 种方式案例: 分析: 复制数据,如果我们知道用记事本打开并能够读懂,就用字符流,否则用字节流. 通过该原理,我们知道我们应该采用字节流. 而字节流有4种方式,所以做这个题目我们有 ...
- Ubuntu16.04/windows7修改本地hosts文件
1. 从github上下载最新的hosts文件:https://serve.netsh.org/pub/ipv4-hosts/ ubuntu16.04: 第二步:Ctrl+Alt+T 打开ubuntu ...
- 使用Spring Boot快速构建应用
http://www.infoq.com/cn/news/2014/01/spring-boot/ 随着Spring 4新版本的发布,Spring Boot这个新的子项目得到了广泛的关注,因为不管是S ...
- hibernate缓存技术
1.缓存 2.Hibernate 缓存作用:为了提高查询效率. 3.第一次操作某个对象的时候,把操作的对象数据存储到缓存中,然后下一次在对同一个对象操作的时候,就不会在连接数据库. 4.Hiberna ...
- jquery登录验证插件
最近写了个登录验证的jquery插件,其中功能还不是很完善,需要进一步改进,先放出来看看先. /** * 功能描述:本模块实现普通网站登录验证,以后可以添加二维码验证,以及第三方帐号登录验证 * 关联 ...
- C#垃圾回收机制详解
一.托管代码/非托管代码 C#代码通过C#编译器编译成程序集,程序集由微软中间语言组成,CLR会为程序集开辟一个应用程序域,程序集就是运行在这个应用程序域里面的,应用程序域是相互独立的,互不影响. 托 ...
- nyoj914Yougth的最大化(二分搜索 + 贪心)
Yougth的最大化 时间限制:1000 ms | 内存限制:65535 KB 难度:4 描述 Yougth现在有n个物品的重量和价值分别是Wi和Vi,你能帮他从中选出k个物品使得单位重量的价值最大吗 ...