{"id":169,"date":"2016-03-03T08:29:45","date_gmt":"2016-03-03T07:29:45","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=169"},"modified":"2016-11-27T00:45:25","modified_gmt":"2016-11-26T23:45:25","slug":"kernel-4-4-1-2-arch-and-libvirtd","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=169","title":{"rendered":"Kernel 4.4.1-2-ARCH and libvirtd"},"content":{"rendered":"<p>Well, well, well&#8230; What a fuckup! As of this writing [2016-03-03] the current versions of the Archlinux Kernel and libvirtd are not working at all. Took me almost a week to figure this out.<\/p>\n<p>There are two issues:<\/p>\n<ol>\n<li>The Kernel package 4.4.1-2-ARCH (which is actually 4.4.3 with patches) crashes silently if you try to start a VM from libvirtd (if you even get so far, but that&#8217;s covered below). Honestly, I have no idea why, because it doesn&#8217;t sputter an OOPS. What I know: Downgrading to 4.3.3-3-ARCH fixes that issue.<\/li>\n<li>libvirt-1.3.2-1 is broken, or rather libvirtd.service is&#8230; It says that libvirtd is of type notify. That may be true, but it doesn&#8217;t work. Don&#8217;t even bother to fiddle around with polkit rules: It doesn&#8217;t work. IMHO polkit is over-engineered.<\/li>\n<\/ol>\n<p>To fix (1.): Downgrade the Kernel to 4.3.3. If you don&#8217;t have a copy, download it <a href=\"http:\/\/ala.seblu.net\/packages\/l\/linux\/linux-4.3.3-3-x86_64.pkg.tar.xz\">here<\/a>. Install it with:<\/p>\n<pre># pacman -U linux-4.3.3-3-x86_64.pkg.tar.xz\r\n# systemctl reboot<\/pre>\n<p>When the older kernel is running (confirm it with uname -a), we can fix (2.) by turning libvirtd.service from Type=notify to Type=simple. <strong>Be warned<\/strong>: It may have serious side effects! You&#8217;re on your own when you do this!<\/p>\n<pre># cp \/usr\/lib\/systemd\/system\/libvirtd.service \/etc\/systemd\/system<\/pre>\n<p>Now edit \/etc\/systemd\/system\/libvirtd.service and comment out Type=notify. This turns\u00a0libvirtd into a &#8220;simple&#8221; service, not forking, no authentication, nothing. Then reload everything and start libvirtd, virtlockd and virtlogd:<\/p>\n<pre># systemctl daemon-reload\r\n# systemctl start libvirtd virtlockd virtlogd<\/pre>\n<p>Finally (re-)start your virtual machines. Share and enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, well, well&#8230; What a fuckup! As of this writing [2016-03-03] the current versions of the Archlinux Kernel and libvirtd are not working at all. Took me almost a week to figure this out. There are two issues: The Kernel package 4.4.1-2-ARCH (which is actually 4.4.3 with patches) crashes silently if you try to start &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=169\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Kernel 4.4.1-2-ARCH and libvirtd<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,77],"tags":[83,51],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-hetzner","category-linux","tag-libvirtd","tag-systemd"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":3,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}