|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * TBD |
| 4 | + |
| 5 | +[id="cnv-accessing-rdp-console-{context}"] |
| 6 | += Connecting to a Windows virtual machine with an RDP console |
| 7 | + |
| 8 | +The Remote Desktop Protocol (RDP) provides a better console experience for |
| 9 | +connecting to Windows virtual machines. |
| 10 | + |
| 11 | +To connect to a Windows virtual machine with RDP, specify the IP address of the |
| 12 | +attached L2 vNIC to your RDP client. |
| 13 | + |
| 14 | +.Prerequisites |
| 15 | + |
| 16 | +* A running Windows virtual machine with the QEMU guest agent installed. The |
| 17 | +`qemu-guest-agent` is included in the VirtIO drivers. |
| 18 | +* A layer 2 vNIC attached to the virtual machine. |
| 19 | +* An RDP client installed on a machine on the same network as the |
| 20 | +Windows virtual machine. |
| 21 | + |
| 22 | +.Procedure |
| 23 | + |
| 24 | +. Log in to the {ProductName} cluster through the `oc` CLI tool as a user with |
| 25 | +an access token. |
| 26 | ++ |
| 27 | +---- |
| 28 | +$ oc login -u <user> https://<cluster.example.com>:8443 |
| 29 | +---- |
| 30 | + |
| 31 | +. Use `oc describe vmi` to display the configuration of the running |
| 32 | +Windows virtual machine. |
| 33 | ++ |
| 34 | +---- |
| 35 | +$ oc describe vmi <windows-vmi-name> |
| 36 | +---- |
| 37 | ++ |
| 38 | +[source,yaml] |
| 39 | +---- |
| 40 | +... |
| 41 | +spec: |
| 42 | + networks: |
| 43 | + - name: default |
| 44 | + pod: {} |
| 45 | + - multus: |
| 46 | + networkName: cnv-bridge |
| 47 | + name: bridge-net |
| 48 | +... |
| 49 | +status: |
| 50 | + interfaces: |
| 51 | + - interfaceName: eth0 |
| 52 | + ipAddress: 198.51.100.0/24 |
| 53 | + ipAddresses: |
| 54 | + 198.51.100.0/24 |
| 55 | + mac: a0:36:9f:0f:b1:70 |
| 56 | + name: default |
| 57 | + - interfaceName: eth1 |
| 58 | + ipAddress: 192.0.2.0/24 |
| 59 | + ipAddresses: |
| 60 | + 192.0.2.0/24 |
| 61 | + 2001:db8::/32 |
| 62 | + mac: 00:17:a4:77:77:25 |
| 63 | + name: bridge-net |
| 64 | +... |
| 65 | +---- |
| 66 | + |
| 67 | +. Identify and copy the IP address of the layer 2 network interface. This is |
| 68 | +`192.0.2.0` in the above example, or `2001:db8::` if you prefer IPv6. |
| 69 | +. Open an RDP client and use the IP address copied in the previous step for the |
| 70 | +connection. |
| 71 | +. Enter the *Administrator* user name and password to connect to the |
| 72 | +Windows virtual machine. |
| 73 | + |
| 74 | + |
0 commit comments