Re: [libvirt] virDomainGetMaxVcpus does not work as expected

2014-02-18 Thread Eric Blake
On 02/13/2014 06:50 AM, Claudio Bley wrote: > > The docs say: > >> If the guest is inactive, this is basically the same as >> virConnectGetMaxVcpus(). If the guest is running this will reflect >> the maximum number of virtual CPUs the guest was booted with. > > But, apparently, all the driver im

Re: [libvirt] virDomainGetMaxVcpus does not work as expected

2014-02-18 Thread Cole Robinson
On 02/18/2014 02:11 AM, Claudio Bley wrote: > Hi. Any opinions on this? > > At Thu, 13 Feb 2014 14:50:08 +0100, > Claudio Bley wrote: >> >> Hi. >> >> When calling virDomainGetMaxVcpus >> (http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMaxVcpus) on >> an inactive domain, I receive this er

Re: [libvirt] virDomainGetMaxVcpus does not work as expected

2014-02-17 Thread Claudio Bley
Hi. Any opinions on this? At Thu, 13 Feb 2014 14:50:08 +0100, Claudio Bley wrote: > > Hi. > > When calling virDomainGetMaxVcpus > (http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMaxVcpus) on > an inactive domain, I receive this error: > > scala> res2.getMaxVcpus() > libvirt: Domain Co

[libvirt] virDomainGetMaxVcpus does not work as expected

2014-02-13 Thread Claudio Bley
Hi. When calling virDomainGetMaxVcpus (http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMaxVcpus) on an inactive domain, I receive this error: scala> res2.getMaxVcpus() libvirt: Domain Config error : Requested operation is not valid: domain is not running org.libvirt.LibvirtException: Re