Thanks for the quick response!

Strange that I didn't find that issue myself. But it's nice to know it is a
known bug.

//Emil

On Tue, Apr 11, 2023, 18:49 [email protected] <[email protected]> wrote:

> Take a look into this issue report
>
> https://github.com/apache/cloudstack/issues/6744
>
> Emil Karlsson <[email protected]> schrieb am Di., 11. Apr. 2023, 22:56:
>
> > Hi all,
> >
> > I recently updated some of my machines to Ubuntu 22.04 from 20.04, and I
> > noticed that some larger VMs are unable to start. As strange as it
> sounds,
> > a VM successfully boots on a 2 core 2Ghz CPU, but it does not when using
> 16
> > core, same clock rate.
> >
> > libvirtd logs:
> > error from service: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs:
> > *Value
> > specified in CPUWeight is out of range*
> >
> > which leads me to this forum:
> > https://bugzilla.redhat.com/show_bug.cgi?id=1950301
> >
> > that indicates that this has to do with a value in the KVM xml file.
> > Specifically
> >  <cputune>
> >     <shares>*this value*</shares>
> >     ....
> >   </cputune>
> >
> > So, it seems as if Cloudstack is giving an invalid value here.
> >
> > According to:
> >
> >
> https://libvirt.org/formatdomain.html#:~:text=.%20Since%201.2.9-,shares,262144%5D%20using%20cgroups%20v1%2C%20%5B1%2C%2010000%5D%20using%20cgroups%20v2.%20Since%200.9.0,-period
> >
> > the allowed values for cputune/shares differ depending on *cgroups
> > version:*
> > *v1* [2, 262144]
> > *v2* [1, 10000]
> >
> > I believe Ubuntu 22.04 upgrades to *cgroups v2* (or at least somewhere
> > between 20.04 -> 22.04).
> >
> > Which leads me to my question, does Cloudstack in some way assume that
> the
> > hosts use cgroups v1?
> >
> > I might have been misled somewhere when researching this issue, so any
> > input would be greatly appreciated!
> >
> > Best regards,
> > Emil Karlsson
> > kthcloud
> >
>

Reply via email to