我必须通过SSH访问ESXi服务器。 我无法使用vCenter或Web界面
Vmware提供了一篇文章:
kb.vmware.com – 确定虚拟机是否configuration为自动启动(1000163)
但本文的内容似乎与我的ESXi服务器根本不相关。 有问题的文件是在那里,但并不是所有的行都显示为文件说明它应该。
VMware说明:
Log in as root to your ESX host with SSH. Open the /etc/vmware/hostd/vmAutoStart.xml file in text editor. Search the file for the entry: <enabled>true</enabled> Note: If you find this entry, the autostart functionality is enabled. If you do not find this entry, the functionality is disabled. To disable autostart for all virtual machines on the host, edit this entry to: <enabled>false</enabled> If you want to enable the functionality add the entry immediately after the line ending with: </dynamicProperty>
我的文档包含以下内容:
<ConfigRoot> <AutoStartOrder> <_length>0</_length> <_type>vim.host.AutoStartManager.AutoPowerInfo[]</_type> </AutoStartOrder> <SystemDefaults> <_type>vim.host.AutoStartManager.SystemDefaults</_type> <startDelay>120</startDelay> <stopAction>PowerOff</stopAction> <stopDelay>120</stopDelay> <waitForHeartbeat>false</waitForHeartbeat> </SystemDefaults> </ConfigRoot>
“DynamicPropery”不是我文件中的一部分。 看起来有一些语法需要将ESXi服务器上的虚拟机/ guest虚拟机置于自动启动列表中,但是我一直无法find它。 知道的人请提供指导。
您应该使用vim-cmd命令(及其命名空间hostsvc / autostartmanager)来configuration虚拟机自动启动,而不是修改configuration文件。 跑
vim-cmd help hostsvc/autostartmanager
得到帮助。 有关示例的完整概述如下: http : //msmhec.pl/vmw/Documents/VIM-CMD.pdf (提及ESXi 4.1,但仍适用于最新的ESXi版本)