Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Using UBUNTU and Virtal Box by Oracle, and Using this script to start nginx in Virtual Box, and placing it in Virtual box inside~/init.d

# Provides:          Testinit
# Required-Start:    
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.


start() {
CurrentTime=$(date +%d/%m/%Y"-"%I:%M:%S)
echo "Current Time:"$CurrentTime>>/home/server/Desktop/NginxLogs.txt
echo "!Starting nginx!" >>/home/server/Desktop/NginxLogs.txt

Like this i want to write auto script ( file) and place that script in all virtual boxes inside my system, for example 8 virtual boxes and in all Virtual boxes NGINX is installed.

Now, The thing is i am facing problem when i want change something in i have to go to each and every virtual box, or Communicate each Virtual machine through SSH from my main machine. i am thinking to write another script (ex:,and inside that script we give one path of file which is saved and recently edited in main machine (ex:

as soon as i run that script all the files which are saved in each virtual machines should update the change or replace contents with's contents. Hope this is possible thing. Help would be appreciated.

share|improve this question

What you are describing is mass automation, for which the standard answer is Puppet:

If you don't like Puppet, there's also Chef:

Finally, since you did say you're using Ubuntu specifically, you could consider Juju:

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.