You’ll not be able to directly access your guest virtual machine in
RDP if it’s under
NAT network. For this you’ll have to configure port forwarding as detailed below;
‘s main interface and make sure the virtual machine that you want to configure is powered off.
Select your virtual machine and click
icon on the top toolbar. Alternatively, right click on the virtual machine and click
Click on the
Look for and click on
text at the bottom of the window.
Click on the
icon on the upper right to add new port forwarding rule in
‘s main interface.
Some of the fields are automatically filled up as the followings.
Fill in the fields accordingly.
In this example, port
2202 in the host machine will forward to port
22 of the guest machine whereby
10.0.2.15 is the default
IP for guest
Test the forwarding rule.
$ ssh -p2022 [email protected]
Warning: Permanently added '[127.0.0.1]:2022' (ECDSA) to the list of known hosts.
[email protected]'s password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-83-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 packages can be updated.
0 updates are security updates.
Last login: Fri Jul 7 09:29:30 2017
SSH is used to test the forwarding rule as
SSH is listening on port
22 of the guest VM.