lib/vcloud-rest/vcloud/vm.rb
def force_customization_vm(vmId)
      builder = Nokogiri::XML::Builder.new do |xml|
        xml.DeployVAppParams(
          "xmlns" => "http://www.vmware.com/vcloud/v1.5",
          "forceCustomization" => "true")
      end

      params = {
        "method" => :post,
        "command" => "/vApp/vm-#{vmId}/action/deploy"
      }

      response, headers = send_request(params, builder.to_xml, "application/vnd.vmware.vcloud.deployVAppParams+xml")
      task_id = headers[:location].gsub(/.*\/task\//, "")
      task_id
    end
def force_customization_vm(vmId)
      builder = Nokogiri::XML::Builder.new do |xml|
        xml.DeployVAppParams(
          "xmlns" => "http://www.vmware.com/vcloud/v1.5",
          "forceCustomization" => "true")
      end

      params = {
        "method" => :post,
        "command" => "/vApp/vm-#{vmId}/action/deploy"
      }

      response, headers = send_request(params, builder.to_xml, "application/vnd.vmware.vcloud.deployVAppParams+xml")
      task_id = headers[:location].gsub(/.*\/task\//, "")
      task_id
    end
Force a guest customization