{"id":919,"date":"2021-09-11T09:58:02","date_gmt":"2021-09-11T00:58:02","guid":{"rendered":"https:\/\/t-office.blue\/?p=919"},"modified":"2021-09-13T07:12:37","modified_gmt":"2021-09-12T22:12:37","slug":"post-919","status":"publish","type":"post","link":"https:\/\/wp.t-office.blue\/?p=919","title":{"rendered":"WordPress\u79fb\u884c\u306e\u65b9\u5411\u6027(Ubuntu, Ansible, UTM)\uff13"},"content":{"rendered":"\n\uff12\u56de\u3081\u306e\u8a18\u4e8b\u306e\u6700\u5f8c\u306b\u8a18\u8f09\u3057\u305f\u304c\u3001m1Mac\u3067\u306fUTM\u3068\u3044\u3046\u30a2\u30d7\u30ea\u3067\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3067\u3053\u3061\u3089\u306b\u65b9\u91dd\u3092\u5909\u3048\u3066\u52e7\u3081\u3066\u3044\u304f\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">UTM\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n\n\u4ee5\u4e0b\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308c\u3070\u7121\u6599\u3067\u4f7f\u3048\u308b\u3002AppStore\u7248\u306f\u6709\u6599\u3067\u81ea\u52d5\u3067\u66f4\u65b0\u3057\u3066\u304f\u308c\u308b\u3089\u3057\u3044\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u7121\u6599\u7248\u3067\u3059\u3059\u3081\u308b\u3002\n\n\n\n<a href=\"https:\/\/mac.getutm.app\/\">https:\/\/mac.getutm.app\/<\/a>\n\n\n\ndmg\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3068UTM.app\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3066\u304a\u304f\u3002\n\n\n\n\u5408\u308f\u305b\u3066\u3001Ubuntu\u30b5\u30fc\u30d0\u30fc\u7248\u3082\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\n\n\n\n<a href=\"https:\/\/ubuntu.com\/download\/server\/arm\">https:\/\/ubuntu.com\/download\/server\/arm<\/a>\n\n\n\n\u4e0a\u8a18\u306b\u3042\u308b\u65e5\u672c\u306eUbuntu\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u7248\u30d0\u30fc\u30b8\u30e7\u30f320.04\u306eISO\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002ubuntu\u306e\u201dARM\u201d\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002\u6700\u521damd\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u304f\u308a\u3001\u7406\u7531\u304c\u308f\u304b\u3089\u305aMac\u3092\u518d\u8d77\u52d5\u3057\u305f\u308a\u8272\u3005\u30b0\u30b0\u3063\u305f\u308a\u6642\u9593\u3092\u6d6a\u8cbb\u3057\u305f(\u6c57)\n\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n\n\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u5148\u3092\u53c2\u7167\u306bUbuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-\u30aa\u30ea\u30b8\u30ca\u30eb\u30b2\u30fc\u30e0-com wp-block-embed-\u30aa\u30ea\u30b8\u30ca\u30eb\u30b2\u30fc\u30e0-com\">\n\n<div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"GiclAiMxSJ\"><a href=\"https:\/\/original-game.com\/how-to-install-ubuntu-on-m1-mac\/\">UTM\u3067M1 Mac\u306bUbuntu\u306e\u4eee\u60f3\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3088\u3046\uff01<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;UTM\u3067M1 Mac\u306bUbuntu\u306e\u4eee\u60f3\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3088\u3046\uff01&#8221; &#8212; \u30aa\u30ea\u30b8\u30ca\u30eb\u30b2\u30fc\u30e0.com\" src=\"https:\/\/original-game.com\/how-to-install-ubuntu-on-m1-mac\/embed\/#?secret=q0hoj9RZAo#?secret=GiclAiMxSJ\" data-secret=\"GiclAiMxSJ\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div>\n\n<\/figure>\n\n\n\n\n<h2 class=\"wp-block-heading\">UTM\u306e\u8a2d\u5b9a\u3067\u666e\u901aNetWork\u306e\u8a2d\u5b9a\u3067\u30a8\u30e9\u30fc<\/h2>\n\n\n\n\nUTM\u306bubuntu\u306eiso\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u9032\u3081\u306a\u3044\u3002<br>\u7406\u7531\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a\u3060\u3051\u308c\u3069\u3082\u3001\u3046\u3061\u306e\u74b0\u5883\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002\u3069\u3046\u3059\u308c\u3070\u884c\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u8a2d\u5b9a\u306e[Network]\u30bf\u30d6\u306e\u4e2d\u306b\u3042\u308bNetwork mode\u304cShared Network\u3060\u3063\u305f\u306e\u3092Bridged(Advanced)\u306b\u5909\u66f4\u3059\u308b\u3002\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u30cd\u30c3\u30c8\u63a5\u7d9a\u3082\u884c\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u3002\n\n\n\n\u3053\u306e\u5185\u5bb9\u304c\u3069\u3053\u306b\u3082\u51fa\u3066\u3044\u306a\u3044\u306e\u3067\u7d50\u69cb\u60a9\u3093\u3060\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Ansible\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n\nM1 Mac \u3078\u306eansible\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u305d\u308c\u307b\u3069\u96e3\u3057\u304f\u306a\u3044\u3002\n\n\n\n$ brew install ansible\n\n\n\n\u3060\u3051\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\n\n\n\n$ ansible &#8211;version<br>       ansible [core 2.11.4]\n\n\n\n\u73fe\u5728\u306f\u30d0\u30fc\u30b8\u30e7\u30f32.11.4\u3067\u3059\u3002(2021\/9\/13\u73fe\u5728)\n\n\n\n\n<h2 class=\"wp-block-heading\">ansible.cfg\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n\n\n\n\n\n<pre class=\"wp-block-preformatted\">$ wget https:\/\/raw.githubusercontent.com\/ansible\/ansible\/devel\/examples\/ansible.cfg<\/pre>\n\n\n\n\nwget\u304c\u306a\u3051\u308c\u3070,brew install wget\u306a\u3069\u3067\u3002\u6b21\u306bhosts\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\n\n\n\n\n<h2 class=\"wp-block-heading\">hosts\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h2>\n\n\n\n\n\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u63a5\u7d9a\u5148\u30b5\u30fc\u30d0\u30fc\u306b\u306a\u308b\u3002\u3053\u3053\u3067\u306fUTM\u306eubuntu\n\n\n\n\n<pre class=\"wp-block-preformatted\">[localhost]\n192.168.*.*  ansible_connection=ssh ansible_ssh_user=&lt;username> ansible_password=&lt;password>\n\u203b *\u306fip\u30a2\u30c9\u30ec\u30b9\u3092\u8abf\u3079\u3066\u5165\u529b\u3002&lt;username>&lt;password>\u306f\u305d\u308c\u305e\u308cubuntu\u306b\u8a2d\u5b9a\u3057\u305f\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b<\/pre>\n\n\n\n\n$ ansible all -m ping\n\n\n\n\u3053\u308c\u3067\u63a5\u7d9a\u3067\u304d\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3002m1 mac\u6c11\u306f\u307e\u3060\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306f\u305a\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Ansible\u3092\u5b9f\u884c\u3059\u308b\u3068\u30b3\u30b1\u308b(sshpass\u304cm1mac\u306b\u5bfe\u5fdc\u3057\u3066\u306a\u3044)<\/h2>\n\n\n\n\n$ ansible all -m ping\n\n\n\n\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308bsshpass\u304c\u306a\u3044\u3068\u3001\u3001\u3001<br>\u3050\u3050\u308b\u3068homebrew\u3067\u7c21\u5358\u306b\u5165\u308b\u3063\u307d\u3044\u3051\u3069\u5b9f\u884c\u3059\u308b\u3068m1mac\u3067\u306f\u62d2\u5426\u3089\u308c\u308b\u3002\u4eca\u306e\u3068\u3053\u308d\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\uff11\u3064\u3002\u81ea\u5206\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>$ curl -O -L http:\/\/downloads.sourceforge.net\/project\/sshpass\/sshpass\/1.05\/sshpass-1.05.tar.gz &amp;&amp; tar xvzf sshpass-1.05.tar.gz\n\n\/\/This creates a directory sshpass-1.05\n\n$ cd sshpass-1.05\n$ .\/configure\n$ make\n$ sudo make install<\/code><\/pre>\n\n\n\n\n\u3061\u306a\u307f\u306b1.06\u306f\u3046\u307e\u304f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044\u306e\u30671.05\u3067\u3002\u3053\u308c\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\n","protected":false},"excerpt":{"rendered":"<p>\uff12\u56de\u3081\u306e\u8a18\u4e8b\u306e\u6700\u5f8c\u306b\u8a18\u8f09\u3057\u305f\u304c\u3001m1Mac\u3067\u306fUTM\u3068\u3044\u3046\u30a2\u30d7\u30ea\u3067\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3067\u3053\u3061\u3089\u306b\u65b9\u91dd\u3092\u5909\u3048\u3066\u52e7\u3081\u3066\u3044\u304f\u3002 UTM\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4ee5\u4e0b\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308c\u3070\u7121\u6599\u3067\u4f7f\u3048\u308b\u3002AppStor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[91,94,93,90],"class_list":["post-919","post","type-post","status-publish","format-standard","hentry","category-1","tag-m1","tag-network","tag-ubuntu","tag-utm"],"_links":{"self":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=919"}],"version-history":[{"count":3,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/919\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/919\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}