<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>I have been using LXC container and VM started on a host machine simultaneously for a while. However, recently on using another machine, I see that either one can be started, but not both. </div>
<div>If the /cgroups is mounted, then the LXC starts, but the VM(started via libvirt) does not, giving the error:</div>
<div><br>
</div>
<div>virsh start VM1</div>
<div>
<div>error: Failed to start domain VM1</div>
<div>error: Controller 'memory' is not wanted, but 'cpu' is co-mounted: Invalid argument</div>
</div>
<div><br>
</div>
<div>If I umount /cgroups, and restart libvirt, then the VM1 VM is created via libvirt, but LXC start fails because it fails to locate cgroups.:</div>
<div><br>
</div>
<div>
<div>lxc-start -n lxc1</div>
<div>lxc-start: Could not find writable mount point for cgroup hierarchy 2 while trying to create cgroup.</div>
<div>lxc-start: failed creating cgroups</div>
</div>
<div><br>
</div>
<div>I am not sure if the bug is in libvirt or anywhere else, can someone pls recommend how to fix or workaround this issue?</div>
<div> </div>
<div>Thanks,</div>
<div>Anjali</div>
</body>
</html>