(grnet) Move disk options before nic ones in kvm command
authorDimitris Aragiorgis <dimara@grnet.gr>
Thu, 28 Nov 2013 06:25:59 +0000 (08:25 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 17 Dec 2013 10:46:48 +0000 (12:46 +0200)
commit150e31ec368fab94b9b5d244e9293dc7475797ad
treea58294fc0b0da7c20126b419ebbaa9d751c11cfd
parent0500f6fd4b4edafeec2c43b1a0b18dc5d9f81487
(grnet) Move disk options before nic ones in kvm command

Older versions of Ganeti did ensure that during startup
disk devices will be inserted before nic devices in PCI
configuration space. KVM inserts devices to PCI slots
depending on the order of command line options.

Upon migration kvm command options are re-generated based
on runtime files info. To be able to migrate instances
with old format runtime files put disk options before
NIC ones so that disk occupy the first pci slots available
and not the other way around.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/hypervisor/hv_kvm.py