par*_*hon 6 command-line-interface vmware-esxi
我对 ESXi 服务器的唯一访问权限是通过 SSH。我无法使用 vCenter 或 Web 界面
vmware 提供了一篇文章:
kb.vmware.com——确定虚拟机是否配置为自动启动(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>
Run Code Online (Sandbox Code Playgroud)
我的文档包含以下内容:
<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>
Run Code Online (Sandbox Code Playgroud)
'DynamicPropery' 不是我的文件中的一个部分。似乎需要一些语法才能将此 ESXi 服务器中的虚拟机/来宾放入自动启动列表,但我一直找不到它。有知情者请指教。
小智 4
您应该使用 vim-cmd 命令(及其命名空间hostsvc/autostartmanager)来配置虚拟机自动启动,而不是修改配置文件。跑步
vim-cmd help hostsvc/autostartmanager
Run Code Online (Sandbox Code Playgroud)
寻求帮助。这里有一个很好的概述和示例: http: //msmhec.pl/vmw/Documents/VIM-CMD.pdf(提到 ESXi 4.1,但仍然适用于最新的 ESXi 版本)
归档时间: |
|
查看次数: |
8415 次 |
最近记录: |