mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Desktop tool for managing virtual machines via libvirt
This e.g. happens when the volume was moved away but the pool didn't get refereshed: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 1229, in browse_import self._browse_file(set_path, is_media=False) File "/usr/share/virt-manager/virtManager/create.py", line 2118, in _browse_file self.storage_browser.show(self.topwin, self.conn) File "/usr/share/virt-manager/virtManager/storagebrowse.py", line 74, in show self.reset_state(conn) File "/usr/share/virt-manager/virtManager/storagebrowse.py", line 183, in reset_state self.pool_selected() File "/usr/share/virt-manager/virtManager/storagebrowse.py", line 257, in pool_selected self.populate_storage_volumes() File "/usr/share/virt-manager/virtManager/storagebrowse.py", line 322, in populate_storage_volumes path = vol.get_target_path() File "/usr/share/virt-manager/virtManager/storagevol.py", line 49, in get_target_path return util.xpath(self.get_xml(), "/volume/target/path") File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 93, in get_xml self.refresh_xml() File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 105, in refresh_xml self._xml = self._XMLDesc(self._active_xml_flags) File "/usr/share/virt-manager/virtManager/storagevol.py", line 35, in _XMLDesc return self.vol.XMLDesc(flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2002, in XMLDesc if ret is None: raise libvirtError ('virStorageVolGetXMLDesc() failed', vol=self) libvirt.libvirtError: cannot stat file '/var/scratch/vms/squeeze-template.img': No such file or directory Instead of failing the whole pool simply ignore the one failing volume. Without this patch selecting "Browse..." when creating a new vm from an existing disk image won't show the volume dialog if the default pool has a missing volume. |
||
---|---|---|
.tx | ||
docs | ||
help | ||
icons | ||
m4 | ||
man | ||
po | ||
src | ||
tests | ||
.gitignore | ||
ABOUT-NLS | ||
AUTHORS | ||
autobuild.sh | ||
autogen.sh | ||
ChangeLog | ||
configure.ac | ||
COPYING | ||
COPYING-DOCS | ||
HACKING | ||
INSTALL | ||
INSTALL.autotools | ||
Makefile.am | ||
NEWS | ||
omf.make | ||
README | ||
TODO | ||
virt-manager.spec.in | ||
xmldocs.make |
Virtual Machine Manager ======================= This application provides a graphical tool for managing virtual machines via the libvirt library. The front end of the application uses the PyGTK / Glade libraries for all user interaction components. The back end uses libvirt for managing Xen, QEMU & KVM virtual machines. The UI is primarily tested with Xen and QEMU, but is intended to be portable to any virtualization backend libvirt supports. So when libvirt is ported to UML / VMware / etc the UI should not require any significant changes to deal with these drivers. Terminology ----------- In prose this app should be referred to as 'Virtual Machine Manager'. For source / RPM packaging, & the command name, it is called by the shortened form 'virt-manager' Pre-requisite software ---------------------- Where versions are noted below these are the versions tested to definitely work. For some of them you may be able to run with earlier releases, so please report any success to the mailing lists python >= 2.4 pygtk2 >= 1.99.12-6 gnome-python2-gconf >= 1.99.11-7 libvirt-python >= 0.4.0 dbus-python >= 0.61 gnome-keyring >= 0.4.9 gnome-python-desktop >= 2.15.4 libxml2-python >= 2.6.23 vte >= 0.12.2 gtk-vnc >= 0.0.1 python-virtinst >= 0.300.0 PolicyKit >= 0.6 The latter is available from http://git.fedorahosted.org/git/python-virtinst.git Contact ------- All comments / suggestions / patches should be directed to the virt-tools-list mailing list: http://www.redhat.com/mailman/listinfo/virt-tools-list For bug reporting info, see: http://virt-manager.org/page/BugReporting There are further project details on the website: http://virt-manager.org/ Submitting patches ------------------ Patches should be submitted either as unified diffs: tar zxvf virt-manager-X.Y.Z.tar.gz cp -a virt-manager-X.Y.Z virt-manager-X.Y.Z-myfeature cd virt-manager-X.Y.Z-myfeature ... make some changes .. cd .. diff -ruN virt-manager-X.Y.Z virt-manager-X.Y.Z-myfeature \ > myfeature.patch Alternatively use git and submit a diff against the main source repository: git clone git://git.fedorahosted.org/git/virt-manager.git cd virt-manager ... make your changes ... git commit -a -m "Some changelog message" git show > my_feature.patch Then mail the 'my_feature.patch' file to the virt-tools-list@redhat.com list, with [PATCH] and a brief description in the subject. Using git format-patch and/or git send-email is also fine. Related software ---------------- Links which are relevant: http://libvirt.org http://www.linux-kvm.org http://xensource.com/xen/ http://pygtk.org/ http://gtk.org/ http://gtk-vnc.sourceforge.net/ Copyright / License -------------------- Unless otherwise noted, all the code for the Virtual Machine Manager is covered under the GPL, and Copyright (C) Red Hat. -- End of broadcast!