Thursday, November 12, 2009

workaround for virsh save corrupting images in F12 beta

so. I was having this problem where after I applied virsh save to some images, I wasn't able to restore it later. I found a workaround by editing /etc/qemu/qemu.conf and uncommenting the two lines user="root" and group="root". That seemed to fix my problem.

Monday, November 9, 2009

email back. concurrency is bug

I got an email back about the bug I submitted to teh libvirt people about the concurrency problem. Evidently, it's really a bug.

Anyway. winedt seems like a pain to configure. I can't seem to tell it where my latex binary is.

Thursday, November 5, 2009

libvirtd hangs when accessed too frequently (race conditions?)

It seems that there are some concurrency problems with libvirt. I had the following script:

#!/usr/bin/python

import os, time





for i in xrange(1000):

print i

os.system('virsh restore /aml/images/pr51.img')

print "a"



os.system('virsh save pr51 /aml/images/pr51.img')






However, this script would hang libvirtd, the libvirt daemon, after awhile.

I ended up having to put sleep(3) after both os.system calls in order to make it work. I guess that the libvirt people haven't fixed this concurrency problem yet.