AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 788350
Accepted
parsecpython
parsecpython
Asked: 2016-07-07 13:04:22 +0800 CST2016-07-07 13:04:22 +0800 CST 2016-07-07 13:04:22 +0800 CST

如何让 ESXi 5.5 仅从 ssh/CLI 自动启动虚拟机?

  • 772

我对 ESXi 服务器的唯一访问是通过 SSH。我无法使用 vCenter 或 Web 界面

vmware提供了一篇文章:
kb.vmware.com -- Determining virtual machines are configured to autostart (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 服务器中的虚拟机/来宾放置在自动启动列表中,但我一直无法找到它。有知道的请指点一下。

command-line-interface vmware-esxi
  • 1 1 个回答
  • 9075 Views

1 个回答

  • Voted
  1. Best Answer
    VFrontDe
    2016-07-07T22:17:02+08:002016-07-07T22:17:02+08:00

    与其修改配置文件,不如使用 vim-cmd 命令(及其命名空间 hostsvc/autostartmanager)来配置 VM 自动启动。跑

    vim-cmd help hostsvc/autostartmanager
    

    寻求帮助。这里有一个很好的示例概述:http: //msmhec.pl/vmw/Documents/VIM-CMD.pdf(提到 ESXi 4.1,但仍然适用于最近的 ESXi 版本)

    • 4

相关问题

  • 不会将整个 XML 文件读入内存的命令行 XML 验证器?

  • 在命令行上从 csv 文件中过滤带有空格字符的字段

  • 如何通过 SVN 命令行接受 SSL 证书?

  • 如何在 Linux 中删除名称中带有选项字符的文件?

  • 使用命令行工具按排序顺序计算重复项

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve