def Prepare(benchmark_spec):
  frontend = benchmark_spec.vm_groups['frontend'][0]
  backend = benchmark_spec.vm_groups['backend'][0]
  client = benchmark_spec.vm_groups['client'][0]
  vms = benchmark_spec.vms
  vm_util.RunThreaded(PreparePrivateKey, vms)
  vm_util.RunThreaded(_PrepareVms, vms)
  frontend.RemoteCommand('cd %s && '
                         'wget parsa.epfl.ch/cloudsuite/software/perfkit/'
                         'web_serving/webservingfiles.tgz && '
                         'tar xzf webservingfiles.tgz' % BASE_DIR)
  _SetupClient(benchmark_spec)
  frontend.RemoteCommand('scp -r -o StrictHostKeyChecking=no %s:%s %s' %
                         (client.ip_address, FABAN_HOME, BASE_DIR))
  backend.RemoteCommand('scp -r -o StrictHostKeyChecking=no %s:%s %s' %
                        (client.ip_address, FABAN_HOME, BASE_DIR))
  setup_functions = [_SetupBackend, _SetupFrontend]
  vm_util.RunThreaded(lambda f: f(benchmark_spec), setup_functions)
Install Java, apache ant, authenticate vms
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/cloudsuite_web_serving_benchmark.py/Prepare