Creating a Windows VM
Create a Windows VM using Compute Cloud from the Yandex Cloud management console and connect to it.
To use Microsoft products, you must provide correct user data.
Before you begin
- Log in to or register in the management console. If you aren't registered, go to the management console and follow the instructions.
- On the billing page, make sure you linked a billing account and it has the
ACTIVE
orTRIAL_ACTIVE
status. If you don't have a billing account, create one.
- On the billing page, make sure you linked a billing account and it has the
- If you don't have a folder, create one.
Create a VM
To create a VM:
-
In the management console, select the folder to create the virtual machine in.
-
In the list of services, select Compute Cloud.
-
Click Create VM.
-
Under Basic parameters:
-
Enter a name and description for the VM. Naming requirements:
- The length can be from 3 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
Note
The VM name is used to generate an internal FQDN only once: when creating a VM. If the internal FQDN is important to you, choose an appropriate name for the VM at the creation stage.
-
Select an availability zone to put your virtual machine in.
-
-
Under Image/boot disk selection, select an image and a Windows-based operating system.
-
(optional) Under Disk and file storage, click the Disks tab and configure a boot disk:
-
Select the disk type.
-
Specify the necessary disk size.
If you wish to create a virtual machine from an existing disk, under Disks and file storage, add a disk:
- Click Add disk.
- Enter the disk name.
- Select the disk type.
- Specify the desired block size.
- Specify the necessary disk size.
- (optional) Enable the Delete with the VM option if you need to automatically delete the disk when deleting the VM it will be attached to.
- Select
Disk
as content. - Click Add.
-
-
(optional) Under Disks and file storage, click the File storage tab and connect a file store:
- Click Connect file storage.
- In the resulting window, select a file store.
- Enter a device name.
- Click Connect file storage.
-
Under Computing resources:
- Choose a platform.
- Specify the guaranteed share and the required number of vCPUs, as well as the amount of RAM.
- If necessary, make your VM preemptible.
- (optional) Enable a software-accelerated network.
-
Under Network settings:
- Enter a subnet ID or select a cloud network from the list.
If you don't have a network, click Create network to create one:- In the window that opens, enter the network name and folder to host the network.
- (optional) To automatically create subnets, select the Create subnets option.
- Click Create.
Each network must have at least one subnet. If there is no subnet, create one by selecting Add subnet.
- 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. With this, you can enable DDoS protection using the option below.
- 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.
- In the Internal address field, select the method for assigning internal addresses: Auto or Manual.
- (optional) Create a record for the VM in the DNS zone. Expand the DNS settings for internal addresses section, click Add record and specify the zone, FQDN and TTL for the record. For more information, see Cloud DNS integration with Compute Cloud.
- Select appropriate security groups (if there is no corresponding field, the virtual machine will be enabled for all incoming and outgoing traffic).
- Enter a subnet ID or select a cloud network from the list.
-
Under Access, specify the data required to access the VM:
-
(optional) Select or create a service account. By using a service account, you can flexibly configure access rights for your resources.
-
When you create a VM, the
Administrator
user is automatically created in the operating system. In the Password field, enter this user's password.Note
If you lost your password to log in to the VM, you may need to create a new VM with a disk from a snapshot. For more information, see Restoring access to a VM.
Do not use passwords that are easy to guess. Passwords must meet the Windows security policy.
In Windows Server images from Yandex Cloud, the
Administrator
user's password expiration is disabled by default. -
If required, grant access to the serial console.
-
-
(optional) Under Placement, select a VM placement group.
-
Click Create VM.
The virtual machine appears in the list. When a VM is created, it is assigned an IP address and hostname (FQDN). You can use this data to access the VM via RDP.
Reset the administrator password
The administrator password specified at the time of VM creation is saved as clear-text metadata, which is why we recommend replacing it with a newly generated password.
To reset a password:
-
Select the folder the VM belongs to.
-
Select Compute Cloud.
-
Select the VM.
-
Click Reset password.
Note
In the window that opens, if you see a message that the password reset agent is not running on the VM, make sure it is installed and review its runtime logs. For more information, see Verifying password reset operation on a Windows virtual machine.
-
Specify the Username to reset the password for. If there is no user with that name on the VM, this user will be created with administrator access.
-
Click Generate password.
-
Save the New password. It will become unavailable once you close the window.
Connect to the VM
Remote Desktop Protocol (RDP) with Network Level Authentication (NLA) is enabled for images of all versions and editions of the Windows operating system prepared for Yandex Cloud. Before connecting to a VM, make sure that NLA is enabled in your desktop settings. When the VM starts (its status is RUNNING
), you can connect to it using RDP.
Make sure the VM's security groups allow incoming TCP traffic to port 3389.
Note
Security groups are at the Preview stage. If they aren't available in your network, all incoming and outgoing traffic will be allowed for the VM and no additional setup is required.
To connect using RDP, specify the public IP address or the FQDN of the VM. Access using FQDN is possible from another Yandex Cloud VM if it's 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 the VM:
- Click Start.
- In the search box, type Remote Desktop Connection and select the appropriate item.
- In the Remote Desktop Connection window, enter the public IP address of the VM to connect to in the Computer field.
- Click Connect.
- Specify the account settings:
- User name
Administrator
. - The password you set when creating the VM.
- User name
- Press OK.
Note
It usually takes up to 6 minutes to start a VM and initialize Remote Desktop (RDP). In rare cases, loading may take much longer than the time specified. For example, when using:
- VMs with less than 100% guaranteed vCPU performance.
- VMs that generate a load that exceeds the boot disk's IOPS limit.
- Network HDD drives with small storage capacity.
See also
- Install and run Microsoft Remote Desktop (free official RDP client for Mac).
- Press → Desktop.
- In the Add Desktop dialog enter the public IP address of the virtual machine to connect to in the field PC Name.
- In the User Account field select Add User Account.
- In the Add User Account dialog specify the account settings:
- User Name
Administrator
. - Password: The password that you set when creating the VM.
- User Name
- Press Save twice.
- Connect to the remote machine by double-clicking the connection you created in the main Microsoft Remote Desktop window.
See also
-
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
-
Start Remmina.
-
Click .
-
Fill in the Profile block as follows:
- Name: a name for the connection.
- Protocol: RDP - Remote Desktop Protocol.
-
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.
-
Click Save.
-
Connect to the remote machine by double-clicking the connection you created in the quick access connection list.
See also
Configure the serial console
Using the serial console, you can connect to a VM regardless of the network or OS state (for example, if there are RDP loading or access issues).
Make sure you configure access to the VM via the serial console in advance.
Delete the VM
If you no longer plan to use a virtual machine, delete it.