
As no one answered my previous problem., I'm trying to build latest libvirt to be able to be more productive and find out if happens on later versions. Some silly questions to save time (on FC10 64): 1. Can one build without xen-devel (the autobuild.sh does not care for --without-xen configure: error: You must install the Xen development package to compile Xen driver with -lxenstore (I installed xen-devel to bypass for now) 2. checking libxml2 xml2-config >= 2.5.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details) but Package libxml2-2.7.2-2.fc10.x86_64 already installed and latest version? (checked at latest master and 0.50 tag) 3. already found the SDL patch is part of 0.50. since the build failed, I installed the rpm: rpm -i /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm warning: /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f error: Failed dependencies: libgnutls.so.13()(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64 libgnutls.so.13(GNUTLS_1_3)(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64 I checked with 0.4.6 as well, I assume this is a difference between fc9/fc10 somehow (since fc10 comes with 0.4.6) 4. as for the python-libvirt rpm Seems the libvirt-python spec does not check for some dependency of cygwin (why would I need that on fedora)? Traceback (most recent call last): File "./test_libvirt.py", line 2, in <module> import libvirt File "/usr/lib64/python2.5/site-packages/libvirt.py", line 12, in <module> import cygvirtmod as libvirtmod ImportError: No module named cygvirtmod Thanks, Itamar Thanks, Itamar From: libvir-list-bounces@redhat.com [mailto:libvir-list-bounces@redhat.com] On Behalf Of Itamar Heim Sent: Tuesday, December 02, 2008 1:08 AM To: Libvir-list@redhat.com Subject: [libvirt] broken pipe? Hi, I have a problem with a small python script (using fedora 10 with its shipped rpm's - libvirt-0.4.6-3.fc10.x86_64, libvirt-python-0.4.6-3.fc10.x86_64) I'm running a simple stupid libvirt python script. I happen to want to use SDL, and it fails on "Could not initialize SDL - exiting". While I need to solve this error (i.e., find out in which version this patch was included to allow me to specify the DISPLAY http://www.mail-archive.com/libvir-list@redhat.com/msg08764.html) I am more troubled by the fact that running the script again gives a socket/pipe error until I restart libvirtd: Run #1: ./test_libvirt.py libvir: QEMU error : internal error QEMU quit during console startup Could not initialize SDL - exiting Traceback (most recent call last): File "./test_libvirt.py", line 37, in <module> vm = c.createLinux(x, 0) File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirt.libvirtError: internal error QEMU quit during console startup Run #2: ./test_libvirt.py libvir: Remote error : socket closed unexpectedly Traceback (most recent call last): File "./test_libvirt.py", line 37, in <module> vm = c.createLinux(x, 0) # what a lousy function name File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirt.libvirtError: socket closed unexpectedly libvir: Remote error : Broken pipe Code: #!/usr/bin/env python import libvirt c = libvirt.open('qemu:///system') x = """<domain type='kvm'> <name>yossi2</name> <memory>512000</memory> <currentMemory>512000</currentMemory> <vcpu>1</vcpu> <os> <type arch='i686' machine='pc'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <source file='/mnt/sda2/images/winxp-acpi.vmdk'/> <target dev='hda' bus='ide'/> </disk> <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <graphics type='sdl'/> </devices> </domain>""" vm = c.createLinux(x, 0) Thanks, Itamar