{"id":4203,"date":"2024-11-02T07:07:16","date_gmt":"2024-11-01T22:07:16","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=4203"},"modified":"2024-11-02T07:07:17","modified_gmt":"2024-11-01T22:07:17","slug":"enable-serial-on-openbsd-7-6-on-linux-virt-manager","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2024\/11\/02\/enable-serial-on-openbsd-7-6-on-linux-virt-manager\/","title":{"rendered":"Linux Virt-Manager\u4e0a\u306eOpenBSD 7.6\u3067serial\u3092\u6709\u52b9\u306b"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7 3h10v2h2v3h-3v6H8V8H5V5h2zm10 6h2v5h-2zm-6 6h2v7h-2zM5 9h2v5H5z\"><\/path><\/svg><!-- https:\/\/icon-sets.iconify.design\/mdi\/serial-port\/ --><\/p>\n<div class=\"paragraph\">\n<p>OpenBSD 7.6 amd64\u3092Linux\u306eVirt-Manager\u4e0a\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\uff0eserial\u3092\u6709\u52b9\u306b\u3057\u3066host\u304b\u3089virsh console\u3067\u7e4b\u3052\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>\u521d\u671f\u72b6\u614b\u3067\u306f\u30c7\u30a3\u30b9\u30af\u6697\u53f7\u5316\u306e\u30a2\u30f3\u30ed\u30c3\u30af\u3084boot\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u898b\u3048\u307e\u3059\uff0eboot\u30d7\u30ed\u30f3\u30d7\u30c8\u3067serial\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u6bce\u56de\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u9762\u5012\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u3061\u3089\u306eFAQ\u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/www.openbsd.org\/faq\/faq7.html#SerCon\">OpenBSD FAQ: Keyboard and Display Controls<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_\u30d6\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9\u3092serial\u3078amd64i386\">\u30d6\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9\u3092serial\u3078(amd64\/i386)<\/h2>\n<div class=\"sectionbody\">\n<div class=\"listingblock\">\n<div class=\"title\"><code>\/etc\/boot.conf<\/code> \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18<\/div>\n<div class=\"content\">\n<pre>set tty com0<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_\u30ed\u30b0\u30a4\u30f3\u30d7\u30ed\u30f3\u30d7\u30c8\u4ee5\u964d\u306eserial\u5bfe\u5fdc\">\u30ed\u30b0\u30a4\u30f3\u30d7\u30ed\u30f3\u30d7\u30c8\u4ee5\u964d\u306eserial\u5bfe\u5fdc<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p><code>\/etc\/ttys<\/code> \u3092\u7de8\u96c6\u3057\u3066\uff0c <code>tty00<\/code> \u304b\u3089\u306e\u884c\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u66f8\u304d\u63db\u3048\u524d<\/div>\n<div class=\"content\">\n<pre>tty00   \"\/usr\/libexec\/getty std.9600\"   unknown off<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u66f8\u304d\u63db\u3048\u5f8c<\/div>\n<div class=\"content\">\n<pre>tty00   \"\/usr\/libexec\/getty std.9600\"   vt220   on  secure<\/pre>\n<\/div>\n<\/div>\n<div class=\"admonitionblock note\">\n<table  class=\" table table-hover\" >\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Note<\/div>\n<\/td>\n<td class=\"content\">\n9600\u90e8\u5206\u306fserial\u901f\u5ea6\u3067\uff0c115200\u3067\u3082\u52d5\u4f5c\u3057\u307e\u3057\u305f\uff0e\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u308c\u3067\u6b21\u56de\u4ee5\u964dserial\u304c\u6709\u52b9\u306b\u306a\u308a\uff0cvirsh console\u3067\u63a5\u7d9a\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ virsh console openbsd7.6\nConnected to domain 'openbsd7.6'\nEscape character is ^] (Ctrl + ])\nprobing: pc0 com0 mem[640K 239M 8M 548K 3M 176K]\ndisk: hd0 sr0*\n&gt;&gt; OpenBSD\/amd64 BOOTX64 3.67\nPassphrase:\n&gt;&gt; OpenBSD\/amd64 BOOTX64 3.67\nboot&gt;\nbooting sr0a:\/bsd: 19916757+4318224+413632+0+1236992 [1541351+128+1395768+1092498]=0x1c89138\nentry point at 0x1001000\n[ using 4030776 bytes of bsd ELF symbol table ]\nCopyright (c) 1982, 1986, 1989, 1991, 1993\n        The Regents of the University of California.  All rights reserved.\nCopyright (c) 1995-2024 OpenBSD. All rights reserved.  https:\/\/www.OpenBSD.org\n\nOpenBSD 7.6 (GENERIC) #332: Mon Sep 30 08:45:17 MDT 2024\n    deraadt@amd64.openbsd.org:\/usr\/src\/sys\/arch\/amd64\/compile\/GENERIC\n  : (\u4e2d\u7565)\nSat Nov  2 06:52:42 JST 2024\n\nOpenBSD\/amd64 (fugu.my.domain) (tty00)\n\nlogin: matoken\nPassword:\nLast login: Sat Nov  2 06:28:00 on tty00\nOpenBSD 7.6 (GENERIC) #332: Mon Sep 30 08:45:17 MDT 2024\n\nWelcome to OpenBSD: The proactively secure Unix-like operating system.\n\nPlease use the sendbug(1) utility to report bugs in the system.\nBefore reporting a bug, please try to reproduce it with the latest\nversion of the code.  With bug reports, please try to ensure that\nenough information to reproduce the problem is enclosed, and if a\nknown fix for it exists, include that as well.\n\nYou have new mail.\nfugu$ neofetch                                                                                              _    matoken@fugu.my.domain\n                                    (_)   ----------------------\n              |    .                      OS: OpenBSD 7.6 amd64\n          .   |L  \/|   .          _       Host: QEMU Standard PC (i440\n      _ . |\\ _| \\--+._\/| .       (_)      Uptime: 1 min\n     \/ ||\\| Y J  )   \/ |\/| .\/             Packages: 44 (pkg_info)\n    J  |)'( |        ` F`.'\/        _     Shell: ksh v5.2.14 99\/07\/13.\n  -&lt;|  F         __     .-&lt;        (_)    Terminal: \/dev\/tty00\n    | \/       .-'. `.  \/-. L___           CPU: Intel i7-10510U (1) @ 1\n    J \\      &lt;    \\  | | O\\|.-'  _        Memory: 60MiB \/ 224MiB\n  _J \\  .-    \\\/ O | | \\  |F    (_)\n '-F  -&lt;_.     \\   .-'  `-' L__\n__J  _   _.     &gt;-'  )._.   |-'\n `-|.'   \/_.          \\_|   F\n  \/.-   .                _.&lt;\n \/'    \/.'             .'  `\\\n  \/L  \/'   |\/      _.-'-\\\n \/'J       ___.---'\\|\n   |\\  .--' V  | `. `\n   |\/`. `-.     `._)\n      \/ .-.\\\n      \\ (  `\\\n       `.\\\n\nfugu$<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30db\u30b9\u30c8\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W virt-manager libvirt-clients libvirt-daemon qemu-user qemu-system-x86\nlibvirt-clients 10.8.0-1\nlibvirt-daemon  10.8.0-1\nqemu-system-x86 1:9.1.1+ds-2\nqemu-user       1:9.1.1+ds-2\nvirt-manager    1:4.1.0-4\n$ \/sbin\/modinfo kvm_intel | head -1\nfilename:       \/lib\/modules\/6.11.5-amd64\/kernel\/arch\/x86\/kvm\/kvm-intel.ko.xz\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux trixie\/sid\nRelease:        n\/a\n$ arch\nx86_64<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenBSD 7.6 amd64\u3092Linux\u306eVirt-Manager\u4e0a\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\uff0eserial\u3092\u6709\u52b9\u306b\u3057\u3066host\u304b\u3089virsh console\u3067\u7e4b\u3052\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/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":[1126,410,1122,310,1127,1123],"class_list":["post-4203","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-1126","tag-kvm","tag-openbsd","tag-qemu","tag-serial","tag-virt-manager"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4203","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=4203"}],"version-history":[{"count":2,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4203\/revisions"}],"predecessor-version":[{"id":4205,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4203\/revisions\/4205"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=4203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=4203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=4203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}