VERKOOP: 1-800-867-1389
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

How to create a base virtual machine on-premises using Hyper-V

Updated: February 28, 2014

There are several tools exist to create a virtual machine VHD file. This topic demonstrates how to use Hyper-V Manager to create a VHD file that you can upload to Azure. For more information, see Hyper-V.

Install the Hyper-V role on your server

  1. When using Windows Server 2008 R2 on-premises server, click Start, point to Administrative Tools, and then click Server Manager. In the Roles Summary area, click Add Roles. On the Select Server Roles page, click Hyper-V. On the Create Virtual Networks page, click one or more network adapters if you want to make their network connection available to virtual machines. On the Confirm Installation Selections page, click Install. The computer must be restarted to complete the installation. Click Close to finish the wizard, and then click Yes to restart the computer. After you restart the computer, log on with the same account you used to install the role. When the installation is complete, click Close to finish the wizard. You can now see the Hyper-V role installed on the server. For more information, see Install Windows Server 2008 Server Roles with Server Manager.

  2. When using Windows Server 2012, follow the steps described at Install or Uninstall Roles, Role Services, or Features in Windows Server 2012 topic.

Create a virtual machine using Hyper-V

  1. When using Windows Server 2008 R2, follow the steps provided at Create Virtual Machines in Windows Server 2008 R2. The following steps are added as an example:

    • On your on-premises server that is running Windows Server 2008 R2, click Start, point to All Programs, then Administrative Tools. Click Hyper-V Manager console.

    • Right-click on the machine name under the Hyper- manager hierarchy tree.

    • Choose New and then click Virtual Machine…

    • In the New Virtual Machine Wizard, first click Next. Then, choose a name and location for this virtual machine. Click Next.

    • Type the memory value, such as 7 GB (7168 MB). Click Next.

    • In the Configure Networking window, select New Virtual Network. Click Next.

    • In the Connect Virtual Hard Disk window, make sure that Name and Location fields are populated as you specified. Keep the default virtual hard disk size, 127 GB. Click Next.

    • In the Installation Options window, select Install an operating system from a network-based installation server option. Click Finish.

    • In the Hyper-V Manager – Virtual Machines console, double-click the virtual machine that you created. Click Action. Then, click Start button in the Virtual Machine Connection window. Press F12 to install the operating system from network, such as Windows Server 2012 (x64). Complete the installation by following the wizard steps in the virtual machine.

  2. When using Windows Server 2012, follow the steps described at Install the Hyper-V Role and Configure a Virtual Machine.

  3. Connect to the virtual machine and install the operating system from your network.

  4. Before uploading any virtual machine VHD file to Azure, make sure that the remote desktop is enabled. Because Windows Firewall restricts communication between your computer and the Internet, you might need to change settings for Remote Desktop Connection so that it can work properly. When using Windows Server 2008 R2, open Windows Firewall by clicking the Start button, and then clicking Control Panel. When using Windows Server 2012, on the Start screen, type Control Panel, and click Control Panel. In the Control Panel window, in the search box, type firewall, and then click Windows Firewall. In the left pane, click Allow a program or feature through Windows Firewall. Click Change settings. If you're prompted for an administrator password or confirmation, type the password or provide confirmation. Under Allowed programs and features, select the check box next to Remote Desktop, and then use the check boxes in the columns to select the network location types Private and Public to allow communication on. Click OK. You can find detailed information on how to enable remote desktop connection, see Enable Remote Desktop. In addition, remove the virtual machine from your on-premises network if it is connected already. For more information, see Remove a computer from a Windows domain.

    Important: The newer VHDX format is not supported in Windows Azure. You should convert any VHDX file to VHD format using the Hyper-V Manager or the Convert-VHD cmdlet before uploading to Azure.

Vindt u dit nuttig?
(1500 tekens resterend)
Bedankt voor uw feedback

Community-inhoud

Toevoegen
Weergeven:
© 2014 Microsoft