     $scope.disconnectVBD = (vdi) ->
       id = resolveVBD(vdi)
       if id?
-        console.log "Disconnect VBD #{id}"
-        xo.vbd.disconnect id
+        modal.confirm({
+          title: 'VBD disconnection'
+          message: 'Are you sure you want to detach this VM disk ?'
+        }).then ->
+          console.log "Disconnect VBD #{id}"
+          xo.vbd.disconnect id
 
     $scope.connectVBD = (vdi) ->
       id = resolveVBD(vdi)

      xo.vif.connect id

    $scope.disconnectVIF = (id) ->
      console.log "Disconnect VIF #{id}"

      xo.vif.disconnect id

    $scope.deleteVIF = (id) ->
      console.log "Delete VIF #{id}"

    $scope.deleteVBD = (vdi) ->
      id = resolveVBD(vdi)
      if id?
        modal.confirm({
          title: 'VBD deletion'
          message: 'Are you sure you want to delete this VM disk attachment (the disk will NOT be destroyed)?'
        }).then ->
          console.log "Delete VBD #{id}"
          xo.vbd.delete id

    $scope.connectVIF = (id) ->
