{"id":1124,"date":"2021-03-06T15:56:56","date_gmt":"2021-03-06T06:56:56","guid":{"rendered":"https:\/\/www.typea.info\/blog\/?p=1124"},"modified":"2021-03-06T21:25:08","modified_gmt":"2021-03-06T12:25:08","slug":"create_vbox_bridgenw_on_multipass_windows","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2021\/03\/06\/create_vbox_bridgenw_on_multipass_windows\/","title":{"rendered":"WIndows\u3067Multipass(VirtualBox)\u306e\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u69cb\u6210\u3059\u308b\u624b\u9806"},"content":{"rendered":"<p>\u00a0<\/p>\n<h2>1.Multipass\u3092WIndows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u306e <a href=\"https:\/\/multipass.run\/\">Multipass<\/a> \u3092<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2020\/11\/13\/mac_ubuntu_microk8s_node_cluster\/\">Mac\u3067MicroK8s\u3092\u4f7f\u3046\u3068\u304d\u306b)<\/a>\u00a0\u8a66\u3057\u3066\u305f\u306e\u3060\u3051\u308c\u3069\u3001Ubuntu\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052\u3068\u64cd\u4f5c\u304c\u3044\u3044\u611f\u3058\u3002<\/p>\n<p>Windows \u306bVirtualBox\u3068\u5171\u306b\u5c0e\u5165\u3057\u3066\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u30db\u30b9\u30c8\u3059\u308bPC\u306e\u5916\u90e8\u304b\u3089\u3001SSH\u63a5\u7d9a\u3067\u304d\u308b\u3068\u3053\u308d\u307e\u3067\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001<a href=\"https:\/\/multipass.run\/\">Multipass orchestrates virtual Ubuntu instances<\/a> \u304b\u3089\u3001Windows\u3092\u9078\u629e\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30e9\u30fc\u3092\u5b9f\u884c\u3059\u308c\u3070OK<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/multipass_select_os.png\"><img loading=\"lazy\" decoding=\"async\" title=\"multipass_select_os.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/multipass_select_os.png\" alt=\"Multipass select os\" width=\"597\" height=\"158\" border=\"0\" \/><\/a><\/p>\n<h2>2.Ubuntu\u4eee\u60f3\u30de\u30b7\u30f3\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u30e1\u30e2\u30ea4G\u3001\u30c7\u30a3\u30b9\u30af 20G\u30012CPU \u3067 hostname phpenv\u306eUbuntu\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3002<\/p>\n<p>\u660e\u793a\u7684\u306b\u4f5c\u6210\u3057\u306a\u3044\u3068\u3001primary \u3068\u3044\u3046\u540d\u524d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u81ea\u52d5\u3067\u4f5c\u3089\u308c\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>multipass \u306b\u7d9a\u3044\u3066\u5229\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001<a href=\"https:\/\/multipass.run\/docs\/info-command\">`multipass info` command | Multipass documentation<\/a><\/p>\n<p>\u2014name\u3000\u306b\u7d9a\u304f\u306e\u304c\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u540d\u524d\u3002\u4eca\u56de\u306fphp\u306e\u8abf\u67fb\u74b0\u5883\u3092\u4f5c\u308a\u305f\u3044\u306e\u3067\u3001phpenv\u3068\u3067\u3082\u3057\u3066\u304a\u304f<\/p>\n<pre class=\"prettyprint\">$ multipass launch --mem 4G --disk 20G --cpus 2 --name phpenv<\/pre>\n<p>\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u518d\u751f\u3055\u308c\u308b\u306e\u3067\u3001multipass list \u3067\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint\">PS C:\\Users\\hiroto&gt; multipass ls\nName State IPv4 Image\nphpenv Stopped \u2013 Ubuntu 20.04 LTS<\/pre>\n<h2>3.\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u8a2d\u5b9a<\/h2>\n<h3>3.1 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30ea\u30b9\u30c8\u3092\u5f97\u308b<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2020\/11\/20\/mac_multipass_microk8s_virtuabox_networibridge\/\">Mac \u3068 Virtualbox \u3092\u4f7f\u3063\u3066\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f5c\u6210\u3057\u305f<\/a>\u306e\u3068\u540c\u3058\u3053\u3068\u3092\u3057\u305f\u3044\u306e\u3060\u304c\u3001Windows\u306e\u5834\u5408\u3001\u30db\u30b9\u30c8\u5074\u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u3069\u3046\u3084\u3063\u3066\u6307\u5b9a\u3059\u308c\u3070\u826f\u3044\u306e\u3060\u308d\u3046\u3068\u63a2\u3057\u3066\u3044\u305f\u3089\u3001<a href=\"https:\/\/jon.sprig.gs\/blog\/post\/1574\">Networking tricks with Multipass in Virtualbox on Windows (Bridged interfaces and Port Forwards) \u2013 A nice guy\u2019s view on life (sprig.gs)<\/a>\u3092\u307f\u3064\u3051\u305f\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u5171\u6709\u8a2d\u5b9a\u3068\u304b\u306b\u8868\u793a\u3055\u308c\u308b\u3001Description\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3088\u3046\u3060\u3002\u9577\u3044\u306a\u3002\u3002\u3002<\/p>\n<p>\u8abf\u3079\u65b9\u3082\u4e0a\u8a18\u306b\u3042\u3063\u305f\u306e\u3067\u3001Powershell\u3067\u53d6\u5f97\u3059\u308b<\/p>\n<pre class=\"prettyprint\">PS C:\\Users\\hiroto&amp;g; Get-NetAdapter -Physical | format-list -property \u201cName\u201d,\u201cDriverDescription\u201d<\/pre>\n<p>Name : \u30a4\u30fc\u30b5\u30cd\u30c3\u30c8<br \/>\nDriverDescription : Qualcomm Atheros AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.30)<\/p>\n<p>\u81ea\u5206\u306e\u74b0\u5883\u306e\u30a2\u30c0\u30d7\u30bf\u30fc\u306eDescription\u306f\u3001\u4e0a\u8a18\u306e\u3088\u3046\u3060\u3002<\/p>\n<h3>\u00a03.2 PsExec\u306e\u5c0e\u5165<\/h3>\n<p><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/sysinternals\/downloads\/pstools\">PsTools &#8211; Windows Sysinternals | Microsoft Docs<\/a>\u306b\u542b\u307e\u308c\u308b\u3001PsExec\u3092\u5229\u7528\u3057\u305f\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.atmarkit.co.jp\/ait\/articles\/1205\/11\/news147.html\">PsExec\u3092\u4f7f\u3063\u3066\u30ea\u30e2\u30fc\u30c8\u306eWindows PC\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\uff1aTech TIPS &#8211; \uff20IT (atmarkit.co.jp)<\/a><\/p>\n<blockquote>\n<p>PsExec\u3067\u306f\u3001-s\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001System\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6a29\u9650\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3067\u304d\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4f8b\u3048\u3070\u30ec\u30b8\u30b9\u30c8\u30ea\u30fb\u30ad\u30fc\u306eHKLM\\SAM\\SAM\u306e\u3088\u3046\u306b\u3001System\u30a2\u30ab\u30a6\u30f3\u30c8\u3060\u3051\u306b\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<\/blockquote>\n<p>multipass\u3067\u4f5c\u6210\u3059\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001System\u30a2\u30ab\u30a6\u30f3\u30c8\u6a29\u9650\u3092\u8981\u3059\u308b\u3088\u3046\u3067\u3001\u4e0a\u8a18PsExec\u3092\u5c0e\u5165\u3057\u3066\u8d77\u52d5\u3057\u305f\u308a\u3001\u64cd\u4f5c\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3001\u81ea\u5206\u306e\u74b0\u5883\u3067\u306f\u3001\u4ee5\u4e0b\u306b\u4f5c\u6210\u3055\u308c\u305f\u3002<\/p>\n<p>C:\\Windows\\System32\\config\\<span style=\"color: #ff2600;\">systemprofile<\/span>\\AppData\\Roaming\\multipassd\\virtualbox\\vault\\instances<\/p>\n<p>\u00a0<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/VirtualBox-Made-Easy-Virtualize-Environment\/dp\/B08XKRTB4C?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=virtualbox&amp;qid=1615009359&amp;s=books&amp;sr=1-11&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=80395d8fc868b13ceb143e81b88b5619&amp;language=ja_JP&amp;ref_=as_li_ss_il\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B08XKRTB4C&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22&amp;language=ja_JP\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border: none !important; margin: 0px !important;\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B08XKRTB4C\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/p>\n<p>3.3.1 \u4e21\u65b9\u306bPATH\u3092\u901a\u3059<\/p>\n<p>\u3044\u3061\u3044\u3061\u30b3\u30de\u30f3\u30c9\u3092\u30d5\u30eb\u30d1\u30b9\u6253\u3064\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u3001PSTools\u3068VirtualBox \u306b\u30d1\u30b9\u3092\u901a\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/win_env.png\"><img loading=\"lazy\" decoding=\"async\" title=\"win_env.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/win_env.png\" alt=\"Win env\" width=\"409\" height=\"391\" border=\"0\" \/><\/a><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001VirtualBox\u306e\u30b3\u30de\u30f3\u30c9\u30de\u30cb\u30e5\u30a2\u30eb\u306f\u3001\u4ee5\u4e0b<\/p>\n<p><a href=\"https:\/\/www.virtualbox.org\/manual\/\">Oracle\u00ae VM VirtualBox\u00ae<\/a><\/p>\n<h3>3.3 \u30d6\u30ea\u30c3\u30b8\u30a2\u30c0\u30d7\u30bf\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p>multipass stop phpenv \u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8d77\u52d5\u3057\u3066\u3044\u305f\u3089\u3001\u4e00\u65e6\u505c\u6b62\u3057\u3001PowerShell\u3092\u7ba1\u7406\u8005\u3067\u7acb\u3061\u4e0a\u3052\u3066\u3001psexec \u7d4c\u7531\u3067 VirtualBox\u306e\u7ba1\u7406\u30b3\u30de\u30f3\u30c9(vboxmanage) \u3092\u5b9f\u884c\u3057\u3001\u30d6\u30ea\u30c3\u30b8\u30a2\u30c0\u30d7\u30bf\u306e\u4f5c\u6210\u3068\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/p>\n<pre class=\"prettyprint\">PS C:\\Users\\hiroto&gt; psexec64 -s vboxmanage modifyvm \u201cphpenv\u201d\u2013nic2 bridged \u2013bridgeadapter2 \u201cQualcomm Atheros AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.30)\u201d<\/pre>\n<p>PsExec v2.32 &#8211; Execute processes remotely<br \/>\nCopyright (C) 2001\u20132021 Mark Russinovich<br \/>\nSysinternals &#8211; www.sysinternals.com<\/p>\n<p>vboxmanage exited on TAISETSU with error code 0.<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/vbox_bridge.png\"><img loading=\"lazy\" decoding=\"async\" title=\"vbox_bridge.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/vbox_bridge.png\" alt=\"Vbox bridge\" width=\"600\" height=\"181\" border=\"0\" \/><\/a><\/p>\n<h3>3.4 \u4eee\u60f3\u30de\u30b7\u30f3\u304c\u30d6\u30ea\u30c3\u30b8\u30a2\u30c0\u30d7\u30bf\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a<\/h3>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u8d77\u52d5(multipass start) \u3057\u3001\u30b7\u30a7\u30eb\u3067\u30ed\u30b0\u30a4\u30f3(multipass shell)<\/p>\n<pre class=\"prettyprint\">PS C:\\Users\\hiroto&gt; multipass start phpenv\nPS C:\\Users\\hiroto&gt; multipass shell phpenv\nWelcome to Ubuntu 20.04.2 LTS (GNU\/Linux 5.4.0\u201366-generic x86_64)\nubuntu@phpenv:<sub>$<\/sub> ip link | grep DOWN\n3: enp0s8: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000\nubuntu@phpenv:<sub>$<\/sub>\n<\/pre>\n<p>sudo su \u3067 root \u3067\u4f5c\u696d(sudo\u3067\u826f\u3044)\u3002\u3053\u3053\u304b\u3089\u306f\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2020\/11\/20\/mac_multipass_microk8s_virtuabox_networibridge\/\">Mac\u3067\u306e\u4f5c\u696d<\/a>\u3068\u540c\u69d8\u3002<\/p>\n<pre class=\"prettyprint\">root@phpenv:\/etc\/netplan# cat &gt; \/etc\/netplan\/60-bridge.yaml &lt;&lt;EOF\n network:\n ethernets:\n enp0s8: # this is the interface name from above\n dhcp4: true\n dhcp4-overrides: # this is needed so the default gateway\n route-metric: 200 # remains with the first interface\n version: 2\nEOF<\/pre>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/vbox_ip_settings.png\"><img loading=\"lazy\" decoding=\"async\" title=\"vbox_ip_settings.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/vbox_ip_settings.png\" alt=\"Vbox ip settings\" width=\"598\" height=\"143\" border=\"0\" \/><\/a><\/p>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30ed\u30b0\u30a4\u30f3\u3001root \u306e\u307e\u307e\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a\u3092\u53cd\u6620\u3001ip \u30a2\u30c9\u30ec\u30b9\u304c\u632f\u3089\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/p>\n<pre class=\"prettyprint\">root@phpenv:\/etc\/netplan# netplan apply\nroot@phpenv:\/etc\/netplan# ip address show dev enp0s8 up\n3: enp0s8: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000\n link\/ether 08:00:27:ce:fb:e4 brd ff:ff:ff:ff:ff:ff\n inet 192.168.0.25\/24 brd 192.168.0.255 scope global dynamic enp0s8\n valid_lft 86372sec preferred_lft 86372sec\n inet6 2402:6b00:3666:5800:a00:27ff:fece:fbe4\/64 scope global dynamic mngtmpaddr noprefixroute\n valid_lft 275sec preferred_lft 275sec\n inet6 fe80::a00:27ff:fece:fbe4\/64 scope link\n valid_lft forever preferred_lft forever<\/pre>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/vbox_ip_up.png\"><img loading=\"lazy\" decoding=\"async\" title=\"vbox_ip_up.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/vbox_ip_up.png\" alt=\"Vbox ip up\" width=\"598\" height=\"168\" border=\"0\" \/><\/a><\/p>\n<h3>3.5 VirtualBox\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u8d77\u52d5\u3068\u78ba\u8a8d<\/h3>\n<p>\u4e0a\u8ff0\u306e\u3088\u3046\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306bMultipass\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001PsExce \u3067 VirtualBox\u3092\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"prettyprint\">PS C:\\Users\\hiroto&gt; psexec64 -s -i virtualbox<\/pre>\n<p>PsExec v2.32 &#8211; Execute processes remotely<br \/>\nCopyright (C) 2001\u20132021 Mark Russinovich<br \/>\nSysinternals &#8211; www.sysinternals.com<\/p>\n<p>\u30d6\u30ea\u30c3\u30b8\u30a2\u30c0\u30d7\u30bf\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u898b\u3066\u53d6\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/run_vbox_syste.png\"><img loading=\"lazy\" decoding=\"async\" title=\"run_vbox_syste.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/run_vbox_syste.png\" alt=\"Run vbox syste\" width=\"600\" height=\"510\" border=\"0\" \/><\/a><\/p>\n<p>multipass list \u3067 ip\u30a2\u30c9\u30ec\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u308b\u3053\u3068\u3082\u78ba\u8a8d<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/multipass_ip.png\"><img loading=\"lazy\" decoding=\"async\" title=\"multipass_ip.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/multipass_ip.png\" alt=\"Multipass ip\" width=\"594\" height=\"105\" border=\"0\" \/><\/a><\/p>\n<h2>4.\u5916\u90e8\u304b\u3089\u306e\u63a5\u7d9a\u8a2d\u5b9a<\/h2>\n<h3>4.1 mDNS\u3092\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\uff4dDNS(\u30de\u30eb\u30c1\u30ad\u30e3\u30b9\u30c8DNS)\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3001hosts\u30d5\u30a1\u30a4\u30eb\u3092\u3044\u3061\u3044\u3061\u66f8\u3044\u305f\u308a\u3001\u30ed\u30fc\u30ab\u30ebDNS\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u305f\u308a\u306a\u3069\u3057\u306a\u304f\u3066\u3082\u3001Windows\u3001Mac\u3001Linux\u6df7\u5728\u74b0\u5883\u3067\u3082\u540d\u524d\u89e3\u6c7a\u3067\u304d\u3066\u975e\u5e38\u306b\u4fbf\u5229\u3002Mac\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u304b\u3089\u3001Windows\u3068Ubuntu\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u3001\u30db\u30b9\u30c8\u540d.local \u3067\u63a5\u7d9a\u7ba1\u7406\u3067\u304d\u308b\u3002(Mac\u3078\u306f\u3001VNC\u3001\u753b\u9762\u5171\u6709\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u304c)<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/mac_remotepc_list.png\"><img loading=\"lazy\" decoding=\"async\" title=\"mac_remotepc_list.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/mac_remotepc_list.png\" alt=\"Mac remotepc list\" width=\"599\" height=\"309\" border=\"0\" \/><\/a><\/p>\n<p>\u3068\u3001\uff4dDNS\u4fbf\u5229\u306a\u306e\u3067\u3001\u305d\u306e\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9(avahi-daemon)\u3092\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u6709\u52b9\u5316\u3002<\/p>\n<p>\u00a0<\/p>\n<pre class=\"prettyprint\">ubuntu@phpenv:<sub>$<\/sub> sudo apt install -y avahi-daemon\nubuntu@phpenv:<sub>$<\/sub> sudo systemctl start avahi-daemon\nubuntu@phpenv:<sub>$<\/sub> sudo systemctl enable avahi-daemon\nubuntu@phpenv:<sub>$<\/sub> ping phpenv.local\nPING phpenv.local (192.168.0.25) 56(84) bytes of data.\n64 bytes from phpenv (192.168.0.25): icmp_seq=1 ttl=64 time=0.015 ms\n64 bytes from phpenv (192.168.0.25): icmp_seq=2 ttl=64 time=0.045 ms\n<\/pre>\n<h3>4.2 SSH\u95a2\u9023\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/www.amazon.co.jp\/Ubuntu%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E5%BE%B9%E5%BA%95%E5%85%A5%E9%96%80-%E4%B8%AD%E5%B3%B6-%E8%83%BD%E5%92%8C-ebook\/dp\/B07D54GVHD?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=ubuntu&amp;qid=1615013751&amp;sr=8-4&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=36fa65a226eceb214a60c94c18b3b2b8&amp;language=ja_JP&amp;ref_=as_li_ss_il\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B07D54GVHD&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22&amp;language=ja_JP\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border: none !important; margin: 0px !important;\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B07D54GVHD\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/p>\n<p>\u4ee5\u4e0b\u3092\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u72b6\u614b\u3060\u3068\u3001permission denied (publickey). \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305a\u30012\u65e5\u307b\u3069\u60a9\u307f\u3001\u7406\u7531\u306f\u308f\u304b\u3089\u306a\u3044\u306e\u3060\u304c\u3001\u3053\u308c\u3067\u89e3\u6c7a\u3057\u305f\u3002<\/p>\n<pre class=\"prettyprint\">ubuntu@phpenv:<sub>$<\/sub> sudo apt-get install ssh\nubuntu@phpenv:<sub>$<\/sub> sudo apt-get install openssh-server<\/pre>\n<p>\u3042\u3068\u3001sshd \u306e\u8a2d\u5b9a\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u53ef\u80fd\u306b\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u3092home\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ed8\u3067\u4f5c\u6210\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3001sudo \u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u308b\u3002<\/p>\n<pre class=\"prettyprint\">ubuntu@phpenv:<sub>$<\/sub> sudo useradd -m piroto\nubuntu@phpenv:$ sudo passwd piroto\nubuntu@phpenv:$ sudo usermod -G sudo piroto\nubuntu@phpenv:$ sudo vi \/etc\/ssh\/sshd_config\n :\nPasswordAuthentication yes\nubuntu@phpenv:\/var\/log$ sudo systemctl restart sshd\n<\/pre>\n<h3>4.3 \u63a5\u7d9a<\/h3>\n<p>\u3088\u3046\u3084\u304f\u3067\u304d\u305f\u3002\u3002\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/multipass_win_vbox_success.png\"><img loading=\"lazy\" decoding=\"async\" title=\"multipass_win_vbox_success.png\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/2021\/03\/multipass_win_vbox_success.png\" alt=\"Multipass win vbox success\" width=\"600\" height=\"385\" border=\"0\" \/><\/a><\/p>\n<p>\u9762\u5012\u3060\u3063\u305f\u3051\u3069\u3001\u4eca\u5f8c\u3061\u3087\u3063\u3068\u3057\u305f\u74b0\u5883\u4f5c\u308b\u306e\u6357\u308a\u305d\u3046\u3084\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 1.Multipass\u3092WIndows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4eee\u60f3\u30de\u30b7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u306e Multipass \u3092Mac\u3067MicroK8s\u3092\u4f7f\u3046\u3068\u304d\u306b)\u00a0\u8a66\u3057\u3066\u305f\u306e\u3060\u3051\u308c\u3069\u3001Ubuntu\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7acb\u3061\u4e0a\u3052\u3068\u64cd\u4f5c\u304c\u3044\u3044\u611f\u3058\u3002 W [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1127,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[144,31],"tags":[147,145,148,146],"class_list":["post-1124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-multipass","category-virtual-box","tag-mdns","tag-multipass","tag-ubuntu","tag-virtualbox"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1124"}],"version-history":[{"count":2,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1124\/revisions"}],"predecessor-version":[{"id":1126,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1124\/revisions\/1126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media\/1127"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}