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.
Mode label in FS page should be associated with the
fs-mode-combo, but its erronesouly is associated with
fs-type-combo, fixing that here.
Signed-off-by: Deepak C Shetty <deepakcs@linux.vnet.ibm.com>
In case of qemu for default fs type (mount) target is not
actually a directory, it is merely a arbitrary string tag
that is exported to the guest as a hint for where to mount.
This tag is unique and is exported as a virito-9p-pci
device and hence this patch adds check to ensure the target
string/tag is never entered duplicate by the user when
adding 2 or more filesystem devices.
Signed-off-by: Deepak C Shetty <deepakcs@linux.vnet.ibm.com>
VNC disconnect signals aren't being delivered, meaning we never cleanup
up SSH tunnels for remote VNC connections. This causes a reconnect
attempt to hang, trying to reuse the existing tunnels (which doesn't
work).
The problem is that we are cleaning up the VNC widget too early,
unregistering callbacks before they get a chance to be invoked.
Not cleaning up only causes a small memory leak for every console we
open, so only a minor problem compared to the original issue. A more
involved fix is required to clean up safely.
Since 'tick' isn't really thread safe, and we sometimes call a manual tick
to refresh resources (say immediately after creating a guest), we
can't depend on lists staying consistent.
If doing p2p migration from a remote host to localhost, we need to
generate a remote libvirt URI for qemu:///system. Try and use the remote
auth credentials of source connection.
Hello,
This patch fixes the "Resize to VM" menu option by correcting inverted return
values in autodrawer.py.
Thanks,
Marc.
commit 8e666f4b87926c866ed35e58eb82213d2c514e89
Author: Marc Deslauriers <marc.deslauriers@ubuntu.com>
Date: Fri Aug 19 11:46:48 2011 -0400
Fix inverted width and height
Before displaying the install media selection list it first ensures that
there is data to display.
If no install media was detected, a message is shown and the user cannot
proceed. They instead must move back and select another installation
path.
I don't think I've sent this one to the list yet.
The nc -q autodetection code fails if the target system's grep does not
have a -q argument (quite the ironic coincidence). I believe -q is
specified by POSIX, but Solaris 11's /bin/grep does not support -q.
Redirecting to /dev/null works portably. (In fact, this is even
recommended in favor of -q for portability by GNU grep's man page.)
This needs to be changed in virt-manager's src/virtManager/console.py.
Richard