    # File lib/fog/xenserver/models/compute/server.rb, line 146
            def save(params = {})
              requires :name
              nets = attributes[:networks] || []
              if params[:auto_start].nil?
                auto_start = true
              else
                auto_start = params[:auto_start]
              end
              if template_name
                attr = connection.get_record(
                  connection.create_server( name, template_name, nets, :auto_start => auto_start),
                  'VM'
                )
              else
                attr = connection.get_record(
                  connection.create_server_raw(attributes),
                  'VM'
                )
              end
              merge_attributes attr
              true
            end