New Question
0

How can I open VM console with web parameters via html5_proxy_base_url

asked 2015-06-09 14:43:12 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Following is for non openstack hyperv console access via FreeRDP-WebConnect

Is there a way to bypass the form submission of html5proxybase_url e.g. http://192.168.1.10:8000 such that a VM console gets open if http://192.168.1.10:8000?host=192.168...

Thanks

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-06-10 21:55:43 +0200

alexpilotti gravatar image

If properly configured, there is no form showing up.

All you need is to provide proper admin credentials when installing FreeRDP-WebConnect.

Horizon will take care of the console authentication, passing a token to FreeRDP-WebConnect that will be used by wsgate to query your Nova environment for the Hyper-V host and VM id.

edit flag offensive delete link more

Comments

Thanks for your reply. However I am not using openstack or horizon for authentication. Instead looking for some API to open the console in iframe or similar on my custom portal.

Rishi gravatar imageRishi ( 2015-06-10 22:09:43 +0200 )edit

Further to this, I found that there is another format that exists like u: ,v:, h: but no documentation could be found.

Rishi gravatar imageRishi ( 2015-06-13 10:17:45 +0200 )edit

@alexpilotti any further hint ? I'm stuck up on guessing what are the mysterious parameters. :)

Rishi gravatar imageRishi ( 2015-06-15 11:07:22 +0200 )edit
0

answered 2015-06-16 21:28:32 +0200

c64cosmin gravatar image

You need to use the following keywords

host=[host-ip]

port=3389

This being the case of directly connecting to a machine. Resulting in the following

[iframe src="http://[wsgate host-ip] :8000/?host=[host-ip]&port=3389"]

Or if you're using Hyper-V

host=[Hyper-V host-ip]

port=2179

pcb=[VM id]

Resulting in the following

[iframe src="http://[wsgate host-ip] :8000/?host=[Hyper-V host-ip]&port=2179&pcb=[VM id]"]

[wsgate host-ip] is the IP of the machine where you installed wsgate

[VM id] is the blob that you can get using the PowerShell command

Get-VM [instance-name] | select id

You can get your instance-names but just running Get-VM

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-06-09 14:43:12 +0200

Seen: 2,204 times

Last updated: Jun 16 '15