Add machine version in kvm runtime file
Add machine version in kvm runtime file

kvm -M ? returns the supported machines (e.g. pc-1.1).
Add _GetDefaultMachineVersion() function to get the default value.

Upon kvm runtime file creation (this is in _GenerateKVMRuntime() invoked
only in StartInstance()) append this info in kvm_cmd. During
live migration the -incoming kvm process is started based on this file.

In case of different KVM versions between source and target nodes
there is a possibility (e.g. due to a kvm bug) for migration to fail silently.

This patch forces the target node to emulate the same machine version
used by running process. If KVM on target node does not support it
the -incoming kvm process will crash and migration will be aborted.

Signed-off-by: Dimitris Aragiorgis <4514117c4a99256e19437c7e3407c4ecbf98aec0@grnet.gr>
Reviewed-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>

onponomarev/ganeti,ganeti/ganeti,ganeti/ganeti,yiannist/ganeti,mbakke/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,apyrgio/snf-ganeti,grnet/snf-ganeti,andir/ganeti,mbakke/ganeti,leshchevds/ganeti,ganeti-github-testing/ganeti-test-1,leshchevds/ganeti,dimara/ganeti,dimara/ganeti,bitemyapp/ganeti,ganeti/ganeti,apyrgio/ganeti,yiannist/ganeti,andir/ganeti,andir/ganeti,apyrgio/ganeti,onponomarev/ganeti,yiannist/ganeti,bitemyapp/ganeti,apyrgio/snf-ganeti,leshchevds/ganeti,grnet/snf-ganeti