使用 Hyper-V 创建虚拟机Create a Virtual Machine with Hyper-V

创建虚拟机并为其安装操作系统。Create a virtual machine and install its operating system.

我们一直在构建用于创建虚拟机的新工具,因此在过去的三个版本中,说明发生了明显变化。We've been building new tools for creating virtual machines so the instructions have changed significantly over the past three releases.

选择你的操作系统以获取合适的一组说明:Pick your operating system for the right set of instructions:

让我们开始吧。Let's get started.

Windows 10 Fall Creators Update(Windows 10 版本 1709)Windows 10 Fall Creators Update (Windows 10 version 1709)

在 Fall Creators Update 中,“快速创建”进行了扩展,以包括可以独立从 Hyper-V 管理器中启动的虚拟机库。In Fall Creators Update, Quick Create expanded to include a virtual machine gallery that can be launched independently from Hyper-V Manager.

若要在 Fall Creators Update 中创建新虚拟机,请执行以下操作:To create a new virtual machine in Fall Creators Update:

  1. 从“开始”菜单中打开“Hyper-V Quick Create”。Open Hyper-V Quick Create from the start menu.

    Windows“开始”菜单中的“快速创建”库

  2. 选择一个操作系统或者使用本地安装源选择你自己的操作系统。Select an operating system or choose your own by using a local installation source.

    库视图

    1. 如果你想要使用自己的映像创建虚拟机,请选择“Local Installation Source”(本地安装源) 。If you want to use your own image to create the virtual machine, select Local Installation Source.
    2. 选择“Change Installation Source”(更改安装源) 。Select Change Installation Source. 用于使用本地安装源的按钮Button to use a local installation source
    3. 选择要转变为新虚拟机的 .iso 或 .vhdx。Pick the .iso or .vhdx that you want to turn into a new virtual machine.
    4. 如果映像为 Linux 映像,请取消选择“安全启动”选项。If the image is a Linux image, deselect the Secure Boot option. 用于使用本地安装源的按钮Button to use a local installation source
  3. 选择“创建虚拟机”Select "Create Virtual Machine"

就这么简单!That's it! “快速创建”将完成其余的工作。Quick Create will take care of the rest.

Windows 10 Creators Update(Windows 10 版本 1703)Windows 10 Creators Update (Windows 10 version 1703)

“快速创建”UI 的屏幕截图

  1. 从“开始”菜单打开 Hyper-V 管理器。Open Hyper-V Manager from the start menu.

  2. 在 Hyper-V 管理器内右侧的操作菜单中查找快速创建In Hyper-V Manager, Find Quick Create in the right hand Actions menu.

  3. 自定义你的虚拟机。Customize your virtual machine.

    • (可选)为虚拟机命名。(optional) Give the virtual machine a name.
    • 选择虚拟机的安装媒体。Select the installation media for the virtual machine. 你可以从 .iso 或 .vhdx 文件中安装。You can install from a .iso or .vhdx file. 如果要在虚拟机中安装 Windows,你可以启用 Windows 安全启动。If you are installing Windows in the virtual machine, you can enable Windows Secure Boot. 否则,请不要选中。Otherwise leave it unselected.
    • 设置网络。Set up network. 如果你有现成的虚拟交换机,则可以在网络下拉列表中进行选择。If you have an existing virtual switch, you can select in the network dropdown. 如果你没有现成的交换机,你将看到一个用于设置自动网络的按钮,该按钮可以自动配置虚拟网络。If you have no existing switch, you will see a button to set up an automatic network, which will automatically configure a virtual network.
  4. 单击“连接” 以启动虚拟机。Click Connect to start your virtual machine. 无需担心编辑设置,你可以随时返回去更改设置。Don't worry about editing the settings, you can go back and change them any time.

    系统可能会提示你“按任意键以从 CD 或 DVD 启动”。You may be prompted to ‘Press any key to boot from CD or DVD’. 按照提示继续操作。Go ahead and do so. 据了解,你将从 CD 安装。As far as it knows, you're installing from a CD.

恭喜,你有了新的虚拟机。Congratulations, you have a new virtual machine. 现在,你可以安装操作系统了。Now you're ready to install the operating system.

你的虚拟机应如下所示:Your virtual machine should look something like this:

虚拟机启动屏幕

注意: 除非你运行的是批量许可版本的 Windows,否则需要为虚拟机内运行的 Windows 提供单独的许可证。Note: Unless you're running a volume-licensed version of Windows, you need a separate license for Windows running inside a virtual machine. 虚拟机的操作系统独立于主机操作系统。The virtual machine's operating system is independent of the host operating system.

Windows 10 Creators Update 之前的版本(Windows 10 版本 1607 及更早版本)Before Windows 10 Creators Update (Windows 10 version 1607 and earlier)

如果运行的不是 Windows 10 创意者更新或更高版本,请按照以下说明进行操作并改用新的虚拟机向导:If you aren't running Windows 10 Creators Update or later, follow these instructions using New Virtual Machine Wizard instead:

  1. 创建虚拟网络Create a virtual network
  2. 创建新的虚拟机Create a new virtual machine