如何停止虚拟机服务器,如何杀死一个不会死的VMware虚拟机?

看到VMware的网页

以下的ESXi主机上关闭受虚拟机(1014165) 症状

您遇到这些问题:

You cannot power off an ESXi hosted virtual machine.

A virtual machine is not responsive and cannot be stopped or killed.

“使用的ESXi 5.x esxcli命令虚拟机

esxcli命令可以本地或远程地用于在ESXi 5运行的虚拟机关闭电源关闭电源。 X。有关更多信息,请参见“vSphere命令行界面参考”中的“esxcli vm命令”部分。

Open a console session where the esxcli tool is available, either in the ESXi Shell, the vSphere Management Assistant (vMA), or the location where the vSphere Command-Line Interface (vCLI) is installed.

Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:

esxcli vm process list

Power off one of the virtual machines from the list using this command:

esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber

Notes:

Three power-off methods are available. Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.

Alternate power off command syntax is: esxcli vm process kill -t [soft,hard,force] -w WorldNumber

Repeat Step 2 and validate that the virtual machine is no longer running.

对于ESXi 4.1:

Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:

esxcli vms vm list

Power off one of the virtual machines from the list using this command:

esxcli vms vm kill --type=[soft,hard,force] --world-id=WorldNumber"

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 VMware 虚拟上搭建服务器,您可以按照以下步骤进行操作: 1. 首先,安装 VMware 虚拟软件并创建一个新的虚拟。 - 下载并安装 VMware 虚拟软件(例如 VMware Workstation 或 VMware Player)。 - 启动 VMware 软件,点击 "新建虚拟"。 - 根据您的需求选择适当的操作系统类型和版本,并为虚拟选择合适的配置。 2. 安装操作系统: - 如果您已经有操作系统的安装光盘或镜像文件,可以选择从光盘或 ISO 文件安装操作系统。 - 如果您没有操作系统镜像文件,您可以下载相应的操作系统镜像文件,并将其作为虚拟的安装介质。 3. 配置网络: - 您可以选择虚拟使用桥接模式、NAT 模式或仅主模式进行网络连接。 - 桥接模式允许虚拟直接连接到物理网络。 - NAT 模式将虚拟与主之间建立一个私有网络,并通过主进行网络访问。 - 仅主模式只允许虚拟与主进行通信,不与物理网络连接。 4. 安装服务器软件: - 一旦操作系统安装完成,您可以根据自己的需求安装适当的服务器软件,例如 Apache、Nginx 或 Microsoft IIS 等。 5. 配置服务器: - 根据您选择的服务器软件,您可能需要进行一些配置,例如设置网站根目录、端口号、防火墙规则等。 6. 测试服务器: - 启动虚拟并确保服务器软件正常运行。 - 在主或其他计算上使用浏览器或其他工具,尝试访问虚拟的 IP 地址或域名,以验证服务器是否能够提供所需的服务。 希望这些步骤能帮助您在 VMware 虚拟上成功搭建服务器。如有任何问题,请随时提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值