{"id":500,"date":"2018-10-13T10:32:00","date_gmt":"2018-10-13T01:32:00","guid":{"rendered":"https:\/\/wp.zassoul.com\/?p=500"},"modified":"2018-10-13T10:32:00","modified_gmt":"2018-10-13T01:32:00","slug":"eve-ng-on-gcp","status":"publish","type":"post","link":"https:\/\/wp.zassoul.com\/?p=500","title":{"rendered":"EVE-NG on GCP"},"content":{"rendered":"<p>GCP\u3067\u30cd\u30b9\u30c8\u3092\u6709\u52b9\u5316\u3059\u308b\u3002\uff08Google Cloud SDK shell \u3092\u4f7f\u3046\uff09<br \/>\u30cd\u30b9\u30c8\u304c\u5229\u7528\u3067\u304d\u308b\u306e\u306fHaswell\u4ee5\u964d\u306eCPU\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u30ea\u30fc\u30b8\u30e7\u30f3\u3002<br \/>EVE-NG\u306f\u30d9\u30a2\u30e1\u30bf\u30eb\u306e\u30c7\u30d7\u30ed\u30a4\u3092\u53c2\u8003\u306b\u3059\u308b\u3002<br \/>http:\/\/www.eve-ng.net\/documentation\/installation\/bare-install<\/p>\n<h3>1. \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210<\/h3>\n<p>\u307e\u305a\u6700\u521d\u306bUbuntu 1604.lts\u3092\u30d9\u30fc\u30b9\u306bNested\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u308b\u3002<\/p>\n<pre>GoogleCloud SDK&gt;gcloud compute images create nested-ubuntu-1604-lts --source-image-project=ubuntu-os-cloud --source-image=ubuntu-1604-xenial-v20181004  --licenses=\"https:\/\/www.googleapis.com\/compute\/v1\/projects\/vm-options\/global\/licenses\/enable-vmx\"<br \/>Created [https:\/\/www.googleapis.com\/compute\/v1\/projects\/propane-passkey-xxxxx\/global\/images\/nested-ubuntu-1604-lts].<br \/>NAME                    PROJECT                 FAMILY  DEPRECATED  STATUS<br \/>nested-ubuntu-1604-lts  propane-passkey-xxxxx                       READY<\/pre>\n<p><\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-ZHleSMoUhxc\/W8BCzmlZJII\/AAAAAAAAAZc\/0Gy8uezkWD4ytQ4PrZJmLpdzT3RGWYNDgCLcBGAs\/s1600\/gcp-eve-ng01.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"142\" data-original-width=\"651\" height=\"69\" src=\"https:\/\/1.bp.blogspot.com\/-ZHleSMoUhxc\/W8BCzmlZJII\/AAAAAAAAAZc\/0Gy8uezkWD4ytQ4PrZJmLpdzT3RGWYNDgCLcBGAs\/s320\/gcp-eve-ng01.JPG\" width=\"320\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u3053\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3044\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u7acb\u3066\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EVE-NG\u306e\u30b7\u30b9\u30c6\u30e0\u8981\u4ef6<br \/>http:\/\/www.eve-ng.net\/documentation\/installation\/system-requirement<\/p>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-122k3kOHzRk\/W8BLTexgn_I\/AAAAAAAAAZo\/4NoOL-1Zm54Yo8obuMB3eudU79UnrMdbACLcBGAs\/s1600\/gcp-eve-ng02.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"184\" data-original-width=\"678\" height=\"86\" src=\"https:\/\/2.bp.blogspot.com\/-122k3kOHzRk\/W8BLTexgn_I\/AAAAAAAAAZo\/4NoOL-1Zm54Yo8obuMB3eudU79UnrMdbACLcBGAs\/s320\/gcp-eve-ng02.JPG\" width=\"320\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u4f5c\u6210\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-ZUEYOklej40\/W8BLYo36QBI\/AAAAAAAAAZs\/kFLwmbWuqEg4eawOCRqWAAAjoDS7bcA3ACLcBGAs\/s1600\/gcp-eve-ng03.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"906\" data-original-width=\"558\" height=\"320\" src=\"https:\/\/3.bp.blogspot.com\/-ZUEYOklej40\/W8BLYo36QBI\/AAAAAAAAAZs\/kFLwmbWuqEg4eawOCRqWAAAjoDS7bcA3ACLcBGAs\/s320\/gcp-eve-ng03.JPG\" width=\"197\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u9805\u76ee\u7de8\u96c6\u3002\u3072\u3068\u307e\u305avCPU 2 \u30e1\u30e2\u30ea 8G\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-oiBr1o7UiaU\/W8BLnjRjWbI\/AAAAAAAAAZ0\/4lf3LSAb8E4-0HcS4L5bjMymR_-rFGSAgCLcBGAs\/s1600\/gcp-eve-ng04.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img decoding=\"async\" border=\"0\" data-original-height=\"61\" data-original-width=\"194\" src=\"https:\/\/3.bp.blogspot.com\/-oiBr1o7UiaU\/W8BLnjRjWbI\/AAAAAAAAAZ0\/4lf3LSAb8E4-0HcS4L5bjMymR_-rFGSAgCLcBGAs\/s1600\/gcp-eve-ng04.JPG\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4eee\u60f3\u5316\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304b\u5ff5\u306e\u70ba\u78ba\u8a8d\u3002<\/p>\n<pre>~$ grep vmx \/proc\/cpuinfo <br \/>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti tpr_shadow flexpriority ept fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arch_capabilities<br \/>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti tpr_shadow flexpriority ept fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arch_capabilities<br \/><\/pre>\n<p>OK\u3002<\/p>\n<h3>2. EVE-NG \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e8b\u524d\u6e96\u5099<\/h3>\n<p>\u30ed\u30b0\u30a4\u30f3\u5f8c, \u30d9\u30a2\u30e1\u30bf\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u8a2d\u5b9a\u306e\u4fee\u6b63\u3092\u884c\u3063\u3066\u3044\u304f\u3002<br \/>\u30fb\/etc\/hosts \u4fee\u6b63<br \/>\u30fbsshd\u8a2d\u5b9a \u4fee\u6b63<br \/>\u30fbGrub\u8a2d\u5b9a \u4fee\u6b63<br \/>\u30fb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540d\u3092eth\u3078\u5909\u66f4<\/p>\n<pre># cat \/etc\/udev\/rules.d\/70-persistent-net.rules <br \/>#SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"42:01:0a:8e:00:02\", NAME=\"ens4\"<br \/>SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"42:01:0a:8e:00:02\", NAME=\"eth0\"<br \/><\/pre>\n<p>\u30fb\u9069\u7528\u306e\u305f\u3081\u4e00\u5ea6\u518d\u8d77\u52d5<\/p>\n<pre>root@eve-ng:~# ip a<br \/>1: lo: <loopback> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br \/>    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br \/>    inet 127.0.0.1\/8 scope host lo<br \/>       valid_lft forever preferred_lft forever<br \/>    inet6 ::1\/128 scope host<br \/>       valid_lft forever preferred_lft forever<br \/>2: eth0: <broadcast> mtu 1460 qdisc mq state UP group default qlen 1000<br \/>    link\/ether 42:01:0a:8e:00:02 brd ff:ff:ff:ff:ff:ff<br \/>    inet 10.142.0.2\/32 brd 10.142.0.2 scope global eth0<br \/>       valid_lft forever preferred_lft forever<br \/>    inet6 fe80::4001:aff:fe8e:2\/64 scope link<br \/>       valid_lft forever preferred_lft forever<br \/><\/broadcast><\/loopback><\/pre>\n<p>OK\u3002 <\/p>\n<h3>3. EVE-NG \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><\/p>\n<pre># wget -O - http:\/\/www.eve-ng.net\/repo\/install-eve.sh | bash -i<br \/># reboot<\/pre>\n<p>\u3053\u3053\u306b\u5f93\u3063\u3066\u521d\u671f\u8a2d\u5b9a\u3092\u3059\u308b\u3002<br \/><a href=\"http:\/\/www.eve-ng.net\/index.php\/documentation\/howto-s\/65-howto-configure-eve-during-first-boot\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.eve-ng.net\/index.php\/documentation\/howto-s\/65-howto-configure-eve-during-first-boot<\/a><\/p>\n<p>\u30fb\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8 <\/p>\n<pre># apt-get update<br \/># apt-get upgrade<\/pre>\n<p>\u30fbHTTPS\u5316<br \/><a href=\"https:\/\/zassoul.blogspot.com\/2018\/06\/eve-nghttps.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/zassoul.blogspot.com\/2018\/06\/eve-nghttps.html<\/a><\/p>\n<p>\u5b8c\u4e86\u3002<br \/>4. \u304a\u8a66\u3057\u30a2\u30af\u30bb\u30b9<br \/>https:\/\/&lt;\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5916\u90e8IP&gt;\/ \u306b\u30a2\u30af\u30bb\u30b9\u3002<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-hJUc7aky6Tg\/W8FGC305ZuI\/AAAAAAAAAaE\/Wd705UAYNLosUSUgBiUkWueuOR3bHdsuwCLcBGAs\/s1600\/gcp-eve-ng05.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"522\" data-original-width=\"458\" height=\"320\" src=\"https:\/\/1.bp.blogspot.com\/-hJUc7aky6Tg\/W8FGC305ZuI\/AAAAAAAAAaE\/Wd705UAYNLosUSUgBiUkWueuOR3bHdsuwCLcBGAs\/s320\/gcp-eve-ng05.JPG\" width=\"280\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u521d\u671fID\u30fb\u30d1\u30b9\u5165\u529b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-YmcB4i4MR3o\/W8FGDBaB9II\/AAAAAAAAAaI\/USfj3qzVmvcvPOduCndCUGwzm1W4sFefQCLcBGAs\/s1600\/gcp-eve-ng06.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"537\" data-original-width=\"1553\" height=\"110\" src=\"https:\/\/4.bp.blogspot.com\/-YmcB4i4MR3o\/W8FGDBaB9II\/AAAAAAAAAaI\/USfj3qzVmvcvPOduCndCUGwzm1W4sFefQCLcBGAs\/s320\/gcp-eve-ng06.JPG\" width=\"320\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u7121\u4e8b\u6210\u529f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h3>5. Firewall \u8a2d\u5b9a<\/h3>\n<p>\u958b\u653e\u304c\u5fc5\u8981\u306a\u30dd\u30fc\u30c8\u3092\u958b\u3051\u308b\u3002<br \/>FAQ\u306b\u306f\u300c\u30dd\u30c3\u30c9(\u30a2\u30ab\u30a6\u30f3\u30c8)\u6570\u306b\u3088\u3063\u3066\u5909\u308f\u308b\u300d\u3068\u3042\u3063\u305f\u3002<br \/>Community\u7248\u306fAdmin\u306e\u307f\u306a\u306e\u3067, 32769\uff5e32896\u307e\u3067\u958b\u653e\u3059\u308b\u3002<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-jMfGcVPu-uY\/W8FJLkZ9dtI\/AAAAAAAAAaY\/as5dcCbhMf43iO4IJuhK7SysveW8s7QeACLcBGAs\/s1600\/gcp-eve-ng08.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"295\" data-original-width=\"780\" height=\"121\" src=\"https:\/\/2.bp.blogspot.com\/-jMfGcVPu-uY\/W8FJLkZ9dtI\/AAAAAAAAAaY\/as5dcCbhMf43iO4IJuhK7SysveW8s7QeACLcBGAs\/s320\/gcp-eve-ng08.JPG\" width=\"320\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u65b0\u898f\u30eb\u30fc\u30eb\u4f5c\u6210<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-THZgdw8xMGw\/W8FJLqJ6I4I\/AAAAAAAAAac\/C8E6UT4Ov9Uxc3RNhd4bSHEQTBbtzG33QCLcBGAs\/s1600\/gcp-eve-ng09.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"765\" data-original-width=\"508\" height=\"320\" src=\"https:\/\/3.bp.blogspot.com\/-THZgdw8xMGw\/W8FJLqJ6I4I\/AAAAAAAAAac\/C8E6UT4Ov9Uxc3RNhd4bSHEQTBbtzG33QCLcBGAs\/s320\/gcp-eve-ng09.JPG\" width=\"212\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u9001\u4fe1\u5143IP\u306f\u6307\u5b9a\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u304c, \u3072\u3068\u307e\u305aANY\u3067\u958b\u653e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u4f4e\u9650, admin\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5909\u66f4\u3057\u3066\u304a\u304f\u3002<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-k4XSIDgrK3M\/W8FLEctG6rI\/AAAAAAAAAas\/coyFVa8VyQsolVyDD0_07rH9zuQaWO0QACLcBGAs\/s1600\/gcp-eve-ng10.JPG\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"719\" data-original-width=\"592\" height=\"320\" src=\"https:\/\/2.bp.blogspot.com\/-k4XSIDgrK3M\/W8FLEctG6rI\/AAAAAAAAAas\/coyFVa8VyQsolVyDD0_07rH9zuQaWO0QACLcBGAs\/s320\/gcp-eve-ng10.JPG\" width=\"263\" \/><\/a><\/div>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GCP\u3067\u30cd\u30b9\u30c8\u3092\u6709\u52b9\u5316\u3059\u308b\u3002\uff08Google Cloud SDK shell \u3092\u4f7f\u3046\uff09\u30cd\u30b9\u30c8\u304c\u5229\u7528\u3067\u304d\u308b\u306e\u306fHaswell\u4ee5\u964d\u306eCPU\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u30ea\u30fc\u30b8\u30e7\u30f3\u3002EVE-NG\u306f\u30d9\u30a2\u30e1\u30bf\u30eb\u306e\u30c7\u30d7\u30ed\u30a4\u3092\u53c2\u8003\u306b\u3059\u308b\u3002http:\/\u2026 <span class=\"read-more\"><a href=\"https:\/\/wp.zassoul.com\/?p=500\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,9,6,15],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-eve-ng","category-gcp","category-it","category-network"],"_links":{"self":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":0,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}