mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 22:05:47 +00:00
Revert "lxc: controller: Fix container launch on cgroup v1"
Unfortunately, this fix breakes machinectl in a very nasty way,
for instance 'machinectl shell' drops into the host shell. It's
worse than being unable to start a container with CGroupsV1.
Revert until a proper fix is figured out.
This reverts commit 1b9ce05ce2
.
References: https://gitlab.com/libvirt/libvirt/-/issues/182
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
2bdd654269
commit
9ca80bfa11
@ -865,12 +865,12 @@ static int virLXCControllerSetupCgroupLimits(virLXCController *ctrl)
|
||||
nodeset = virDomainNumatuneGetNodeset(ctrl->def->numa, auto_nodeset, -1);
|
||||
|
||||
if (!(ctrl->cgroup = virLXCCgroupCreate(ctrl->def,
|
||||
getpid(),
|
||||
ctrl->initpid,
|
||||
ctrl->nnicindexes,
|
||||
ctrl->nicindexes)))
|
||||
goto cleanup;
|
||||
|
||||
if (virCgroupAddMachineProcess(ctrl->cgroup, ctrl->initpid) < 0)
|
||||
if (virCgroupAddMachineProcess(ctrl->cgroup, getpid()) < 0)
|
||||
goto cleanup;
|
||||
|
||||
/* Add all qemu-nbd tasks to the cgroup */
|
||||
|
Loading…
Reference in New Issue
Block a user