{"id":350,"date":"2017-12-24T09:29:31","date_gmt":"2017-12-24T09:29:31","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=350"},"modified":"2017-12-24T09:29:31","modified_gmt":"2017-12-24T09:29:31","slug":"error-unable-to-create-cgroup-for-vm-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/error-unable-to-create-cgroup-for-vm-no-such-file-or-directory.html","title":{"rendered":"error: Unable to create cgroup for vm**: No such file or directory"},"content":{"rendered":"<p>The error can appear for any type of KVM VM installation like Virtualizor\u00a0 or SolusVM or Proxmox. You may face the same error if you are simply using virtmanager to manage your KVM installation. The error appear when you try to start\/create the VM from the xml file:<\/p>\n<blockquote><p>[root@vps8 addvs]# virsh create \/etc\/libvirt\/qemu\/v1015.xml<br \/>\nerror: Failed to create domain from \/etc\/libvirt\/qemu\/v1015.xml<br \/>\nerror: Unable to create cgroup for v1015: No such file or directory<\/p><\/blockquote>\n<p>It appears because for some CentOS starts unmounting the cgroup and breaks libvirt. Easy way to fix this is to restart libvirtd:<\/p>\n<blockquote><p>service libvirtd restart<\/p><\/blockquote>\n<p>The error is more common in CentOS 7 than CentOS 6, as systemd is known to have the bug:<\/p>\n<blockquote><p>https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=678555<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The error can appear for any type of KVM VM installation like Virtualizor\u00a0 or SolusVM or Proxmox. You may face the same error if you are simply using virtmanager to manage your KVM installation. The error appear when you try to start\/create the VM from the xml file: [root@vps8 addvs]# virsh create \/etc\/libvirt\/qemu\/v1015.xml error: Failed &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/error-unable-to-create-cgroup-for-vm-no-such-file-or-directory.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;error: Unable to create cgroup for vm**: No such file or directory&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,21,150,26],"tags":[158,160,161,159,157],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/350"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/350\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}