KVM: only pass boot flag once
authorIustin Pop <iustin@google.com>
Mon, 23 Jul 2012 11:56:09 +0000 (13:56 +0200)
committerIustin Pop <iustin@google.com>
Tue, 24 Jul 2012 15:10:31 +0000 (17:10 +0200)
commit2b8463047a71e40e86233b7f35698f478350986f
treef6d6f6cd8ffddc53cfc2294cafd45c82eca8edad
parentdeb717a09042d7a7314bdea2bb28e9159343b857
KVM: only pass boot flag once

This addresses issue 230: passing two methods of booting to KVM can,
depending on the KVM version, confuse it.

Note that commit 4304964a introduced a partial fix for this (but only
for disks, and keyed on KVM versions). However, it didn't fix cdrom
booting, which still fails with the same error, so let's fix it more
generically; we still leave the per-disk check since that is about
-boot c versus -drive …,boot=on rather than two boot methods.

Patch is based on the one submitted by Vladimir Mencl, many thanks!

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/hypervisor/hv_kvm.py
man/gnt-instance.rst