Revision 323f9095 lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
180 180
    xm_list = self._GetXMList(False)
181 181
    return xm_list
182 182

  
183
  def StartInstance(self, instance, block_devices):
183
  def StartInstance(self, instance, block_devices, startup_paused):
184 184
    """Start an instance.
185 185

  
186 186
    """
187 187
    self._WriteConfigFile(instance, block_devices)
188
    result = utils.RunCmd(["xm", "create", instance.name])
188
    cmd = ["xm", "create"]
189
    if startup_paused:
190
      cmd.extend(["--paused"])
191
    cmd.extend([instance.name])
192
    result = utils.RunCmd(cmd)
189 193

  
190 194
    if result.failed:
191 195
      raise errors.HypervisorError("Failed to start instance %s: %s (%s)" %

Also available in: Unified diff