跳转至

Enable Auto Start for Local Virtual Machine on Windows Host

您可以使用VMware Workstation Pro中的自动启动功能,在Windows主机启动时自动电源开启本地虚拟机。首先,确保您安装了VMware Workstation Pro 17.0或更高版本。此功能需要配置名为VMware Autostart Service的Windows服务为自动启动。您还可以在VMware Workstation Pro用户界面中选择要自动启动的虚拟机。配置完成后,虚拟机将根据设定的启动顺序自动启动。请注意,无法为加密的虚拟机配置自动启动。

  • 确保安装VMware Workstation Pro 17.0或更高版本。
  • 配置VMware Autostart Service为自动启动。
  • 需要特定用户权限:
  • 写入vmAutoStart.xml文件的权限
  • 拥有vmAutoStart.xml中指定的VMX文件的所有权
  • 通过VMware Workstation Pro用户界面配置自动启动虚拟机。
  • 启动顺序可以设置,值相同的虚拟机按顺序启动,但顺序未定义。
  • 无法为加密虚拟机配置自动启动。

Enable Auto Start for Local Virtual Machine on Windows Host

Last Updated January 8, 2025

You can use the Auto Start feature available in VMware Workstation Pro to automatically power on the local virtual machines when the Windows host machine boots up.

  • Ensure that you have installed VMware Workstation Pro 17.0 or later.

VMware Workstation Pro installs a new Windows service named

VMware Autostart Service

for the Auto Start feature. You must configure this service to start automatically if you want to use the feature.

You can choose the virtual machines for Auto Start from the Workstation UI.

  • To configure

VMware Autostart Service

to

Automatic

start type, perform the following steps:

  • Click

Start

>

Run

. - Type

services.msc

, and then press

Enter

. - From the service list, right click

VMware Autostart Service

, and then click

Properties

. - On the

General

tab of the

VMware Autostart Service Properties

dialog box, select the

Startup type

as

Automatic

, and then click

OK

.

You can configure the user account with which you want to run the

VMware Autostart Service

. To change the login information, on the

Log On

tab of the

VMware Autostart Service Properties

dialog box, select

This account

, and specify the required credentials. By default, the service is configured to run with

LocalSystem

account, so changing the account information is recommended.

The user you specify must have the following rights:

  • Write access to the

vmAutoStart.xml

file located in

%ALLUSERSPROFILE%\VMware\VMware Workstation\vmAutoStart.xml

. - Ownership to the

VMX

files specified in the

vmAutoStart.xml

file. - Launch VMware Workstation Pro. - On the VMware Workstation Pro user interface, right-click

My Computer

, and then select

Configure Auto Start VMs

. - On the

Configure VM Power Actions

dialog box, select the

Auto Start

check boxes and modify the

Start Order

fields for the virtual machines you want to autostart.

The virtual machines are started in the sequence as per the

Start Order

.

Same value of the

Start Order

for more than one VM still starts the VMs sequentially but the power-on sequence for those VMs is undefined. - Click

OK

.

You cannot configure Auto Start for an encrypted VM.