# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1236853346 25200
# Node ID 555e0df8d5ac2d5a42a4f6d839e35194cf98a2d6
# Parent 873ac33542e0a2cfc49a7f1ca89c0190bafe58cd
[TEST]Modifying emulator information to be used for KVM.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 873ac33542e0 -r 555e0df8d5ac suites/libvirt-cim/lib/XenKvmLib/const.py
--- a/suites/libvirt-cim/lib/XenKvmLib/const.py Thu Mar 12 03:18:31 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Thu Mar 12 03:22:26 2009 -0700
@@ -82,10 +82,12 @@
Xen_default_mac = '11:22:33:aa:bb:cc'
# vxml.KVMXML
-if fv_cap(CIM_IP):
- KVM_default_emulator = '/usr/bin/qemu-kvm'
-else:
- KVM_default_emulator = '/usr/bin/qemu'
+KVM_default_emulator = '/usr/local/bin/qemu-system-x86_64'
+if not os.path.exists(KVM_default_emulator):
+ if fv_cap(CIM_IP):
+ KVM_default_emulator = '/usr/bin/qemu-kvm'
+ else:
+ KVM_default_emulator = '/usr/bin/qemu'
KVM_disk_path = os.path.join(_image_dir, 'default-kvm-dimage')
KVM_secondary_disk_path = os.path.join(_image_dir, 'default-kvm-dimage.2ND')
KVM_default_disk_dev = 'hda'