Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Given a XenServer instance, is there a way to use XenAPI to invoke shell commands in a Windows DomU?

My purpose is to automate some guest actions in a Win7 guest. I have a Python script that uses XenAPI to snapshot some VMs. I want to automate some guest actions before the snapshot occurs.

My fallback plan is to just configure an SSH server in the guest, but I'd rather avoid that if possible.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I ended up just using PsExec. It's, imo, easier and cleaner than setting up sshd with cygwin.

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

Of course this only works for Windows-to-Windows. Otherwise SSH is probably the better option.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.