[libvirt-users] renaming a domain?

2010-08-10 Thread Igor Serebryany
Hi, I'm trying to figure out if libvirt supports a domain rename feature, like xen's "xm rename" command. I couldn't find anything in the docs suggesting such a function. Am I missing something? Thanks! --Igor signature.asc Description: Digital signature ___

Re: [libvirt-users] bootloader_args element

2010-10-12 Thread Igor Serebryany
On Tue, Oct 12, 2010 at 10:14:23AM -0700, David Grundy wrote: > and I don't see anywhere to set the hostname in there. I am using pygrub > for the bootloader and noticed the "bootloader_args" element. I have had no success using bootloader_args for anything, under Xen PV with pygrub. It seems to

[libvirt-users] busy loop in libvirtd (cpu usage 100%)

2010-12-03 Thread Igor Serebryany
Hi! Occasionally of late, I've seen a few cases where libvirtd cpu usage shoots up to 100% and stays there indefinitely. This seems to happen when a QEMU VM is starting up, although on one occasion I *think* I saw it happen after a QEMU VM was p2p-migrated.

Re: [libvirt-users] busy loop in libvirtd (cpu usage 100%)

2010-12-16 Thread Igor Serebryany
On Mon, Dec 06, 2010 at 11:11:08AM +, Daniel P. Berrange wrote: > This is the kind of problem you need to use GDB to diagnose. Install > the libvirt-debuginfo (or equivalent for non-Fedora), This in itself was going to be a problem, because I hand-compiled libvirt from source (even in debian s

[libvirt-users] libvirt unavailable while a VM is in migration?

2010-12-17 Thread Igor Serebryany
Hi, I am running libvirt 0.8.6 on qemu (kvm, really) 0.12.5. I have noticed that while a live migration is running, I cannot do anything else with libvirt -- even 'virsh list' blocks without output until the migration is almost done. (At that point 'virsh

[libvirt-users] using virDomainMigrateSetMaxDowntime

2010-12-17 Thread Igor Serebryany
I would like to use the virDomainMigrateSetMaxDowntime but I'm a bit confused about how to use it. If I try to set the downtime before I call domain.migrate(), I get the error "domain is not being migrated". But I cannot call it afterwards because domain.migrate() does not return until the migrati

Re: [libvirt-users] libvirt unavailable while a VM is in migration?

2010-12-17 Thread Igor Serebryany
, 2010 at 02:06:27AM -0600, Igor Serebryany wrote: > Hi, > > I am running libvirt 0.8.6 on qemu (kvm, really) 0.12.5. I have > noticed that while a live migration is running, I cannot do anything > else with libvirt -- even 'virsh list' blocks without outp

Re: [libvirt-users] libvirt unavailable while a VM is in migration?

2010-12-17 Thread Igor Serebryany
On Fri, Dec 17, 2010 at 07:00:24AM -0600, Igor Serebryany wrote: > This sort of combines with my other outstanding email, about how to use > migrateSetMaxDowntime. If I can't even get a domain object for a > migrating domain, how could I possibly set max downtime AFTER the > mi

Re: [libvirt-users] using virDomainMigrateSetMaxDowntime

2010-12-19 Thread Igor Serebryany
On Mon, Dec 20, 2010 at 09:48:21AM +0800, Osier Yang wrote: > so yes, domain.migration will not return till it's finished. the problem is not that domain.migration will not return till it's finished. that makes perfect sense and is totally fine. the problem is that i can't seem to do ANYTHING els

Re: [libvirt-users] libvirt unavailable while a VM is in migration?

2010-12-20 Thread Igor Serebryany
On Mon, Dec 20, 2010 at 10:37:56AM +0100, Jiri Denemark wrote: > in your first email, you said you can't even run virsh list while migration is > running, right? yup -- when i start my migration using my python application, 'virsh list' no longer works from the command-line. i will try setting up

Re: [libvirt-users] libvirt unavailable while a VM is in migration?

2010-12-20 Thread Igor Serebryany
On Mon, Dec 20, 2010 at 02:14:42PM +0100, Jiri Denemark wrote: > Ouch, I wonder if that could be the reason... Could you just compile libvirt > yourself? I still had a box around where I was using a hand-compiled libvirt with the following version output: Compiled against library: libvir 0.8.5 U

Re: [libvirt-users] libvirt unavailable while a VM is in migration?]

2010-12-22 Thread Igor Serebryany
On Mon, Dec 20, 2010 at 02:14:42PM +0100, Jiri Denemark wrote: > Ouch, I wonder if that could be the reason... Just to make sure that my strange compiling/packages aren't causing the problem, I've set up two servers running fedora 14 with the official libvirt packages. i experience the same proble

Re: [libvirt-users] libvirt unavailable while a VM is in migration?]

2010-12-29 Thread Igor Serebryany
6:13:35AM +1100, Justin Clift wrote: > On 23/12/2010, at 5:44 AM, Igor Serebryany wrote: > > On Mon, Dec 20, 2010 at 02:14:42PM +0100, Jiri Denemark wrote: > >> Ouch, I wonder if that could be the reason... > > > > Just to make sure that my strange compiling/packages ar

Re: [libvirt-users] host to VM serial device configuration

2011-01-18 Thread Igor Serebryany
Hey John, If I understand correctly, you are trying to get access to the character device after you've created the domain. The exact device is auto-assigned when the VM is created, but you can get the correct device from the domain XML after the domain is running.

[libvirt-users] invalid argument error when using cache parameter

2011-01-21 Thread Igor Serebryany
hi, i tried to add a 'cache' argument to the 'driver' element in my domainxml for qemu/kvm. i tried adding cache="none" as well as "writethrough" and "writeback", but every time i get these errors: libvirtError: internal error process exited while connecting to monitor: c

Re: [libvirt-users] invalid argument error when using cache parameter

2011-01-21 Thread Igor Serebryany
.5 (Debian 0.12.5+dfsg-3), Copyright (c) 2003-2008 Fabrice Bellard cloud1:~# virsh --version 0.8.6 --Igor On Sat, Jan 22, 2011 at 12:49:55AM -0600, Igor Serebryany wrote: > hi, > > i tried to add a 'cache' argument to the 'driver' element in my > do

Re: [libvirt-users] invalid argument error when using cache parameter

2011-01-25 Thread Igor Serebryany
On Mon, Jan 24, 2011 at 11:26:36AM +, Daniel P. Berrange wrote: > What filesystem type is /vms ? I've seen this error message when > the filesystem did not support O_DIRECT, which cache=none enables yup, that was the exact culprit -- /vms is a FUSE-mounted FS which doesn't support O_DIRECT. t

Re: [libvirt-users] How to use Python Binding with Lbivirt.

2011-02-09 Thread Igor Serebryany
Arpita, I have used the python bindings extensively, but AFAIK there is no documentation specifically for python. The python bindings closely follow the C API, which is documented here: http://libvirt.org/html/libvirt-libvirt.html The function names in pyt

Re: [libvirt-users] libvirt unavailable while a VM is in migration?]

2011-03-24 Thread Igor Serebryany
ss, although it seems as though actual migrations have gotten much faster. just an fyi. --Igor On Wed, Dec 29, 2010 at 05:06:12PM -0600, Igor Serebryany wrote: > I've opened a bug to track this issue: > https://bugzilla.redhat.com/show_bug.cgi?id=666266 > > I have tried to wo

Re: [libvirt-users] virsh shutdown

2011-04-13 Thread Igor Serebryany
As eblake mentioned on the other mailing list, you have to have an ACPI daemon listening for ACPI events in the guest in order for 'virsh shutdown' or 'virsh reboot' to do anything. If the guest or the ACPI daemon crash, 'virsh shutdown' won't work. In my own code, I set a timeout of a minute to l

Re: [libvirt-users] Accessing a MAC address from inside the VM?

2011-04-18 Thread Igor Serebryany
On Sat, Apr 16, 2011 at 04:21:19PM -0400, David Lane wrote: > I attach an existing .img file to the host machine and need to change the > MAC address (since the image was created on another machine). Is there a > way from with in the guest to do this or do I have muck with the XML? And > if I muc

[libvirt-users] python-libvirt for 0.9.3 leaking file descriptors

2011-07-25 Thread Igor Serebryany
i've reported this issue before, so i guess this is a regression. looks like the python bindings for 0.9.3 are leaking file descriptors: root@cloud1:~# python Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more informati

[libvirt-users] cpu time totals

2011-09-13 Thread Igor Serebryany
Hi! I'm comparing the cpu usage of a VM from virDomainGetInfo and the usages returned per-vcpu from virDomainGetVcpus and the totals do not match up. I expect that the cpu usages reported per-vcpu, when summed, should equal the total cpu usage of the domai