本文档详细介绍了您可以对 Windows 虚拟机 (VM) 执行的操作。Windows 虚拟机需要使用统一可扩展固件接口 (UEFI) 固件才能启动。如需在创建虚拟机时配置 UEFI,请参阅创建 Windows 实例。如需详细了解 Google Distributed Cloud (GDC) 气隙环境中的 Windows 支持,请参阅 GDC 支持的 Windows 操作系统。
创建 Windows 实例
如需创建 Windows 虚拟机实例,请完成以下步骤:
通过导入 Windows 安装光盘创建自定义映像。如需查看相关说明,请参阅导入虚拟磁盘。
为虚拟机启用 UEFI 固件。Windows 虚拟机需要使用 UEFI。如果您使用 API 创建虚拟机,请在
VirtualMachine清单中将bootType设置为uefi。使用不受支持的启动类型会导致实例无法启动:apiVersion: virtualmachine.gdc.goog/v1 kind: VirtualMachine metadata: name: VM_NAME spec: # ... shieldConfig: bootType: uefi将
VM_NAME替换为虚拟机名称。
管理 Windows 虚拟机
您还可以使用 VirtualMachinePasswordResetRequest 自定义资源在 Windows 实例上管理用户账号和重置密码。配置凭据后,您可以使用远程桌面客户端连接到 Windows 实例。
如需详细了解如何配置凭据和连接到 Windows 虚拟机,请参阅连接到 Windows 虚拟机。