Revision 74a4c11b
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
425 | 425 |
if boot_disk: |
426 | 426 |
kvm_cmd.extend(['-boot', 'c']) |
427 | 427 |
if disk_type != constants.HT_DISK_IDE: |
428 |
boot_val = ',boot=on'
|
|
428 |
boot_val = ',boot=on' |
|
429 | 429 |
else: |
430 |
boot_val = ''
|
|
430 |
boot_val = '' |
|
431 | 431 |
# We only boot from the first disk |
432 | 432 |
boot_disk = False |
433 | 433 |
else: |
... | ... | |
443 | 443 |
if boot_cdrom: |
444 | 444 |
kvm_cmd.extend(['-boot', 'd']) |
445 | 445 |
if disk_type != constants.HT_DISK_IDE: |
446 |
options = '%s,boot=on' % options
|
|
446 |
options = '%s,boot=on' % options |
|
447 | 447 |
else: |
448 | 448 |
if disk_type == constants.HT_DISK_PARAVIRTUAL: |
449 | 449 |
if_val = ',if=virtio' |
Also available in: Unified diff