This is one necessary things which needs to be configured everytime a Hyper-V Virtual Machine is configured on a new system. I am writing this to remind myself of the steps needed for the same.
Currently I’m having windows server 2008 both as my host and virtual machine. Reason being I need to maintain different environment for different versions of CRM.
Ok, now there are two ways to bring the Virtual system on Remote Desktop:-
a> On the virtual machine open Remote Settings:–
My Computer -> Properties -> Remote Settings
Select the Allow Connection option as shown in the above image.
b> Now, we need to open the firewall for Remote Desktop:-
Move to Start -> Control Panel -> Windows Firewall -> Allowed a Program or Feature through Windows Firewall
Check the boxes next to Remote Desktop.
Now after you Restart the System, you can take the Virtual Machine on remote through the Computer Name. In my case it was like “Ashwin”.
Create two different types of network connection in your virtual machine(i.e. Internal and External)
I have my Hyper-V with a virtual Machine named “Ashwin CRM”. Select Virtual Network Manager.
Under New Virtual Network, Add an External network.
I named the External Network as “Ashwani External Network” with connection type as External. Click Apply.
You might get an warning regarding network connectivity.
I clicked ok and applied for the changes.
Similarly, Add an Internal Network.
I named this network as “Ashwin Internal Network” with connection as Internal.
Add both the networks under the Settings of the Virtual Machine.
After this in the host system, you will find both the networks. Under External network, select its sharing with the Internal network.
After sharing the network in host machine, you will see the below changes on network in the virtual machine.
You need to change the TCP/IPV4 configuration to obtain IP address Automatically.
Just the same like the image below.
After making the mentioned changes, the DNS will be changed to 192.168.137.1 and the IP will change something to 192.168.137.XXX
Now this fixed IP can be used to take the system on Remote everytime you log on to virtual system.
Hope this will be helpful to others as well.