# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1236949057 25200
# Node ID a7843fdcb24f71bfa7749d9bd96431ceef0e3e32
# Parent c504e1a011d7891cb974702ca249bc7b5ab1fffa
[TEST][RFC]Modifying emulator information to be used for KVM.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r c504e1a011d7 -r a7843fdcb24f suites/libvirt-cim/lib/XenKvmLib/const.py
--- a/suites/libvirt-cim/lib/XenKvmLib/const.py Fri Mar 13 05:56:33 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Fri Mar 13 05:57:37 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'
@@ -115,6 +117,8 @@
parser = OptionParser()
parser.add_option("-i", "--ip", dest="ip",
default="localhost",
help="IP address of machine to test, default: localhost")
+parser.add_option("-m", "--target_url", dest="t_url",
default="localhost:5988",
+ help="URL of destination host for remote migration ")
parser.add_option("-v", "--virt", dest="virt",
type="choice",
choices=['Xen', 'KVM', 'XenFV', 'LXC'],
default="Xen",
help="Virt type, select from: 'Xen' & 'KVM'
& 'XenFV' & 'LXC', default: Xen")