New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design for on/off control of guest RDP service #12
Conversation
c9c9bb2
to
6f4b68a
Compare
Thanks, will take a look! |
Yay!! Contributions all round! 👍 |
This needs an entry in the |
Query: should this be in cross-cutting features (as it is now) or should it be in the Xapi subdir. Deciding where to put it on the navbar might inform your decision. |
I am not sure of the best place for this (hence deliberately not adding anything to The argument for putting it in cross-cutting features is that the code for this feature is (or will be) spread across several repositories and their corresponding output components:
|
All sounds plausible. Good to get the content in a staging area like this. Let's just remember to add the navbar entry before merging. We could add one with where it is now and change if we change our mind. |
6436847
to
38532c7
Compare
@thomassa any chance you could squash your small fixup and refresh this pull request? It will have the bonus of waking up Travis (since he doesn't know about existing pull reqs) |
Done (and already github says the Travis CI build is in progress). |
Great, thanks Thomas! |
I followed @robhoes's example (for better or worse) and added a line-note to the code which probably should be a design-level comment instead. For the record here's what I said: Looking at the other Since this feature seems very Windows-dependent ("terminal services") and is tied to our particular guest agent (and is not part of the standard Xen guest interface which is more minimal), I think we should reflect that in the name. Perhaps we should call the API |
In principle a guest agent could do the same thing in any guest regardless of operating system; there's at least one RDP server implementation for Linux. So, taking all the suggestions together, we'd end up with calls like |
Here are some further thoughts on the XenAPI naming: General thoughtsVMware has APIs which talk to their guest agent, such as Ideally in future we will be able to write guest agent code which exposes new APIs without having to add them to the XenAPI at all. Perhaps we would do this by transparently forwarding everything with an function name prefix of "VM.Guest" to the VM via some future protocol (over vchan or channels or vsock) Option 1: move the functions to a new VM_guest namespaceIn let vm_guest =
create_obj ...
~contents:[]
~messages: [ function1; function2 ] This would clearly separate the VM power control functions (e.g. Option 2: add a call_plugin-style of APIWe already have |
I rather like Dave's second option because (once implemented properly) it would let us add a new feature to the guest agent and start using it from a client of XenAPI, all without needing to make any change to any software that runs on the XenServer host. We shouldn't do this right now for the RDP control feature though. Dave and I have discussed it some more in person and we think that's the best approach for now. |
a8c7420
to
f32465d
Compare
Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Today I have updated RDP.md to reflect the feature in its final form as implemented and released. Now this needs another review. |
Design for on/off control of guest RDP service
Design doc for on/off control of guest RDP service