{"id":319,"date":"2011-10-03T18:11:04","date_gmt":"2011-10-03T09:11:04","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=319"},"modified":"2011-10-03T22:47:43","modified_gmt":"2011-10-03T13:47:43","slug":"virtualbox%e3%81%a7web%e9%96%8b%e7%99%ba%e3%81%99%e3%82%8b%e3%81%a8%e3%81%8d%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=319","title":{"rendered":"VirtualBox\u3067WEB\u958b\u767a\u3059\u308b\u3068\u304d\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a"},"content":{"rendered":"<p>\u3057\u305f\u3044\u3053\u3068\uff0e<\/p>\n<p>-\u30b2\u30b9\u30c8\u3067WWW\u30b5\u30fc\u30d0\u3092\u7a3c\u50cd<br \/>\n-\u30db\u30b9\u30c8\u304b\u3089\u305d\u306e\u30b5\u30fc\u30d0\u306bHTTP\u30a2\u30af\u30bb\u30b9<br \/>\n-\u30b2\u30b9\u30c8\u3078\u306fssh\u3067\u5165\u3063\u3066\u4f5c\u696d<\/p>\n<p>\u3053\u306e\u305f\u3081\u306b<\/p>\n<p>-\u30b2\u30b9\u30c8\u306f\u5916\u306b\u884c\u3051\u308b\u3088\u3046\u306b<br \/>\n-\u30db\u30b9\u30c8\u306f\u30b2\u30b9\u30c8\u306b\u5165\u308c\u308b\u3088\u3046\u306b<br \/>\n-\u30b2\u30b9\u30c8\u306f\u5916\u304b\u3089\u898b\u3048\u306a\u3044\u3088\u3046\u306b<\/p>\n<p>\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3060\u3068NAT\u306b\u3057\u3066port forwarding\u306b\u3059\u308b\u3068\u3044\u3044\u3088\u3068\u306e\u3053\u3068\u3067\u3059\u304c\uff0c\u305d\u308c\u3060\u3068\u5916\u304b\u3089\u898b\u3048\u3061\u3083\u3046\u3057\uff0c\u8a2d\u5b9a\u304c(\u30fbA\u30fb)\uff8f\uff9d\uff84\uff9e\uff78\uff7e<\/p>\n<p>\u89e3\u6c7a\u7b56\uff0e<br \/>\nNAT\u3092\u30d7\u30e9\u30a4\u30de\u30eaNIC\u306b\u3057\u3066\uff0c\u30db\u30b9\u30c8\u30aa\u30f3\u30ea\u30fc\u30a2\u30c0\u30d7\u30bf\u306eNIC\u3092\u8ffd\u52a0\u3067\u8a2d\u5b9a\u3059\u308b\u3068\uff0c\u3067\u304d\u307e\u3059\uff0e<br \/>\n\u30b2\u30b9\u30c8OS\u304b\u3089\u306f\u305d\u308c\u305e\u308ceth0\u3068eth1\u304c\u898b\u3048\u307e\u3059\uff0e<br \/>\n\u30db\u30b9\u30c8\u304b\u3089HTTP\u3084ssh\u3067eth1\u306b\u3042\u305f\u308b\u7aef\u672b\u306b\u63a5\u7d9a\u3059\u308b\u3068\u30b2\u30b9\u30c8\u306b\u5165\u308c\u307e\u3059\uff0e<\/p>\n<p>\u305f\u3060\u30b2\u30b9\u30c8\u304c\u4f8b\u3048\u3070CentOS\u3060\u3068\u554f\u984c\u306a\u3044\u3089\u3057\u3044\u306e\u3067\u3059\u304c\uff0cUbuntu\u3068\u304b\u3060\u3068\uff0c\u975e\u30d7\u30e9\u30a4\u30de\u30ea\u306aNIC\u306e\u63a5\u7d9a\u8a2d\u5b9a\u306f\u624b\u52d5\u3067\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u6a21\u69d8\uff0e<br \/>\n\u4ee5\u4e0b\u30b2\u30b9\u30c8\u304cUbuntu\u306e\u3068\u304d\u306e\u8a2d\u5b9a\u3067\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/etc\/network\/interfaces\r\n<\/pre>\n<p>\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3078\uff0c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nauto eth1\r\niface eth1 inet dhcp\r\n<\/pre>\n<p>\u3068\u8ffd\u8a18\u3057\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u304a\u3063\u3051\u30fc\u3067\u3059\uff0e<br \/>\n\u3067\u3082DHCP\u306f\u30a2\u30ec\u306a\u306e\u3067\uff0c\u56fa\u5b9aIP\u306b\u3057\u3066\u3057\u307e\u3046\u306e\u3082\u30a4\u30a4\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nauto eth1\r\niface eth1 inet static\r\naddress 192.168.56.254\r\nnetmask 255.255.255.0\r\nnetwork 192.168.56.0\r\nbroadcast 192.168.56.255\r\n<\/pre>\n<p>\u3093\u3067\uff0c\u7d42\u308f\u3063\u305f\u3089root\u6a29\u9650\u3067<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/etc\/init.d\/networking restart\r\n<\/pre>\n<p>\u3053\u308c\u3067\u304a\u30fc\u3051\u30fc\u3067\u3059\uff0e ifconfig\u3057\u3066\u3061\u3083\u3093\u3068\u8a2d\u5b9a\u51fa\u6765\u3066\u308b\u3053\u3068\uff0c\u30db\u30b9\u30c8\u304b\u3089\u3082\u3064\u306a\u3052\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n<p>\u3064\u3044\u3067\u306b\u30db\u30b9\u30c8\u306ehosts\u3082\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u3082\u3063\u3068(\uff9f\u0414\uff9f)\uff73\uff8f\uff70<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3057\u305f\u3044\u3053\u3068\uff0e -\u30b2\u30b9\u30c8\u3067WWW\u30b5\u30fc\u30d0\u3092\u7a3c\u50cd -\u30db\u30b9\u30c8\u304b\u3089\u305d\u306e\u30b5\u30fc\u30d0\u306bHTTP\u30a2\u30af\u30bb\u30b9 -\u30b2\u30b9\u30c8\u3078\u306fssh\u3067\u5165\u3063\u3066\u4f5c\u696d \u3053\u306e\u305f\u3081\u306b -\u30b2\u30b9\u30c8\u306f\u5916\u306b\u884c\u3051\u308b\u3088\u3046\u306b -\u30db\u30b9\u30c8\u306f\u30b2\u30b9\u30c8\u306b\u5165\u308c\u308b\u3088\u3046\u306b -\u30b2\u30b9\u30c8\u306f\u5916\u304b\u3089\u898b\u3048\u306a\u3044\u3088\u3046\u306b [&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":[7,8,10],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-1","tag-linux","tag-8","tag-10"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}