Revision 1f8194b3 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
607 607
        options = "%s,format=raw" % options
608 608
      if boot_cdrom:
609 609
        kvm_cmd.extend(['-boot', 'd'])
610
        if cdrom_disk_type != constants.HT_DISK_IDE:
611
          options = '%s,boot=on,if=%s' % (options, constants.HT_DISK_IDE)
612
        else:
613
          options = '%s,boot=on' % options
610
        # We default to IDE in order for CDROM booting to be usable
611
        # Also, there is no need to pass boot=on, as IDE doesn't need
612
        # extboot functionality to boot
613
        options = '%s,if=%s' % (options, constants.HT_DISK_IDE)
614 614
      else:
615 615
        if cdrom_disk_type == constants.HT_DISK_PARAVIRTUAL:
616 616
          if_val = ',if=virtio'

Also available in: Unified diff