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@xxxxxxxxxx/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 |
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list