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

I need to force Xen virtual machine to run a program. Thus, I'm looking for a way to make a script, which could be executed on the host machine and make VM to run the program

Also, there's a question - is it possible to automate configuring VMs to have them already got the executable I need (before starting the VM actually or, maybe, make it copy the executable just after start)?

share|improve this question
Can you clarify a little bit more what you are actually trying to do? – Nils Feb 28 '12 at 20:24
What type of linux are you running? For RHEL/Centos you can use kickstart to automate configuration. To run commands, have a look at salt – davey Feb 28 '12 at 21:16
I think he's looking for more of a VPS type solution. Where the host can execute commands on the host through a web console. – Jacob Mar 2 '12 at 20:32

You might want to look at JeOS (JustEnoughOperatingSystem). It's available based on SuSE and Oracle VM and specially intended for single-application virtual machines.

That's not saying it's still a lot more complex than you seem to be assuming :)

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.