<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>:::虚拟时代::: &#187; 虚拟机</title>
	<atom:link href="http://blog.microhyper.com/archives/tag/%e8%99%9a%e6%8b%9f%e6%9c%ba/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.microhyper.com</link>
	<description>最新虚拟技术资讯</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:06:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何强行关闭VMware虚拟机？</title>
		<link>http://blog.microhyper.com/archives/773</link>
		<comments>http://blog.microhyper.com/archives/773#comments</comments>
		<pubDate>Fri, 17 Apr 2009 16:04:17 +0000</pubDate>
		<dc:creator>ericz</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[强行关闭]]></category>
		<category><![CDATA[虚拟机]]></category>

		<guid isPermaLink="false">http://blog.microhyper.com/?p=773</guid>
		<description><![CDATA[<p>当VM在关机过程中长时间没有响应后，你可以在命令行版本的vCenter中执行“shutdown vm”。首先列出所有在该主机上运行的的虚拟机，复制并粘贴到命令“vmware-cmd  stop trysoft”（它将尝试操作系统正常关机，若实在不行才执行断电操作）。在某些情况下，该命令可能并不能如你所愿。在这种情况下可以尝试使用vm-support来kill该虚拟机，或vmware-vim-cmd：“vmsvc/getallvms”列出所有VM和[...]]]></description>
			<content:encoded><![CDATA[<p>当VM在关机过程中长时间没有响应后，你可以在命令行版本的vCenter中执行“shutdown vm”。首先列出所有在该主机上运行的的虚拟机，复制并粘贴<config>到命令“vmware-cmd <config> stop trysoft”（它将尝试操作系统正常关机，若实在不行才执行断电操作）。在某些情况下，该命令可能并不能如你所愿。在这种情况下可以尝试使用vm-support来kill该虚拟机，或vmware-vim-cmd：“vmsvc/getallvms”列出所有VM和其id，“vmsvc/poweroff”指定关闭任何虚拟机，当然你也可以使用传统的Linux/Unix方法，用过“ps -auxwww”找到该虚拟机的进程ID然后kill它。</p>
<p>所以可用的方法如下：</p>
<ol>
<li>vmware-cmd -l</li>
<p>vmware-cmd <config> stop trysoft</p>
<li>vm-support -x</li>
<p>vm-support -X <vmid></p>
<li>vmware-vim-cmd vmsvc/getallvms</li>
<p>vmware-vim-cmd vmsvc/poweroff <虚拟机id></p>
<li>ps -auxwww | grep <虚拟机名></li>
<p>kill <进程ID> 或 kill -9 <进程ID>
</ol>
<p>当然也可以参考这里的知识库文章，<a href="http://kb.vmware.com/kb/1004340">http://kb.vmware.com/kb/1004340</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.microhyper.com/archives/773/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

