You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

If you've created a Windows virtual machine, you obviously can't log into it through SSH. You need to access it through RDP. The steps for creating a Windows virtual machine are exactly the same as for every *nix image in the cloud - including the keypair part. To log in, you will need to add a security group that allows incoming RDP on the standard TCP port 3389 to your machine. The following example will just add this rule to the default security group.

loginansatt01:~$ openstack security group rule create --protocol tcp --ingress --dst-port 3389 default
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2017-08-10T07:12:43Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| headers           |                                      |
| id                | 01a192a8-b0b6-4944-8561-251f0f9e03ca |
| port_range_max    | 3389                                 |
| port_range_min    | 3389                                 |
| project_id        | e150a84ec8684a79a7ccd175138ad477     |
| project_id        | e150a84ec8684a79a7ccd175138ad477     |
| protocol          | tcp                                  |
| remote_group_id   | None                                 |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | 68c22b5c-eda0-4f1a-a59d-fa4feac1c0e2 |
| updated_at        | 2017-08-10T07:12:43Z                 |
+-------------------+--------------------------------------+

If you created a new security group for this purpose (which you should), you also need to attach that security group to your Windows virtual machine:

loginansatt01:~$ openstack server add security group <server-name> <security-group-name>

 

Our Windows images will disable the default Administrator user, and create a new user called "Admin." The password is randomly generated at boot, and will be encrypted with the public key provided at server creation time. To fetch the password, run the following command:

loginansatt01:~$ nova get-password <vm-name> .ssh/id_rsa
<your password for the Admin user>

You should now have everything you need to access the Windows machine through RDP via its floating IP.

 

The following instructions only apply to Windows Virtual Machines that for some reason still has a floating IP from the deprecated ext-net network

To achive this, you need to create an SSH tunnel via the skyhigh.hig.no jumphost. Example from a linux client (PuTTy would be different...):

larserik@sarah:~$ ssh -f -L 13389:<windows floating ip>:3389 <username>@skyhigh.hig.no -N

This will forward localhost:13389 to <windows floating ip>:3389 , and you will be able to connect to your Windows virtual machine via localhost:13389 via your favourite RDP client.

  • No labels