{"id":6289,"date":"2021-03-25T17:32:55","date_gmt":"2021-03-25T12:02:55","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6289"},"modified":"2024-12-17T12:23:36","modified_gmt":"2024-12-17T06:53:36","slug":"unable-to-allow-access-for-disk-path-in-libvirtd","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/","title":{"rendered":"Unable to allow access for disk path in libvirtd."},"content":{"rendered":"\n<p>The&nbsp;<strong>libvirt<\/strong>&nbsp;can&#8217;t migrate the virtual machine(domain) it is because the&nbsp;&nbsp;<strong>libvirt<\/strong>&nbsp;cannot access the disk image(s):&nbsp;<\/p>\n\n\n\n<p>As part of our <a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#0170a0\" class=\"has-inline-color\">server management services<\/span><\/a>, we are delighted to assist you and fix the errors with our technical team support24\/7.<\/p>\n\n\n\n<p>One of our clients got the same issue, he tried to use a guest virtual machine informed that he was unable to migrate because libvirt cannot access the disk image(s):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Error: \n# virsh migrate qemu qemu+tcp:\/\/name_of_host\/system\nerror: Unable to allow access for disk path \/var\/lib\/libvirt\/images\/qemu.img: No such file or directory<\/code><\/pre>\n\n\n\n<p><strong>Fixing the error<\/strong><\/p>\n\n\n\n<p><strong>Let&#8217;s have a glance at the reason behind the error caused<\/strong><\/p>\n\n\n\n<p><strong>Cause for this Error:<\/strong><\/p>\n\n\n\n<p>Generally, migration only transfers the in-memory state of a running guest (such as memory or CPU state). Although disk images are not transferred during migration, they need to remain accessible at the same path by both hosts.<\/p>\n\n\n\n<p><strong>The solution to fix the error.<\/strong><\/p>\n\n\n\n<p>Set up and mount shared storage at the same location on both hosts. The simplest way to do this is by using NFS:<\/p>\n\n\n\n<p><strong>Follow the steps<\/strong><\/p>\n\n\n\n<p>Set up an NFS server on host serving as shared storage<\/p>\n\n\n\n<p>Run the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mkdir -p \/exports\/images\n# cat &gt;&gt;\/etc\/exports &lt;&lt;EOF\n\/exports\/images 192.168.122.0\/24(rw,no_root_squash)<\/code><\/pre>\n\n\n\n<p>EOF<\/p>\n\n\n\n<p>Now you need to mount the exported directory which is at the common location on all hosts running libvirt.<\/p>\n\n\n\n<p>Run the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cat &gt;&gt;\/etc\/fstab &lt;&lt;EOF\n123.123.123.123:\/exports\/images \/var\/lib\/libvirt\/images nfs auto 0 0<\/code><\/pre>\n\n\n\n<p>EOF<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mount \/var\/lib\/libvirt\/images<\/code><\/pre>\n\n\n\n<p>Note: replace Ip with the address of the NFS server.<\/p>\n\n\n\n<p>During the migration process, if you don&#8217;t set the configuration properly the guest virtual machine may lose access to its disk images. this happens when the source host\u2019s libvirt daemon may change the owner, permissions, and SELinux labels on the disk images after it successfully migrates the guest to its destination.<\/p>\n\n\n\n<p>You will not able to make the changes if the libvirt detects that the disk images are mounted from a shared storage location.<\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>In brief, follow the steps to fix the error unable to allow access for disk path in libvirtd. For more assistance, you can contact our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#026b98\" class=\"has-inline-color\">t<\/span><span style=\"color:#0170a0\" class=\"has-inline-color\">echnical team support<\/span><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;libvirt&nbsp;can&#8217;t migrate the virtual machine(domain) it is because the&nbsp;&nbsp;libvirt&nbsp;cannot access the disk image(s):&nbsp; As part of our server management services, we are delighted to assist you and fix the errors with our technical team support24\/7. One of our clients got the same issue, he tried to use a guest virtual machine informed that he was [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,295,296,291,68],"tags":[520,519,297,521],"class_list":["post-6289","post","type-post","status-publish","format-standard","hentry","category-blog","category-libvirtd","category-migration","category-selinux","category-server-management","tag-failed-to-start-libvirtd","tag-libvirt-cant-migrate-the-virtual-machine","tag-libvirtd","tag-migration-errors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Fixed: Unable to allow access for disk path in libvirtd<\/title>\n<meta name=\"description\" content=\"The libvirt can&#039;t migrate the virtual machine(domain) it is because the libvirt cannot access the disk image(s). Follow the steps to fix the error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unable to allow access for disk path in libvirtd.\" \/>\n<meta property=\"og:description\" content=\"The libvirt can&#039;t migrate the virtual machine(domain) it is because the libvirt cannot access the disk image(s). Follow the steps to fix the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-25T12:02:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T06:53:36+00:00\" \/>\n<meta name=\"author\" content=\"Pooja V\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pooja V\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/\"},\"author\":{\"name\":\"Pooja V\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\"},\"headline\":\"Unable to allow access for disk path in libvirtd.\",\"datePublished\":\"2021-03-25T12:02:55+00:00\",\"dateModified\":\"2024-12-17T06:53:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/\"},\"wordCount\":330,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"failed to start libvirtd\",\"libvirt\u00a0can&#039;t migrate the virtual machine\",\"libvirtd\",\"Migration errors\"],\"articleSection\":[\"Blog\",\"libvirtd\",\"migration\",\"SELinux\",\"server management\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/\",\"name\":\"Fixed: Unable to allow access for disk path in libvirtd\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-03-25T12:02:55+00:00\",\"dateModified\":\"2024-12-17T06:53:36+00:00\",\"description\":\"The libvirt can't migrate the virtual machine(domain) it is because the libvirt cannot access the disk image(s). Follow the steps to fix the error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/unable-to-allow-access-for-disk-path-in-libvirtd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unable to allow access for disk path in libvirtd.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\",\"name\":\"Pooja V\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"caption\":\"Pooja V\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fixed: Unable to allow access for disk path in libvirtd","description":"The libvirt can't migrate the virtual machine(domain) it is because the libvirt cannot access the disk image(s). Follow the steps to fix the error.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/","og_locale":"en_US","og_type":"article","og_title":"Unable to allow access for disk path in libvirtd.","og_description":"The libvirt can't migrate the virtual machine(domain) it is because the libvirt cannot access the disk image(s). Follow the steps to fix the error.","og_url":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-03-25T12:02:55+00:00","article_modified_time":"2024-12-17T06:53:36+00:00","author":"Pooja V","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Pooja V","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/"},"author":{"name":"Pooja V","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e"},"headline":"Unable to allow access for disk path in libvirtd.","datePublished":"2021-03-25T12:02:55+00:00","dateModified":"2024-12-17T06:53:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/"},"wordCount":330,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["failed to start libvirtd","libvirt\u00a0can&#039;t migrate the virtual machine","libvirtd","Migration errors"],"articleSection":["Blog","libvirtd","migration","SELinux","server management"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/","url":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/","name":"Fixed: Unable to allow access for disk path in libvirtd","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-03-25T12:02:55+00:00","dateModified":"2024-12-17T06:53:36+00:00","description":"The libvirt can't migrate the virtual machine(domain) it is because the libvirt cannot access the disk image(s). Follow the steps to fix the error.","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/unable-to-allow-access-for-disk-path-in-libvirtd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Unable to allow access for disk path in libvirtd."}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e","name":"Pooja V","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","caption":"Pooja V"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6289"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6289\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}