2013-11-26 22:23:05 +01:00
|
|
|
Index: virt-manager-0.10.0/virtManager/uihelpers.py
|
2011-08-05 22:38:31 +02:00
|
|
|
===================================================================
|
2013-11-26 22:23:05 +01:00
|
|
|
--- virt-manager-0.10.0.orig/virtManager/uihelpers.py
|
|
|
|
+++ virt-manager-0.10.0/virtManager/uihelpers.py
|
|
|
|
@@ -426,13 +426,12 @@ def build_storage_format_combo(vm, combo
|
2011-08-05 22:38:31 +02:00
|
|
|
combo.set_model(dev_model)
|
2013-11-26 22:23:05 +01:00
|
|
|
combo.set_entry_text_column(0)
|
2011-08-05 22:38:31 +02:00
|
|
|
|
2012-07-13 22:11:20 +02:00
|
|
|
- formats = ["raw", "qcow2", "qed"]
|
2011-09-20 17:08:57 +02:00
|
|
|
- if vm.rhel6_defaults():
|
|
|
|
- formats.append("vmdk")
|
2012-07-13 22:11:20 +02:00
|
|
|
- formats.append("vdi")
|
2011-09-20 17:08:57 +02:00
|
|
|
-
|
|
|
|
- for m in formats:
|
2011-08-05 22:38:31 +02:00
|
|
|
- dev_model.append([m])
|
2011-09-20 17:19:50 +02:00
|
|
|
+ if vm.conn.is_xen():
|
2011-08-05 22:38:31 +02:00
|
|
|
+ for m in ["raw", "qcow2", "vmdk"]:
|
|
|
|
+ dev_model.append([m])
|
|
|
|
+ else:
|
2012-07-13 22:11:20 +02:00
|
|
|
+ for m in ["raw", "qcow2", "qed", "vmdk", "vdi"]:
|
2011-08-05 22:38:31 +02:00
|
|
|
+ dev_model.append([m])
|
|
|
|
|
|
|
|
combo.set_active(0)
|
|
|
|
|