{"id":5486,"date":"2026-05-26T07:16:34","date_gmt":"2026-05-25T22:16:34","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=5486"},"modified":"2026-05-26T07:18:04","modified_gmt":"2026-05-25T22:18:04","slug":"virsh-console-console-connection-failed","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2026\/05\/26\/virsh-console-console-connection-failed\/","title":{"rendered":"virsh console\u3067\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<div class=\"imageblock\">\n<div class=\"content\">\n<img decoding=\"async\" src=\"https:\/\/matoken.org\/blog\/wp-content\/uploads\/2026\/05\/virt-manager.png\" alt=\"virt manager\">\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>virsh console\u30b3\u30de\u30f3\u30c9\u3067vm\u306b\u7e4b\u304c\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ virsh console openbsd7.9\nerror: operation failed: Active console session exists for this domain<\/pre>\n<\/div>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u691c\u7d22\u3057\u3066daemon\u3092\u518d\u8d77\u52d5\u3057\u305f\u308a\uff0chost\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u99c4\u76ee\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/gunshot.hatenablog.com\/entry\/20191202\/1575212400\">error: \u64cd\u4f5c\u306f\u5931\u6557\u3057\u307e\u3057\u305f: \u4f7f\u7528\u4e2d\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u3053\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u5bfe\u3057\u3066\u5b58\u5728\u3057\u307e\u3059 &#8211; \u9593\u9055\u3044\u3060\u3089\u3051\u306e\u5099\u5fd8\u9332<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>virsh\u306eman\u3092\u898b\u308b\u3068\u3053\u3093\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\uff0e<\/p>\n<\/div>\n<div class=\"quoteblock\">\n<blockquote>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>Option\u2010ally the --force flag may be specified, requesting to disconnect any existing sessions, such as in a case of a broken connection.<\/pre>\n<\/div>\n<\/div>\n<\/blockquote>\n<div class=\"attribution\">\n&#8212; `man 1 virsh`\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><code>--force<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3092\u4ed8\u3051\u308b\u3068\u7e4b\u304c\u308a\uff0c\u4e00\u5ea6\u7e4b\u304c\u308b\u3068 <code>--force<\/code> \u7121\u3057\u3067\u3082\u7e4b\u304c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ virsh console openbsd7.9 --force\nConnected to domain 'openbsd7.9'\nEscape character is ^] (Ctrl + ])\n^]\n$ virsh console openbsd7.9\nConnected to domain 'openbsd7.9'\nEscape character is ^] (Ctrl + ])\n\nfugu$ pfetch\n      _____       matoken@fugu.matoken.org\n    \\-     -\/     os     OpenBSD 7.9\n \\_\/         \\    host   pc-i440fx-9.1\n |        O O |   uptime 1h 56m\n |_  &lt;   )  3 )   pkgs   117\n \/ \\         \/    memory 169M \/ 989M\n    \/-_____-\\\n\nfugu$<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u6050\u3089\u304f\u96fb\u6c60\u5207\u308c\u3067\u30db\u30b9\u30c8\u306eOS\u304c\u5f37\u5236\u7d42\u4e86\u3057\u305f\u3068\u304d\u306b\u65e2\u5b58\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u304c\u6b8b\u3063\u3066\u3057\u307e\u3044\u4eca\u56de\u306e\u3088\u3046\u306a\u72b6\u614b\u306b\u306a\u3063\u305f\u306e\u3060\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W libvirt-clients libvirt-daemon\nlibvirt-clients 12.3.0-1\nlibvirt-daemon  12.3.0-1\n$ uname -rm\n7.0.9+deb14-amd64 x86_64\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux forky\/sid\nRelease:        n\/a\n$ arch\nx86_64<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>virsh console\u30b3\u30de\u30f3\u30c9\u3067vm\u306b\u7e4b\u304c\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e $ virsh console openbsd7.9 error: operation failed: Active console session ex [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[7,6,199],"tags":[1279,1123],"class_list":["post-5486","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-virsh","tag-virt-manager"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=5486"}],"version-history":[{"count":3,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5486\/revisions"}],"predecessor-version":[{"id":5492,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5486\/revisions\/5492"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=5486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=5486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=5486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}