Status: New
Owner: ----

New issue 230 by [email protected]: Ganeti KVM instance doesn't start with host-based kernel - KVM reports "Two devices with same boot index 0"
http://code.google.com/p/ganeti/issues/detail?id=230

What software version are you running? Please provide the output of "gnt-
cluster --version" and "gnt-cluster version".


# gnt-cluster --version
gnt-cluster (ganeti v2.4.5) 2.4.5
# gnt-cluster version
Software version: 2.4.5
Internode protocol: 2040000
Configuration format: 2040000
OS api version: 20
Export interface: 0


What distribution are you using?

RHEL6

What steps will reproduce the problem?
1. Install Ganeti 2.4.5 on RHEL6
2. Create a KVM instance using a host-based kernel (kernel_path pointing to a kernel in the host OS filesystem)
3. Attempt to start the instance

What is the expected output?

Instance started

What do you see instead?

gnt-instance start gram5p7dev.canterbury.ac.nz
Waiting for job 41 for gram5p7dev.canterbury.ac.nz...
Job 41 for gram5p7dev.canterbury.ac.nz has failed: Failure: command execution error: Could not start instance: Hypervisor error: Failed to start instance gram5p7dev.canterbury.ac.nz: exited with exit code 1 (Two devices with same boot index 0)


Please provide any additional information below.

This appears to be caused by Ganeti instructing KVM to setup two different devices as boot devices:

-boot c -drive file=/dev/VolumeGroup00/b1be0ad4-7969-4139-921b-b2c00e4df2e0.disk0,format=raw,if=virtio,boot=on

Manually dropping the "boot=on" from the drive parameters fixes it.

I've been able to force Ganeti to do this (drop "boot=on" from drive parameters) by modifying hv_kvm.py to boot_disk (and boot_cdrom, boot_floppy, boot_network) to true when HV kernel_path is blank.

Patch attached.

Fixes the problem for me.

Happy to contribute this to the project.

Cheers,
Vladimir

PS: Credits for dropping the "boot=on" flag go to
http://comments.gmane.org/gmane.comp.emulators.qemu/94012


--
Vladimir Mencl, Ph.D.
E-Research Services and Systems Consultant
BlueFern Computing Services
University of Canterbury
Private Bag 4800
Christchurch 8140
New Zealand

http://www.bluefern.canterbury.ac.nz
mailto:[email protected]
Phone: +64 3 364 3012
Mobile: +64 21 997 352
Fax: +64 3 364 3002


Attachments:
        ganeti-kvm-hv-boot-patch.diff  1.1 KB

Reply via email to