     mode: mode
     type: 'Disk'
     userdevice: position
-    bootable : true
-    empty : false
+    bootable: bootable ? false
+    empty: false
     other_config: {}
     qos_algorithm_type: ''
     qos_algorithm_params: {}

  host: { type: 'string' }
}

exports.diskAttach = ({id, vdi, position, mode, bootable}) ->
  try
    VM = @getObject id, 'VM'
    VDI = @getObject vdi, 'VDI'
  catch
    @throw 'NO_SUCH_OBJECT'

    mode: 'RW'
    type: 'Disk'
    userdevice: position
    bootable: bootable ? true
    empty: false
    other_config: {}
    qos_algorithm_type: ''
    qos_algorithm_params: {}
