Creating a Windows VM

Create a Windows virtual machine using Compute Cloud from the Yandex.Cloud management console and connect to it.

Before you start

  1. Log in to or register in the management console. If you aren't registered, go to the management console and follow the instructions.
  2. On the billing page, make sure you linked a payment account, and it has the ACTIVE or TRIAL_ACTIVE status. If you don't have a billing account, create one.
  3. If you don't have a folder, create one.

Creating VMs

To create a VM:

  1. In the management console, select a folder to create a VM in.

  2. In the list of services, select Compute Cloud.

  3. Click Create VM.

  4. In the Basic parameters section:

    • Enter a name and description of the VM. Naming requirements:

      The name must be unique within the folder. The name may contain lowercase Latin letters, numbers, and hyphens. The first character must be a letter. The last character can't be a hyphen. The maximum length of the name is 63 characters.

      Note

      The VM name is used one time only when creating a VM, to generate the FQDN. If the FQDN is important to you, choose an appropriate name for the virtual machine at the creation stage. For more information about generating the FQDN, see Hostname and FQDN.

    • Select the availability zone to locate the VM in.

    • (optional) Select or create a service account. By using a service account you can flexibly configure access rights for your resources.

  5. In the Public images section:

    • Select Windows.
    • Select the operating system version and edition.
  6. (optional) Configure the boot disk in the Disks section:

    • Specify the necessary disk size.
    • Select a disk type.
  7. (optional) If you want to create an instance from an existing disk, go to Disks to add a disk.

  8. Under Computing resources:

  9. Under Network settings:

    • Specify the subnet ID or select a cloud network from the list. If you don't have a network, click Create a new network to create one:
      • In the window that opens, enter a name for the new network and choose a subnet to connect the virtual machine to. Each network must have at least one subnet (if there's no subnet, create one). Then click Create.
    • In the Public IP field, choose a method for assigning an IP address:
      • Auto — Assign a random IP address from the Yandex.Cloud IP pool.
      • List — Select a public IP address from the list of previously reserved static addresses. For more information, see Making a dynamic public IP address static.
      • No address: Don't assign a public IP address.
    • (optional) Enable DDoS protection.
  10. When you create a VM, the Administrator user is automatically created in the operating system. In the Password field, set a password for this user to log in to the VM via RDP.

    Do not use passwords that are easy to guess. Passwords must meet the Windows security policy.

    In public Windows Server images provided by Yandex.Cloud, the password expiration option of the Administrator user is disabled by default.

  11. Click Create VM.

The virtual machine appears in the list. When a VM is being created, it is assigned an IP address and hostname (FQDN).

It takes up to five minutes to create a VM and initialize the Windows operating system. Once the OS initialization has started, the VM instance gets the RUNNING status. You can monitor VM instance statuses in the list of VMs in your folder.

Connecting to VMs

Remote Desktop Protocol (RDP) is enabled for images of all versions and editions of the Windows operating system prepared for Yandex.Cloud. You can connect to a VM using the RDP protocol when it is running (with the "RUNNING" status).

To connect using RDP, specify the public IP address or the FQDN of the VM. Access via FQDN is possible from another Yandex.Cloud VM, if it is connected to the same network. You can find out the IP address and FQDN in the management console. Go to the Network section on the virtual machine's page.

To connect to a VM:

  1. Click Start.
  2. In the search box, enter remote desktop connection and choose Remote Desktop Connection.
  3. In the window Remote Desktop Connection enter the public IP address of the virtual machine to connect to in the Computer field.
  4. Click Connect.
  5. Specify the account settings:
    • User name: Administrator.
    • Password: the password that you set when you created the virtual machine.
  6. Press OK.

See also

  1. Install and run Microsoft Remote Desktop (free official RDP client for Mac).
  2. Press imageDesktop.
  3. In the Add Desktop dialog enter the public IP address of the virtual machine to connect to in the field PC Name.
  4. In the User Account field select Add User Account.
  5. In the Add User Account dialog specify the account settings:
    • User Name: Administrator.
    • Password: the password that you set when you created the virtual machine.
  6. Press Save twice.
  7. Connect to the remote machine by double-clicking the connection you created in the main Microsoft Remote Desktop window.

See also

  1. Install Remmina (a free RDP client for Linux) using the commands:

    $ sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
    $ sudo apt-get update
    $ sudo apt-get install remmina remmina-plugin-rdp
    
  2. Start Remmina.

  3. Click image.

  4. Fill in the Profile block as follows:

    • Name: a name for the connection.
    • Protocol: RDP - Remote Desktop Protocol.
  5. In the Basic tab specify the details for connection and authorization:

    • Server: the public IP address of the virtual machine to connect to.
    • User Name: Administrator.
    • Password: the password that you set when you created the virtual machine.
  6. Click Save.

  7. Connect to the remote machine by double-clicking the connection you created in the quick access connection list.

See also

Delete VMs

If you no longer plan to use a virtual machine, delete it.

What's next