启动 VMware VirtualCenter Server 服务失败并出现错误:Windows 无法在本地计算机上启动 VMware VirtualCenter Server (Windows could not start the VMware VirtualCenter Server on Local Computer)
search cancel

启动 VMware VirtualCenter Server 服务失败并出现错误:Windows 无法在本地计算机上启动 VMware VirtualCenter Server (Windows could not start the VMware VirtualCenter Server on Local Computer)

book

Article ID: 308820

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
免责声明:本文为 Starting the VMware VirtualCenter Server service fails with the error: Windows could not start the VMware VirtualCenter Server on Local Computer (1038138) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。


  • 无法启动 VMware VirtualCenter Server 服务。
  • 以导航到计算机管理 > 服务和应用程序 > 服务 > VMware VirtualCenter Server 的方式手动启动 VMware VirtualCenter Server 服务失败。
  • 显示错误:

    Windows 无法在本地计算机上启动 VMware VirtualCenter Server。有关详细信息,请查看系统事件日志。如果这是非 Microsoft 服务,请与服务供应商联系,并参考特定于服务的错误代码 2 (Windows could not start the VMware VirtualCenter Server on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 2)。

  • 在 vCenter Server 的 vpxd.log 文件中,可以看到错误:

    Database error: "ODBC error: (42000) - [Microsoft][SQL Server Native Client 10.0][SQL Server]The transaction log for database 'VMDB' is full.To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases" is returned when executing SQL statement "delete from VPX_VMFS_EXTENT with (rowlock) where ID = 177"

  • 重新安装 vCenter Server 不能解决该问题。


Environment

VMware vCenter Server 4.0.x
VMware vCenter Server 5.0.x
VMware vCenter Server 4.1.x

Resolution

当 vCenter Server 数据库的事务日志 (.ldf ) 大小超出最大限制时会出现此问题。

要解决此问题,将恢复模式改为简单,并缩减事务日志的大小。有关对 Microsoft SQL 数据库服务器中的事务日志问题进行故障排除的步骤,请参见 Troubleshooting transaction logs on a Microsoft SQL database server (1003980)
如果 SQL 数据库服务器上用于连接 vCenter Server 数据库的帐户的密码已过期,也可能出现该问题。
要解决该问题,确保帐户密码有效。有关详细信息,请参见 VirtualCenter Server service fails to start with the error: The password for user account ' <USERNAME></USERNAME>' has expired (1012498)

对于在嵌入的 SQL Server Express 上有数据库的 vCenter Server 安装,如果达到事务日志大小,可能出现该问题。

要解决该问题,验证 SQL Server 实例的名称并更改事务日志的大小。

要验证 SQL Server 实例的名称并更改事务日志大小,请执行以下操作:
  1. 验证用于 vCenter Server 的 SQL Server 实例的实际名称。
    1. 从“控制面板”>“管理工具”>“数据源 (ODBC)”启动 ODBC 数据源管理器。
    2. 在“系统 DSN”选项卡中选择 VMware VirtualCenter DSN,然后单击“配置”以查看详细信息。
    3. 服务器名称显示在“服务器”编辑框中。
  2. 使用 SQL Server 命令行工具更改事务日志大小限制。
    1. 启动命令提示。
    2. 运行命令 osql -S <server name from ODBC DSN> -E
    3. 运行下一个 SQL:
      1. go
      2. ALTER DATABASE [VIM_VCDB]
      3. MODIFY FILE ( NAME = N'VIM_VCDB_LOG', MAXSIZE = UNLIMITED )
      4. go
    4. 键入 exit 退出命令工具。


Additional Information

Starting the VMware VirtualCenter Server service fails with the error: Windows could not start the VMware VirtualCenter Server on Local Computer