{"id":6307,"date":"2021-04-06T15:53:53","date_gmt":"2021-04-06T10:23:53","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6307"},"modified":"2024-12-11T17:40:57","modified_gmt":"2024-12-11T12:10:57","slug":"libvirt-error","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/libvirt-error\/","title":{"rendered":"Libvirt error: Unable to resolve address error while migrating."},"content":{"rendered":"\n<p>The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host can&#8217;t resolve to the destination IP that leads to migration failure.<\/p>\n\n\n\n<p>As a part of our <a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#036b97\" class=\"has-inline-color\">server management services<\/span><\/a>, we use to handle QEMU guests, libvirt error while migrating. You can take our technical team support for further assistance.<\/p>\n\n\n\n<p><strong>Causes \u2018Libvirt error: Unable to resolve address error.<\/strong><\/p>\n\n\n\n<p>Usually, this type of error caused when QEMU guest migration fails.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># virsh migrate qemu qemu+tcp:\/\/192.168.122.12\/system<\/code><\/pre>\n\n\n\n<p>Error: Unable to resolve address name_of_host service &#8216;49155&#8217;: Name or service not known<\/p>\n\n\n\n<p>For example: If the destination hostname is &#8216;Arizona, the below error will be displayed on the screen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># virsh migrate qemu qemu+tcp:\/\/192.168.122.12\/system<\/code><\/pre>\n\n\n\n<p># virsh migrate qemu qemu+tcp:\/\/192.168.122.12\/system<\/p>\n\n\n\n<p>Error: Unable to resolve address &#8216;arizona&#8217; service &#8216;49155&#8217;: Name or service not known.<\/p>\n\n\n\n<p>This was a quite strange error on the screen, where we didn&#8217;t even use any name that related to Arizona host.<\/p>\n\n\n\n<p><strong>Cause for this error:<\/strong><\/p>\n\n\n\n<p>This can happen if DNS is not properly configured or \/etc\/hosts has the hostname associated with the local loopback address (127.0.0.1).<\/p>\n\n\n\n<p><strong>How to fix \u2018Libvirt error.<\/strong><\/p>\n\n\n\n<p>In order to resolve this error, all you need to do is to configure DNS correctly, so all hosts involved in migration will be able to resolve the error or the hostnames.<\/p>\n\n\n\n<p>If you can&#8217;t able to configure the DNS correctly, you need to add the list of all host used for migration manually to the \/etc\/hosts file on each of the hosts. this will become a difficult task in order to maintain all the list consistently in a dynamic environment. After doing the above configuration if it doesn&#8217;t resolve the hostnames error, then you can use the following virsh command which supports migration.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># virsh migrate qemu qemu+tcp:\/\/192.168.122.12\/system tcp:\/\/192.168.122.12<\/code><\/pre>\n\n\n\n<p>Destination libvirtd will take the tcp:\/\/192.168.122.12 URI and append an automatically generated port number. If this is not desirable, the port number can be specified in the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># virsh migrate qemu qemu+tcp:\/\/192.168.122.12\/system tcp:\/\/192.168.122.12:12345<\/code><\/pre>\n\n\n\n<p>Another option is to use tunneled migration.<\/p>\n\n\n\n<p>Whereas the tunneled migration doesn&#8217;t create a separate connection for the migration data, this connection is used for communication with destination libvirtd:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># virsh migrate qemu qemu+tcp:\/\/192.168.122.12\/system --p2p --tunnelled<\/code><\/pre>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>In brief, fixing &#8216;Libvirt error&#8217; this type of error usually occurs when the source host can&#8217;t resolve to the destination IP that leads to migration failure. Need some expert support, have a conversation with our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#006c9b\" class=\"has-inline-color\">technical support team<\/span><\/a> to fix Libvirt error on your behalf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host can&#8217;t resolve to the destination IP that leads to migration failure. As a part of our server management services, we use to handle QEMU guests, libvirt error while [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305,295,296,306,68],"tags":[308],"class_list":["post-6307","post","type-post","status-publish","format-standard","hentry","category-dns","category-libvirtd","category-migration","category-qemu","category-server-management","tag-libvirterror"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Libvirt error: Unable to resolve address error while migrating<\/title>\n<meta name=\"description\" content=\"The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host\" \/>\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\/libvirt-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Libvirt error: Unable to resolve address error while migrating.\" \/>\n<meta property=\"og:description\" content=\"The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/libvirt-error\/\" \/>\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-04-06T10:23:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-11T12:10:57+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\\\/libvirt-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/\"},\"author\":{\"name\":\"Pooja V\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\"},\"headline\":\"Libvirt error: Unable to resolve address error while migrating.\",\"datePublished\":\"2021-04-06T10:23:53+00:00\",\"dateModified\":\"2024-12-11T12:10:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/\"},\"wordCount\":408,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"libvirterror\"],\"articleSection\":[\"DNS\",\"libvirtd\",\"migration\",\"QEMU\",\"server management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/\",\"name\":\"Libvirt error: Unable to resolve address error while migrating\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-04-06T10:23:53+00:00\",\"dateModified\":\"2024-12-11T12:10:57+00:00\",\"description\":\"The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/libvirt-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Libvirt error: Unable to resolve address error while migrating.\"}]},{\"@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":"Libvirt error: Unable to resolve address error while migrating","description":"The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host","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\/libvirt-error\/","og_locale":"en_US","og_type":"article","og_title":"Libvirt error: Unable to resolve address error while migrating.","og_description":"The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host","og_url":"https:\/\/www.skynats.com\/blog\/libvirt-error\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-04-06T10:23:53+00:00","article_modified_time":"2024-12-11T12:10:57+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\/libvirt-error\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/libvirt-error\/"},"author":{"name":"Pooja V","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e"},"headline":"Libvirt error: Unable to resolve address error while migrating.","datePublished":"2021-04-06T10:23:53+00:00","dateModified":"2024-12-11T12:10:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/libvirt-error\/"},"wordCount":408,"commentCount":0,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["libvirterror"],"articleSection":["DNS","libvirtd","migration","QEMU","server management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.skynats.com\/blog\/libvirt-error\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/libvirt-error\/","url":"https:\/\/www.skynats.com\/blog\/libvirt-error\/","name":"Libvirt error: Unable to resolve address error while migrating","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-04-06T10:23:53+00:00","dateModified":"2024-12-11T12:10:57+00:00","description":"The QEMU quest end user is to end up with a pop-up error message while migrating. Such a type of error usually occurs when the source host","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/libvirt-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/libvirt-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/libvirt-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Libvirt error: Unable to resolve address error while migrating."}]},{"@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\/6307","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=6307"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6307\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}