def vcpu=(count)
      fail(CloudError,
           "Invalid virtual CPU count #{count}") if count <= 0

      Config
        .logger
        .info "Changing the virtual CPU count to #{count}."

      payload = entity_xml
      payload.change_cpu_count(count)

      task = connection.post(payload.reconfigure_link.href,
                             payload,
                             Xml::MEDIA_TYPE[:VM])
      monitor_task(task)
      self
    end
def vcpu=(count)
      fail(CloudError,
           "Invalid virtual CPU count #{count}") if count <= 0

      Config
        .logger
        .info "Changing the virtual CPU count to #{count}."

      payload = entity_xml
      payload.change_cpu_count(count)

      task = connection.post(payload.reconfigure_link.href,
                             payload,
                             Xml::MEDIA_TYPE[:VM])
      monitor_task(task)
      self
    end
sets number of virtual cpus of VM