{"id":5916,"date":"2023-09-22T20:47:04","date_gmt":"2023-09-22T11:47:04","guid":{"rendered":"https:\/\/mimumimu.net\/blog\/?p=5916"},"modified":"2023-09-22T20:47:04","modified_gmt":"2023-09-22T11:47:04","slug":"hyper-v-%e3%81%ae%e7%ac%ac%ef%bc%92%e4%b8%96%e4%bb%a3%e3%81%a7-linux-%e3%81%ae%e8%b5%b7%e5%8b%95%e3%83%ad%e3%82%b0%e3%82%92%e8%bf%bd%e3%81%84%e3%81%8b%e3%81%91%e3%82%8b","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2023\/09\/22\/hyper-v-%e3%81%ae%e7%ac%ac%ef%bc%92%e4%b8%96%e4%bb%a3%e3%81%a7-linux-%e3%81%ae%e8%b5%b7%e5%8b%95%e3%83%ad%e3%82%b0%e3%82%92%e8%bf%bd%e3%81%84%e3%81%8b%e3%81%91%e3%82%8b\/","title":{"rendered":"Hyper-V \u306e\u7b2c\uff12\u4e16\u4ee3\u3067 Linux \u306e\u8d77\u52d5\u30ed\u30b0\u3092\u8ffd\u3044\u304b\u3051\u308b"},"content":{"rendered":"\n<p>\u3069\u3046\u3082\u3001\u307f\u3080\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>Hyper-V \u4e0a\u3067 Linux \u3092\u52d5\u304b\u3059\u304b\u3068\u3084\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c<br>\u5185\u90e8\u3067\u8d77\u52d5\u304c\u30b3\u30b1\u3066\u3057\u307e\u3063\u3066\u3001\u305d\u306e\u8ffd\u8de1\u306b\u3068\u3066\u3082\u6642\u9593\u304c\u639b\u304b\u3063\u305f\u306e\u3067\u305d\u306e\u30e1\u30e2\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"229\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image.png\" alt=\"\" class=\"wp-image-5917\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\uff11\uff0eCOM \u30dd\u30fc\u30c8\u3092\u751f\u3084\u3059<\/h2>\n\n\n\n<p>PowerShell \u3067 &#8220;Set-VMComPort&#8221; \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u751f\u3084\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p>Set-VMComPort (Hyper-V) | Microsoft Learn<br><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/hyper-v\/set-vmcomport\" title=\"\">https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/hyper-v\/set-vmcomport<\/a><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>Set-VMComPort -VMName &quot;Gentoo Linux&quot; -Number 1 -Path \\.\\pipe\\vm_debugcom<\/code><\/pre><\/div>\n\n\n\n<p>-VMName \u306f VM \u540d\u3001 -Number \u306f 1\u3092\u6700\u5c0f\u5024\u3068\u3057\u3066 ttyS0 \u306b\u5f53\u305f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uff12\uff0e COM \u3092\u898b\u308b<\/h2>\n\n\n\n<p>\u624b\u3063\u53d6\u308a\u65e9\u3044\u306e\u304c PuTTY \u3067\u3059\u3002<br>\u7ba1\u7406\u8005\u6a29\u9650\u3067\u8d77\u52d5\u3057\u305f PuTTY \u3067\u3001\u540d\u524d\u4ed8\u304d\u30d1\u30a4\u30d7\u306e\u6587\u5b57\u5217\u3092\u305d\u306e\u307e\u307e\u5165\u529b\u3059\u308b\u3068\u7e4b\u3044\u3067\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"442\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-1.png\" alt=\"\" class=\"wp-image-5918\"\/><\/figure>\n\n\n\n<p>\u305d\u306e\u5f8c\u3001\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306b CONSOLE \u306e\u8a2d\u5b9a\u3092\u5165\u308c\u3066\u8d77\u52d5\u3057\u307e\u3059\u3002<br>\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\uff1a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>linux \/vmlinuz-6.5.4-gentoo console=ttyS0,9600\nboot<\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"868\" height=\"414\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-2.png\" alt=\"\" class=\"wp-image-5919\" srcset=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-2.png 868w, https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-2-768x366.png 768w, https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-2-624x298.png 624w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\uff13\uff0e\u30ed\u30b0\u3092\u773a\u3081\u308b<\/h2>\n\n\n\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u5185\u5bb9\u304c PuTTY \u5074\u306b\u6d41\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-3.png\" alt=\"\" class=\"wp-image-5920\" srcset=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-3.png 661w, https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-3-624x395.png 624w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>\u4eca\u56de\u306e\u5834\u5408\u306f\u3069\u3046\u3084\u3089 &#8220;noxsave&#8221; \u3092\u5165\u308c\u308c\u3070\u6cbb\u308b\u3089\u3057\u3044\u306e\u3067\u3059\u304c\u3001<br>\u6c17\u6301\u3061\u60aa\u3044\u306e\u3067\u539f\u56e0\u8abf\u67fb\u3092\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>&#8220;XSAVE has to be disabled as it is not supported by this module&#8221; \u3068\u3044\u3046\u3053\u3068\u3067\u3001<br>\u3053\u308c\u3067\u691c\u7d22\u3092\u639b\u3051\u3066\u898b\u308b\u3068\u3001\u4e0b\u8a18\u306e\u30d1\u30c3\u30c1\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/lwn.net\/ml\/linux-kernel\/1678386957-18016-3-git-send-email-ssengar@linux.microsoft.com\/\">https:\/\/lwn.net\/ml\/linux-kernel\/1678386957-18016-3-git-send-email-ssengar@linux.microsoft.com\/<\/a><\/p>\n\n\n\n<p>\u30b3\u30fc\u30c9\u3092\u629c\u7c8b\u3059\u308b\u3068\u307e\u3055\u306b\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-c\" data-lang=\"C\"><code>+++ b\/arch\/x86\/hyperv\/hv_vtl.c\n\n+static int __init hv_vtl_early_init(void)\n+{\n+\t\/*\n+\t * `boot_cpu_has` returns the runtime feature support,\n+\t * and here is the earliest it can be used.\n+\t *\/\n+\tif (cpu_feature_enabled(X86_FEATURE_XSAVE))\n+\t\tpanic(&quot;XSAVE has to be disabled as it is not supported by this module.\\n&quot;\n+\t\t\t  &quot;Please add &#39;noxsave&#39; to the kernel command line.\\n&quot;);\n+\n+\treal_mode_header = &hv_vtl_real_mode_header;\n+\tapic-&gt;wakeup_secondary_cpu_64 = hv_vtl_wakeup_secondary_cpu;\n+\n+\treturn 0;\n+}<\/code><\/pre><\/div>\n\n\n\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001 &#8220;Enable Linux to boot in VTL context&#8221; \u3068\u3044\u3046\u9805\u76ee\u3092\u767a\u898b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-4.png\" alt=\"\" class=\"wp-image-5921\" style=\"width:655px;height:289px\" width=\"655\" height=\"289\" srcset=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-4.png 1006w, https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-4-768x339.png 768w, https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2023\/09\/image-4-624x275.png 624w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<p>\u5207\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u7b2c\uff12\u4e16\u4ee3\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u751f\u3084\u3057\u3066\u4e2d\u8eab\u3092\u8ffd\u3044\u304b\u3051\u308b\u8a71\u30fb\u30fb\u3067\u3057\u305f\uff01<br>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u898b\u308c\u3070\u4e00\u6483\u306a\u3093\u3067\u3059\u3051\u3069\u3001\u3053\u3053\u306b\u305f\u3069\u308a\u7740\u304f\u307e\u3067\u306b\u6570\u6642\u9593\u6eb6\u304b\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u307e\u3060\u307e\u3060\u7cbe\u9032\u3057\u307e\u3059\u3001\u3001\u3001\ud83d\udca6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u3001\u307f\u3080\u3089\u3067\u3059\u3002 Hyper-V \u4e0a\u3067 Linux \u3092\u52d5\u304b\u3059\u304b\u3068\u3084\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u5185\u90e8\u3067\u8d77\u52d5\u304c\u30b3\u30b1\u3066\u3057\u307e\u3063\u3066\u3001\u305d\u306e\u8ffd\u8de1\u306b\u3068\u3066\u3082\u6642\u9593\u304c\u639b\u304b\u3063\u305f\u306e\u3067\u305d\u306e\u30e1\u30e2\u3067\u3059\u3002 \uff11\uff0eCOM \u30dd\u30fc\u30c8\u3092\u751f\u3084\u3059 PowerShell \u3067 &#038; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12],"tags":[],"class_list":["post-5916","post","type-post","status-publish","format-standard","hentry","category-unix-linux","category-software"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=5916"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5916\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=5916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=5916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=5916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}