Bug#647606: [Pkg-libvirt-maintainers] Bug#647606: [libvirt-bin] virsh screenshot domain not working (cannot get screenshot of domain using virsh)

2011-11-07 Thread David Pravec
I tried  now directly using monitor in kvm and its command 'screendump  
picture'

= worked well, correct picture was created as rawbits PPM image.

virsh screenshot testdomain picture2
= hangs forever...

Did you try taking a screeshot with kvm directly?
  -- Guido





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647606: [Pkg-libvirt-maintainers] Bug#647606: [libvirt-bin] virsh screenshot domain not working (cannot get screenshot of domain using virsh)

2011-11-07 Thread Guido Günther
On Mon, Nov 07, 2011 at 09:37:13AM +0100, David Pravec wrote:
 I tried  now directly using monitor in kvm and its command
 'screendump  picture'
 = worked well, correct picture was created as rawbits PPM image.
 
 virsh screenshot testdomain picture2
 = hangs forever...

Thanks for testing! I tried to reproduce this with libvirt-0.9.7~rc2 and
it works. Could you check if this version (in experimental) works for
you?
 -- Guido



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647606: [Pkg-libvirt-maintainers] Bug#647606: [libvirt-bin] virsh screenshot domain not working (cannot get screenshot of domain using virsh)

2011-11-07 Thread David Pravec


Hi,

I tested both virsh and python ways, both do work well  with 0.9.7~rc2 !

Thanks a lot.
David  Pravec




Thanks for testing! I tried to reproduce this with libvirt-0.9.7~rc2 and
it works. Could you check if this version (in experimental) works for
you?
  -- Guido





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647606: [libvirt-bin] virsh screenshot domain not working (cannot get screenshot of domain using virsh)

2011-11-04 Thread David Pravec

Package: libvirt-bin
Version: 0.9.6-2
Severity: normal

--- Please enter the report below this line. ---
when i am trying to get screenshot using libvirt,
my code blocks forever, waiting for image data which are not coming.

This happens when i do use libvirt from python as a library, and also 
when i use command
'virsh screenshot domain', which should fetch domain screenshot and save 
it into file.


Some people on #virsh irc channel told me that its working on other 
systems,
one of them confirmed that his sid machine also doesnt work well. This 
might mean its a packaging issue...


I was not able to fully identify reason for this failure, as the python 
code is waiting forever for some C library...
When i was testing following code, the problem occurs in last line: 
stream.recvAll(handler, fd)


(it never calls the handler, just waiting forever)

-

#!/usr/bin/python -u

import libvirt, os

def handler(stream, buf, opaque):

fd = opaque

os.write(fd, buf)

uri = qemu:///system

vmname = test1

filename = screenshot.dat

connection = libvirt.open(uri)

domain = connection.lookupByName(vmname)

stream = connection.newStream(0)

mimetype = domain.screenshot(stream, 0, 0)

print mimetype:, mimetype

fd = os.open(filename, os.O_WRONLY | os.O_TRUNC | os.O_CREAT, 0644)

stream.recvAll(handler, fd)


-


--- System information. ---
Architecture: amd64
Kernel: Linux 3.0.0-2-amd64

Debian Release: wheezy/sid
550 unstable ftp.cz.debian.org
500 testing security.debian.org
500 testing ftp.cz.debian.org

--- Package information. ---
Depends (Version) | Installed
==-+-
libavahi-client3 (= 0.6.16) | 0.6.30-5
libavahi-common3 (= 0.6.16) | 0.6.30-5
libblkid1 (= 2.17.2) | 2.19.1-5
libc6 (= 2.11) | 2.13-21
libcap-ng0 | 0.6.6-1
libdevmapper1.02.1 (= 2:1.02.20) | 2:1.02.67-1
libgcrypt11 (= 1.4.5) | 1.5.0-3
libgnutls26 (= 2.12.6.1-0) | 2.12.12-1
libnl1 (= 1.1) | 1.1-7
libparted0debian1 (= 2.2-1) | 2.3-8
libpcap0.8 (= 0.9.8) | 1.1.1-10
libpciaccess0 | 0.12.1-2
libreadline6 (= 6.0) | 6.2-7
libsasl2-2 | 2.1.25.dfsg1-2
libudev0 (= 0.140) | 172-1
libvirt0 (= 0.9.6-2) | 0.9.6-2
libxenstore3.0 (= 3.2.0) | 4.1.1-3
libxml2 (= 2.7.4) | 2.7.8.dfsg-5
libyajl1 (= 1.0.5) | 1.0.12-1
adduser | 3.113
logrotate | 3.7.8-6
gettext-base | 0.18.1.1-5


Recommends (Version) | Installed
==-+-
netcat-openbsd | 1.89-4
bridge-utils | 1.5-2
dnsmasq-base (= 2.46-1) | 2.59-2
iptables (= 1.4.10) | 1.4.12-1
qemu-kvm | 0.15.1+dfsg-1
OR qemu (= 0.9.1) | 0.15.0+dfsg-1
libxml2-utils | 2.7.8.dfsg-5
gawk | 1:3.1.8+dfsg-0.1
ebtables | 2.0.9.2-2
dmidecode | 2.11-4
iproute | 20110629-1
parted | 2.3-8


Suggests (Version) | Installed
==-+-===
policykit-1 | 0.102-1
radvd |






Bug#647606: [Pkg-libvirt-maintainers] Bug#647606: [libvirt-bin] virsh screenshot domain not working (cannot get screenshot of domain using virsh)

2011-11-04 Thread Guido Günther
On Fri, Nov 04, 2011 at 02:23:52PM +0100, David Pravec wrote:
 Package: libvirt-bin
 Version: 0.9.6-2
 Severity: normal
 
 --- Please enter the report below this line. ---
 when i am trying to get screenshot using libvirt,
 my code blocks forever, waiting for image data which are not coming.
 
 This happens when i do use libvirt from python as a library, and
 also when i use command
 'virsh screenshot domain', which should fetch domain screenshot and
 save it into file.
 
 Some people on #virsh irc channel told me that its working on other
 systems,
 one of them confirmed that his sid machine also doesnt work well.
 This might mean its a packaging issue...
 
 I was not able to fully identify reason for this failure, as the
 python code is waiting forever for some C library...
 When i was testing following code, the problem occurs in last line:
 stream.recvAll(handler, fd)
 
 (it never calls the handler, just waiting forever)
Did you try taking a screeshot with kvm directly?
 -- Guido



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org