Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 0 down vote accepted

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

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

share|improve this answer

Your Answer


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.