     $scope.VIFs = []
     $scope.isDiskTemplate = false
     $scope.cloudConfigSshKey = ''
+    $scope.bootAfterCreate = true
 
     $scope.addVIF = do ->
       id = 0

          # The first SR for a template with an existing disk
          $scope.firstSR = (get (get template.$VBDs[0]).VDI).$SR
          # Use the generic CloudConfig creation
          xo.vm.createCloudInitConfigDrive(id, $scope.firstSR, $scope.cloudContent)

        # Send the client on the VM view
        $state.go 'VMs_view', { id }
      .catch (error) ->

        # If a CloudConfig drive needs to be created
        if $scope.coreOsCloudConfig
          # Use the CoreOS specific Cloud Config creation
          return xo.vm.createCloudInitConfigDrive(id, $scope.firstSR, $scope.coreOsCloudConfig, true).then ->
            return xo.docker.register(id).then -> id
        if $scope.configDriveActive
          # User creation is less universal...
          # $scope.cloudContent = '#cloud-config\nhostname: ' + name_label + '\nusers:\n  - name: olivier\n    sudo: ALL=(ALL) NOPASSWD:ALL\n    groups: sudo\n    shell: /bin/bash\n    ssh_authorized_keys:\n      - ' + $scope.cloudConfigSshKey + '\n'
