{"id":42279,"date":"2023-06-06T03:29:04","date_gmt":"2023-02-09T03:43:55","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/"},"modified":"2024-04-30T07:30:40","modified_gmt":"2024-04-29T23:30:40","slug":"%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/","title":{"rendered":"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.)"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u6211\u8ba4\u4e3a\u4e3a\u4e86\u5728\u672c\u5730\u73af\u5883\u8fdb\u884c\u6d4b\u8bd5\uff0c\u9700\u8981\u5728Hyper-V\u4e0a\u6784\u5efa\u73af\u5883\u3002<\/p>\n<p>\u4f7f\u7528Ansible\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\uff0c\u8fd9\u662f\u4f17\u6240\u5468\u77e5\u7684\u4e8b\u5b9e\uff0c\u4f46\u5728Windows\u4e0a\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u901a\u8fc7\u67d0\u79cd\u65b9\u5f0f\u521b\u5efa\u865a\u62df\u673a\u5e76\u5728\u5176\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<p>\u8fd9\u6b21\u8981\u5728Windows 10\u4e2d\u7684SubSystem for Linux\u4e0a\u7684Ubuntu\u5b89\u88c5Ansible\uff0c\u6765\u8fdb\u884cHyper-V\u4e0a\u7684CentOS\u7684\u914d\u7f6e\u7ba1\u7406\u3002<\/p>\n<h1>\u51c6\u5907\u865a\u62df\u673a<\/h1>\n<p>\u5982\u679c\u60a8\u60f3\u5728Hyper-V\u4e0a\u590d\u5236\u865a\u62df\u673a\uff0c\u8bf7\u53c2\u8003\u4e0a\u4e00\u7bc7\u6587\u7ae0\u3002\u672c\u6b21\uff0c\u6211\u4eec\u51c6\u5907\u4e86\u4e09\u53f0\u673a\u5668\u5728Hyper-V\u4e0a\uff0c\u5e76\u540c\u65f6\u8fdb\u884c\u5168\u90e8\u73af\u5883\u7684\u521d\u6b65\u914d\u7f6e\u3002<\/p>\n<h1>\u5728Linux\u5b50\u7cfb\u7edf\u4e0a\u5b89\u88c5Ansible<\/h1>\n<p>\u5df2\u7ecf\u5047\u8bbeUbuntu\u7684Linux\u5b50\u7cfb\u7edf\u5df2\u7ecf\u4eceStore\u4e2d\u5b89\u88c5\u597d\u3002<br \/>\n\u6309\u7167Ansible\u5b98\u65b9\u6307\u5357\u6267\u884c\u64cd\u4f5c\u3002<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>apt-get update\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>apt-get <span class=\"nb\">install <\/span>software-properties-common\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>apt-add-repository ppa:ansible\/ansible\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>apt-get update\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>apt-get <span class=\"nb\">install <\/span>ansible\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>ansible <span class=\"nt\">--version<\/span>\r\nansible 2.4.2.0\r\n  config file <span class=\"o\">=<\/span> \/etc\/ansible\/ansible.cfg\r\n  configured module search path <span class=\"o\">=<\/span> <span class=\"o\">[<\/span>u<span class=\"s1\">'\/.ansible\/plugins\/modules'<\/span>, u<span class=\"s1\">'\/usr\/share\/ansible\/plugins\/modules'<\/span><span class=\"o\">]<\/span>\r\n  ansible python module location <span class=\"o\">=<\/span> \/usr\/lib\/python2.7\/dist-packages\/ansible\r\n  executable location <span class=\"o\">=<\/span> \/usr\/bin\/ansible\r\n  python version <span class=\"o\">=<\/span> 2.7.12 <span class=\"o\">(<\/span>default, Nov 20 2017, 18:23:56<span class=\"o\">)<\/span> <span class=\"o\">[<\/span>GCC 5.4.0 20160609]\r\n<\/code><\/pre>\n<h1>\u5c06\u79c1\u94a5\u5b89\u88c5\u5230\u865a\u62df\u673a\u4e0a\u3002<\/h1>\n<p>\u5728Linux\u7684Bash\u5b50\u7cfb\u7edf\u4e2d\u521b\u5efa\u79d8\u5bc6\u94a5\u5319\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>sshkey-gen\r\n&lt;\u51fa\u3066\u304d\u305f\u6587\u8a00\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5165\u529b&gt;\r\n<\/code><\/pre>\n<p>\u5c06\u5185\u5bb9\u5206\u53d1\u7ed9\u6bcf\u4e2a\u865a\u62df\u673a\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>ssh-copy-id root@&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;\r\n<\/code><\/pre>\n<h1>\u8fdb\u884c\u5bf9Ansbile\u7684\u64cd\u4f5c\u9a8c\u8bc1<\/h1>\n<p>\u8bd5\u7740\u5bf9\u6bcf\u53f0\u865a\u62df\u673a\u6267\u884cPING\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>ansible \uff1c\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\uff1e <span class=\"nt\">-m<\/span> ping\r\n <span class=\"o\">[<\/span>WARNING]: Could not match supplied host pattern, ignoring: all\r\n\r\n <span class=\"o\">[<\/span>WARNING]: provided hosts list is empty, only localhost is available\r\n\r\n <span class=\"o\">[<\/span>WARNING]: Could not match supplied host pattern, ignoring: \uff1c\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\uff1e\r\n\r\n <span class=\"o\">[<\/span>WARNING]: No hosts matched, nothing to <span class=\"k\">do<\/span>\r\n<\/code><\/pre>\n<p>\u6839\u636e\u8fd9\u7bc7\u6587\u7ae0\u53c2\u8003\uff0c\u5728\u6b64\u6267\u884c\u4ee5\u4e0b\u914d\u7f6e\uff0c\u51fa\u73b0\u9519\u8bef\u5bfc\u81f4Ping\u65e0\u6cd5\u8f93\u51fa\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">mkdir <\/span>ansible\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">cd <\/span>ansible\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">cp<\/span> \/etc\/ansible\/ansible.cfg .\/\r\n<span class=\"nv\">$ <\/span>vi ansible.cfg\r\n<span class=\"nt\">---<\/span>\r\n<span class=\"c\">#inventory      = \/etc\/ansible\/hosts<\/span>\r\n  \u2193\r\n<span class=\"c\">#inventory      = .\/hosts<\/span>\r\n<span class=\"nt\">---<\/span>\r\n<span class=\"nv\">$ <\/span>vi hosts\r\n<span class=\"nt\">---<\/span>\r\n<span class=\"o\">[<\/span>VM]\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;\r\n<span class=\"nt\">---<\/span>\r\n<\/code><\/pre>\n<p>\u5f53\u6211\u518d\u6b21\u6267\u884cAnsible\u547d\u4ee4\u65f6\uff0c\u8fd9\u6b21\u51fa\u73b0\u4e86\u4e0d\u540c\u7684\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>ansible &lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; <span class=\"nt\">-m<\/span> ping\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; | UNREACHABLE! <span class=\"o\">=&gt;<\/span> <span class=\"o\">{<\/span>\r\n    <span class=\"s2\">\"changed\"<\/span>: <span class=\"nb\">false<\/span>,\r\n    <span class=\"s2\">\"msg\"<\/span>: <span class=\"s2\">\"Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).<\/span><span class=\"se\">\\r\\n<\/span><span class=\"s2\">\"<\/span>,\r\n    <span class=\"s2\">\"unreachable\"<\/span>: <span class=\"nb\">true<\/span>\r\n<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u52a0\u4e0a\u8c03\u67e5\u9009\u9879\u6267\u884c\u540e\u53d1\u73b0\uff0c\u7528\u6237\u540d\u6ca1\u6709\u88ab\u6b63\u786e\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>ansible \uff1c\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\uff1e <span class=\"nt\">-m<\/span> ping <span class=\"nt\">-vvv<\/span>\r\nansible 2.4.2.0\r\n  config file <span class=\"o\">=<\/span> \/ansible\/ansible.cfg\r\n  configured module search path <span class=\"o\">=<\/span> <span class=\"o\">[<\/span>u<span class=\"s1\">'\/.ansible\/plugins\/modules'<\/span>, u<span class=\"s1\">'\/usr\/share\/ansible\/plugins\/modules'<\/span><span class=\"o\">]<\/span>\r\n  ansible python module location <span class=\"o\">=<\/span> \/usr\/lib\/python2.7\/dist-packages\/ansible\r\n  executable location <span class=\"o\">=<\/span> \/usr\/bin\/ansible\r\n  python version <span class=\"o\">=<\/span> 2.7.12 <span class=\"o\">(<\/span>default, Nov 20 2017, 18:23:56<span class=\"o\">)<\/span> <span class=\"o\">[<\/span>GCC 5.4.0 20160609]\r\nUsing \/ansible\/ansible.cfg as config file\r\nParsed \/ansible\/hosts inventory <span class=\"nb\">source <\/span>with ini plugin\r\nMETA: ran handlers\r\nUsing module file \/usr\/lib\/python2.7\/dist-packages\/ansible\/modules\/system\/ping.py\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; ESTABLISH SSH CONNECTION FOR USER: None\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; SSH: EXEC ssh <span class=\"nt\">-C<\/span> <span class=\"nt\">-o<\/span> <span class=\"nv\">ControlMaster<\/span><span class=\"o\">=<\/span>auto <span class=\"nt\">-o<\/span> <span class=\"nv\">ControlPersist<\/span><span class=\"o\">=<\/span>60s <span class=\"nt\">-o<\/span> <span class=\"nv\">KbdInteractiveAuthentication<\/span><span class=\"o\">=<\/span>no <span class=\"nt\">-o<\/span> <span class=\"nv\">PreferredAuthentications<\/span><span class=\"o\">=<\/span>gssapi-with-mic,gssapi-keyex,hostbased,publickey <span class=\"nt\">-o<\/span> <span class=\"nv\">PasswordAuthentication<\/span><span class=\"o\">=<\/span>no <span class=\"nt\">-o<\/span> <span class=\"nv\">ConnectTimeout<\/span><span class=\"o\">=<\/span>10 <span class=\"nt\">-o<\/span> <span class=\"nv\">ControlPath<\/span><span class=\"o\">=<\/span>.ansible\/cp\/a843a8612c \u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9 <span class=\"s1\">'\/bin\/sh -c '<\/span><span class=\"s2\">\"'\"<\/span><span class=\"s1\">'echo ~ &amp;&amp; sleep 0'<\/span><span class=\"s2\">\"'\"<\/span><span class=\"s1\">''<\/span>\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; <span class=\"o\">(<\/span>255, <span class=\"s1\">''<\/span>, <span class=\"s1\">'Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\\r\\n'<\/span><span class=\"o\">)<\/span>\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; | UNREACHABLE! <span class=\"o\">=&gt;<\/span> <span class=\"o\">{<\/span>\r\n    <span class=\"s2\">\"changed\"<\/span>: <span class=\"nb\">false<\/span>,\r\n    <span class=\"s2\">\"msg\"<\/span>: <span class=\"s2\">\"Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).<\/span><span class=\"se\">\\r\\n<\/span><span class=\"s2\">\"<\/span>,\r\n    <span class=\"s2\">\"unreachable\"<\/span>: <span class=\"nb\">true<\/span>\r\n<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<p>\u6211\u5df2\u7ecf\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u4fee\u6539\u4e86hosts\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; ansible_user=root\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u91cc\uff0c\u7ed3\u679c\u5c06\u4f1a\u8fd4\u8fd8\u8fc7\u6765\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ansible &lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; -m ping\r\n&lt;\u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9&gt; | SUCCESS =&gt; {\r\n    \"changed\": false,\r\n    \"ping\": \"pong\"\r\n}\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4e0d\u987a\u5229\u7684\u8bdd\uff0c\u9700\u8981\u91cd\u65b0\u68c0\u67e5\u8bbe\u7f6e\u6587\u4ef6\u3002<br \/>\n\uff08\u4f5c\u8005\u5728hosts\u6587\u4ef6\u4e2d\u7684ansible_user=root\u7684=\u53f7\u524d\u540e\u52a0\u5165\u4e86\u7a7a\u683c\uff0c\u5bfc\u81f4\u65e0\u6cd5\u6b63\u786e\u89e3\u6790\u7684\u9519\u8bef\u51fa\u73b0\uff09<\/p>\n<h1>\u8bf7\u53c2\u9605<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Ansible 1.9\u4ee5\u964d\u306eansible.cfg\u3067hostfile\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u6012\u3089\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Failed to connect to the host via ssh: Permission denied (publickey,password) #19584<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6211\u8ba4\u4e3a\u4e3a\u4e86\u5728\u672c\u5730\u73af\u5883\u8fdb\u884c\u6d4b\u8bd5\uff0c\u9700\u8981\u5728Hyper-V\u4e0a\u6784\u5efa\u73af\u5883\u3002 \u4f7f\u7528Ansible\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\uff0c\u8fd9\u662f\u4f17\u6240 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42279","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.) - Blog - Silicon Cloud<\/title>\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.silicloud.com\/zh\/blog\/\u5728linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7ansible\u8fde\u63a5\u5230hyper-v\u4e0a\u7684linux\u3002please-note-that-paraphrasing-can-lead-to-poten\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.)\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6211\u8ba4\u4e3a\u4e3a\u4e86\u5728\u672c\u5730\u73af\u5883\u8fdb\u884c\u6d4b\u8bd5\uff0c\u9700\u8981\u5728Hyper-V\u4e0a\u6784\u5efa\u73af\u5883\u3002 \u4f7f\u7528Ansible\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\uff0c\u8fd9\u662f\u4f17\u6240 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7ansible\u8fde\u63a5\u5230hyper-v\u4e0a\u7684linux\u3002please-note-that-paraphrasing-can-lead-to-poten\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-09T03:43:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T23:30:40+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/\",\"name\":\"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.) - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-09T03:43:55+00:00\",\"dateModified\":\"2024-04-29T23:30:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.) - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u5728linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7ansible\u8fde\u63a5\u5230hyper-v\u4e0a\u7684linux\u3002please-note-that-paraphrasing-can-lead-to-poten\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.)","og_description":"\u9996\u5148 \u6211\u8ba4\u4e3a\u4e3a\u4e86\u5728\u672c\u5730\u73af\u5883\u8fdb\u884c\u6d4b\u8bd5\uff0c\u9700\u8981\u5728Hyper-V\u4e0a\u6784\u5efa\u73af\u5883\u3002 \u4f7f\u7528Ansible\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\uff0c\u8fd9\u662f\u4f17\u6240 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7ansible\u8fde\u63a5\u5230hyper-v\u4e0a\u7684linux\u3002please-note-that-paraphrasing-can-lead-to-poten\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-09T03:43:55+00:00","article_modified_time":"2024-04-29T23:30:40+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/","name":"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.) - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-09T03:43:55+00:00","dateModified":"2024-04-29T23:30:40+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Linux\u4e0a\u7684\u5b50\u7cfb\u7edf\u901a\u8fc7Ansible\u8fde\u63a5\u5230Hyper-V\u4e0a\u7684Linux\u3002(Please note that paraphrasing can lead to potential loss of information or nuances in the original sentence.)"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e5%ad%90%e7%b3%bb%e7%bb%9f%e9%80%9a%e8%bf%87ansible%e8%bf%9e%e6%8e%a5%e5%88%b0hyper-v%e4%b8%8a%e7%9a%84linux%e3%80%82please-note-that-paraphrasing-can-lead-to-poten\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42279"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42279\/revisions"}],"predecessor-version":[{"id":90544,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42279\/revisions\/90544"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}