diff --git a/python-virtinst-0.300.0-transient-qemu.patch b/python-virtinst-0.300.0-transient-qemu.patch new file mode 100644 index 0000000..e9c30d6 --- /dev/null +++ b/python-virtinst-0.300.0-transient-qemu.patch @@ -0,0 +1,18 @@ +diff -rup virtinst-0.300.0.orig/virtinst/FullVirtGuest.py virtinst-0.300.0.new/virtinst/FullVirtGuest.py +--- virtinst-0.300.0.orig/virtinst/FullVirtGuest.py 2007-09-19 15:19:16.000000000 -0400 ++++ virtinst-0.300.0.new/virtinst/FullVirtGuest.py 2007-09-19 15:19:28.000000000 -0400 +@@ -273,10 +273,13 @@ class FullVirtGuest(Guest.XenGuest): + for d in self.disks: + saved_path = None + if d.device == Guest.VirtualDisk.DEVICE_CDROM and d.transient and not install: +- # XXX hack. libvirt can't currently handle QEMU having an empty disk path ++ # XXX hack. libvirt can't currently handle QEMU having an empty disk path.. + if self.type == "xen": + saved_path = d.path + d.path = None ++ else: ++ # .. so simply remove CDROM device completely in non-Xen ++ continue + + ret += d.get_xml_config(d.target) + if saved_path != None: diff --git a/python-virtinst.spec b/python-virtinst.spec index 402ead1..e72e63d 100644 --- a/python-virtinst.spec +++ b/python-virtinst.spec @@ -11,10 +11,11 @@ Summary: Python modules for starting Xen guest installations Name: python-%{appname} Version: 0.300.0 -Release: 3%{_extra_release} +Release: 4%{_extra_release} Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz Patch1: %{name}-%{version}-fedora8-distro.patch Patch2: %{name}-0.200.0-default-arch.patch +Patch3: %{name}-%{version}-transient-qemu.patch License: GPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -39,6 +40,7 @@ virtinst in a command line mode. %setup -q -n %{appname}-%{version} %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build python setup.py build @@ -68,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/virt-image %changelog +* Wed Sep 19 2007 Daniel P. Berrange - 0.300.0-4.fc8 +- Fix post install CDROM config for KVM guests + * Tue Sep 11 2007 Daniel P. Berrange - 0.300.0-3.fc8 - Fixed default architecture. Again.