Wednesday, February 8, 2012

SUNRPC example

http://www.cs.rutgers.edu/~pxk/rutgers/notes/rpc/

Make sure go to step 5/6 to follow the example and then read through.

Thursday, February 2, 2012

vsphere esx port forwarding on Windows

Suppose I want to have console view of my VMs from my Windows desktop, 
but server address is not in the same subnet as my windows desktop,
In my case, server address is 15.226.49.40:902(default console port)
but my windows ip address is 15.116.*.*, the firewall rules of the Esx
server prevent my connection.

Here are the steps to dig tunnel to bypass the firewall rules:
1. putty set up a new ssh session
15.226.49.40:22

2. Putty setting portforwarding
L902 15.226.49.40:902
L443 15.226.49.40:443
the reason for 443, is because vsphere use 443 port to let client to login


3. modify  etc\hosts file
C:Windows\System32\drivers\etc\hosts
Add line:
127.0.0.1 esx


Now open vsphere client:
open the address: esx
instead of the actual server 15.226.49.40

And now you can connect vm console freely.