{"id":1685,"date":"2012-05-24T22:23:35","date_gmt":"2012-05-24T13:23:35","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1685"},"modified":"2012-05-31T03:22:21","modified_gmt":"2012-05-30T18:22:21","slug":"amazon-ec2%e7%94%a8%e3%81%aefedora-16%e7%8b%ac%e8%87%aaami%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1685","title":{"rendered":"Amazon EC2\u7528\u306eFedora 16\u72ec\u81eaAMI\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"<p>Fedora\u3063\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u4e0a\u304c\u308b\u306e\u304c\u65e9\u3044\uff08\u7d04\u534a\u5e74\u3054\u3068\uff09\u3046\u3048\u306b\u3001\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3059\u308b\u3046\u3048\u3067\u6839\u5e79\u306b\u95a2\u308f\u308b\u90e8\u5206\u306b\u6b21\u3005\u3068\u65b0\u3057\u3044\u4ed5\u7d44\u307f\u304c\u5c0e\u5165\u3055\u308c\u305f\u308a\u3057\u3066\u3001\u968f\u6642\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u8ffd\u5f93\u3057\u3066\u3044\u304f\u306a\u3089\u307e\u3060\u3057\u3082\u30013\u30644\u3064\u4ee5\u4e0a\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u304b\u3092\u6700\u65b0\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u306e\u306b\u306f\u304b\u306a\u308a\u82e6\u52b4\u3057\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u6b63\u76f4\u9577\u304f\u904b\u7528\u3057\u3066\u3044\u304f\u30b5\u30fc\u30d0\u306eOS\u3068\u3057\u3066\u306f\u304a\u52e7\u3081\u3057\u3065\u3089\u3044\uff08\u305d\u3082\u305d\u3082\u67af\u308c\u3066\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u591a\u3044\u3057\uff09\u306e\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u65b0\u3057\u304f\u7a2e\u985e\u3082\u8c4a\u5bcc\u306a\u306e\u3067\u3069\u3046\u3057\u3066\u3082\u4f7f\u3063\u3061\u3083\u3044\u307e\u3059\u3002<br \/>\n\uff08\u6b20\u70b9\u3068\u3044\u3046\u3088\u308a\u306f\u305d\u3046\u3044\u3046\u30c7\u30a3\u30b9\u30c8\u30ea\u306a\u3060\u3051\u3067\u3059\u306d\uff09<\/p>\n<p>EC2\u3068\u304b\u3060\u3068Amazon Linux\u3092\u4f7f\u3046\u306e\u304c\u9577\u304f\u904b\u7528\u3057\u3066\u3044\u304f\u3046\u3048\u3067\u306f\u4e00\u756a\u3044\u3044\u306e\u304b\u306a\u306a\u3093\u3066\u601d\u3044\u307e\u3059\u3002<br \/>\nyum\u4f7f\u3048\u308b\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u6bd4\u8f03\u7684\u65b0\u3057\u3081\u3060\u3057\u3002<br \/>\n\u305f\u3060\u7a2e\u985e\u304c\u5c11\u306a\u304f\u3001\u5c11\u3057\u3067\u3082\u30de\u30a4\u30ca\u30fc\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u307b\u307c\u5165\u3063\u3066\u306a\u3044\u306e\u304c\u3064\u3089\u3044\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\n\u4ed6\u306eOS\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u7b49\u3092\u4f7f\u3046\u3068\u7a2e\u985e\u306f\u5897\u3084\u305b\u308b\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u305d\u3093\u306a\u4e8b\u3059\u308b\u3050\u3089\u3044\u306a\u3089Fedora\u3067\u3082\u2026\u306a\u3069\u3068\u601d\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u307e\u3041Fedora 16\u3092\u4f7f\u3063\u3061\u3083\u304a\u3046\u3088\u3068\u601d\u3063\u3066\u8272\u3005\u8abf\u3079\u305f\u3093\u3067\u3059\u304c\u3001Amazon\u516c\u5f0fAMI\u3060\u3068Fedora Core 4, 6, Fedora 8\u3057\u304b\u306a\u304f\u3001Fedora\u516c\u5f0f\u306eFedora 16 AMI\u306fEBS backed\u306a\u306e\u3057\u304b\u898b\u3064\u3051\u308c\u306a\u304f\u3066\u3002<br \/>\n\uff08\u306a\u3093\u304bFedora\u516c\u5f0f\u306e\u306f\u3061\u3087\u3063\u3068\u524d\u306finstance store\u306aAMI\u3082\u3042\u3063\u305f\u5f62\u8de1\u306f\u3042\u308b\u3093\u3067\u3059\u304c\u2026\u63a2\u3057\u65b9\u304c\u60aa\u304b\u3063\u305f\u306e\u304b\u306a\uff09<\/p>\n<p>\u306a\u3089\u72ec\u81ea\u306bAMI\u3092\u4f5c\u308b\u3079\u3068\u3044\u3046\u3053\u3068\u3067\u8abf\u3079\u305f\u3089\u3001Fedora\u516c\u5f0f\u306bEC2\u7528AMI\u306e\u4f5c\u308a\u65b9\u30ba\u30d0\u30ea\u305d\u306e\u3082\u306e\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/fedoraproject.org\/wiki\/Cloud_SIG\/EC2_Creation\" target=\"_blank\">http:\/\/fedoraproject.org\/wiki\/Cloud_SIG\/EC2_Creation<\/a><\/p>\n<p>\u30ea\u30f3\u30af\u5148\u3092\u898b\u3066\u3044\u305f\u3060\u304f\u3068\u5206\u304b\u308b\u3068\u304a\u308a\u3001\u304b\u306a\u308a\u7c21\u5358\u306a\u624b\u9806\u306a\u3093\u3067\u3059\u304c\u3001\u5c11\u3057\u8aac\u660e\u304c\u7701\u304b\u308c\u3066\u3044\u3066\u30cf\u30de\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3068\u3053\u308d\u304c\u3042\u308b\u306e\u3067\u3001\u81ea\u5206\u304c\u3084\u3063\u305f\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u6700\u7d42\u7684\u306b\u306fi386\u306asmall\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff08\u30b9\u30c8\u30ec\u30fc\u30b8\u306finctance store\uff09\u3067\u52d5\u4f5c\u3055\u305b\u308b\u4e8b\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>1. \u4f5c\u696d\u7528\u30de\u30b7\u30f3\u306e\u7528\u610f<\/h3>\n<p>\u4eca\u56de\u306f\u30ed\u30fc\u30ab\u30eb\u306eVirtualBox\u3067Fedora 16\u3092\u30cd\u30c3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6700\u5c0f\u9650\uff09\u3057\u305f\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u5f8c\u8ff0\u3059\u308bboxgrinder\u304c\u52d5\u3051\u3070\u4f5c\u696d\u7528\u30de\u30b7\u30f3\u306f\u3069\u306eOS\u3067\u3082\u3044\u3044\u3088\u3046\u306a\u6c17\u306f\u3057\u307e\u3059\u304c\u3001\u591a\u5206Fedora\u4f7f\u3063\u305f\u307b\u3046\u304c\u697d\u3067\u3059\u3002<br \/>\n\u30cd\u30c3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6700\u5c0f\u9650\uff09\u306a\u306e\u3067\u3001network\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u3084\u3001SSH\u30b5\u30fc\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u3042\u3068\u3001\u4f5c\u696d\u7528\u30de\u30b7\u30f3\u306e\u6642\u8a08\u304c\u30ba\u30ec\u3066\u308b\u3068\u3042\u3068\u3067S3\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u304d\u306b\u5931\u6557\u3059\u308b\u306e\u3067\u3001ntpd\u3092\u52d5\u304b\u3057\u3066\u6642\u523b\u5408\u308f\u305b\u3057\u3068\u304d\u307e\u3057\u305f\u3002<br \/>\n\u4f7f\u3044\u6368\u3066\u306e\u74b0\u5883\u306e\u3064\u3082\u308a\u306a\u306e\u3067\u3001\u7d30\u304b\u3044\u8a2d\u5b9a\u306f\u305b\u305a\u3001\u4ee5\u964d\u306froot\u3067\u4f5c\u696d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>2. \u4f5c\u696d\u30de\u30b7\u30f3\u306bboxgrinder\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">yum install rubygem-boxgrinder-core rubygem-boxgrinder-build<\/pre>\n<p>boxgrinder\u306f\u5404\u7a2e\u4eee\u60f3\u5316\u6280\u8853\uff08VMWare, VirtualPC, VirtualBox, EC2\uff09\u306b\u5bfe\u3059\u308b\u5404\u7a2e\u4eee\u60f3\u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\uff08Fedora, CentOS, RHEL, Scientific Linux\uff09\u306e\u69cb\u7bc9\u3092\u4fbf\u5229\u306b\u3057\u3066\u304f\u308c\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<br \/>\n\u5404\u7a2e\u4eee\u60f3\u5316\u6280\u8853\u3001\u5404\u7a2e\u4eee\u60f3\u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3044\u3046\u5f62\u3067\u5bfe\u5fdc\u3057\u3066\u308b\u306e\u3067\u3001\u305d\u306e\u3046\u3061\u9069\u7528\u53ef\u80fd\u306a\u74b0\u5883\u306f\u5897\u3048\u308b\u3093\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001EC2\u7528\u306eFedora 16\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h3>3. boxgrinder\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f<\/h3>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3001\/root\/.boxgrinder\/config \u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">plugins:\r\n  s3:\r\n    access_key: &lt;\u30a2\u30af\u30bb\u30b9\u30ad\u30fc&gt;\r\n    secret_access_key: &lt;\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc&gt;\r\n    bucket: &lt;\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308bS3\u306e\u30d0\u30b1\u30c3\u30c8\u540d&gt; # \u5b58\u5728\u3057\u3066\u306a\u3051\u308c\u3070\u81ea\u52d5\u3067\u4f5c\u3089\u308c\u308b\r\n    account_number: &lt;\u30a2\u30ab\u30a6\u30f3\u30c8\u756a\u53f7&gt; # AWS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3068\u304d\u306b\u30da\u30fc\u30b8\u306e\u53f3\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u308b\u53e3\u5ea7\u756a\u53f7xxxx-xxxx-xxxx\r\n    path: \/images # \u4e0a\u3067\u6307\u5b9a\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u540d\u306b\u3053\u306e\u540d\u524d\u3067\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3066\u3053\u306e\u4e2d\u306b\u30a4\u30e1\u30fc\u30b8\u304c\u7f6e\u304b\u308c\u308b\r\n    cert_file: &lt;cert-xxx.pem\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9&gt;\r\n    key_file: &lt;pk-xxx.pem\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9&gt; <\/pre>\n<p>\u30b7\u30e3\u30fc\u30d7\u300c#\u300d\u304b\u3089\u59cb\u307e\u308b\u30b3\u30e1\u30f3\u30c8\u306f\u8aac\u660e\u306e\u305f\u3081\u306b\u8ffd\u52a0\u3057\u305f\u3082\u306e\u3067\u3001\u5b9f\u969b\u306b\u300c#\u300d\u3067\u30b3\u30e1\u30f3\u30c8\u3092\u4ed8\u3051\u305f\u3082\u306e\u304c\u52d5\u4f5c\u3059\u308b\u304b\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<br \/>\nBG_CONFIG_FILE \u3068\u3044\u3046\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3046\u3068\u3001\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u306f\u81ea\u7531\u306b\u6c7a\u3081\u308c\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<h3>4. \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u9069\u5f53\u306a\u7b87\u6240\u306b\u8a2d\u7f6e<\/h3>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3001fedora16.appl \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u306a\u3093\u3067\u3082\u3044\u3044\u3051\u3069\u62e1\u5f35\u5b50\u306fboxgrinder\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u308b\u306e\u3067\u5fc5\u305a.appl\u306b\u3059\u308b\u4e8b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">name: fedora16\r\nsummary: Fedora 16 Basic\r\nos:\r\n  name: fedora\r\n  version: 16\r\nhardware:\r\n  partitions:\r\n    &quot;\/&quot;:\r\n      size: 10\r\npackages:\r\n  - @base\r\n  - @core\r\n  - yum\r\n  - openssh-server\r\n  - openssh-clients\r\n  - system-config-firewall-base\r\n  - sudo<\/pre>\n<p>\u66f8\u5f0f\u304b\u3089\u3057\u3066\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u91cd\u8981\u306a\u610f\u5473\u3092\u6301\u3064\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5404\u9805\u76ee\u306e\u8aac\u660e<br \/>\nname: \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306e\u540d\u524d\u3002\u3053\u306e\u540d\u524d\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066S3\u4e0a\u306b\u30a4\u30e1\u30fc\u30b8\u30d0\u30f3\u30c9\u30eb\u304c\u7f6e\u304b\u308c\u307e\u3059\u3002Fedora\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u306f\u5927\u6587\u5b57\u304c\u4f7f\u308f\u308c\u3066\u307e\u3059\u304c\u3001\u5f8c\u306e\u51e6\u7406\u3067S3\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3053\u308d\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u5c0f\u6587\u5b57\u3060\u3051\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\nsummary: \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306e\u8aac\u660e\u3002\u591a\u5206\u9069\u5f53\u3067\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nos: os\u306e\u6307\u5b9a\u3002name\u304c\u30c7\u30a3\u30b9\u30c8\u30ea\u540d\u3001version\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u540d\u3067\u3059\u3002boxgrinder\u306f\u3053\u3053\u3092\u898b\u3066os\u3092\u6c7a\u5b9a\u3059\u308b\u306e\u3067\u9593\u9055\u3044\u306a\u3044\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\nhardware: \u8272\u3005\u8a2d\u5b9a\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u30eb\u30fc\u30c8\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b10GB\u78ba\u4fdd\u3059\u308b\u8a2d\u5b9a\u3067\u3059\u3002EC2\u306esmall\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff08instance store\uff09\u5411\u3051\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\npackages: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u5217\u6319\u3057\u307e\u3059\u3002\u3053\u308c\u304cEC2\u7528\u306e\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002\uff08openssh-clients\u3068system-config-filewall-base\u306f\u3044\u3089\u306a\u3044\u304b\u3082\uff09\u521d\u671f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306f\u3001yum install\u3067\u6307\u5b9a\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u8ffd\u52a0\u3057\u3066\u3044\u3051\u3070\u3044\u3044\u3060\u3051\u3067\u3059\uff08\u4f8b\u3048\u3070 &#8211; httpd \u3068\u304b\uff09\u3002\u4f9d\u5b58\u95a2\u4fc2\u306f\u591a\u5206\u81ea\u52d5\u7684\u306b\u89e3\u6c7a\u3057\u3066\u304f\u308c\u308b\u30cf\u30ba\u3002<\/p>\n<h3>5. \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u69cb\u7bc9\u3057\u3066S3\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">boxgrinder-build \/path\/to\/fedora16.appl -p ec2 -d ami -f<\/pre>\n<p>-p\u30aa\u30d7\u30b7\u30e7\u30f3\u3068-d\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u307e\u3041\u304a\u5bdf\u3057\u306e\u901a\u308a\u306e\u610f\u5473\u3067\u3059\u3002<br \/>\n\u7d30\u304b\u3044\u3053\u3068\u306f\u3088\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n-f\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001boxgrinder-build\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u524d\u56de\u306e\u51e6\u7406\u304c\u9014\u4e2d\u3067\u7d42\u308f\u3063\u305f\u3053\u3068\u3092\u691c\u51fa\u3057\u305f\u969b\u3001\u305d\u306e\u7d9a\u304d\u304b\u3089\u51e6\u7406\u3092\u884c\u3063\u3066\u304f\u308c\u307e\u3059\u3002\u305d\u308c\u3092\u7121\u52b9\u5316\u3059\u308b\u306e\u304c-f\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8272\u3005\u3044\u3058\u308a\u306a\u304c\u3089\u4f55\u56de\u3082\u8a66\u3059\u3068\u304d\u306b\u306f-f\u3092\u4ed8\u3051\u3068\u3044\u305f\u65b9\u304c\u6642\u9593\u306f\u639b\u304b\u308a\u307e\u3059\u304c\u6df7\u4e71\u306f\u5c11\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3060\u3051\u3067\u3001\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306e\u69cb\u7bc9\u304b\u3089\u3001AMI\u7528\u306e\u30d0\u30f3\u30c9\u30eb\u5316\u3001S3\u3078\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001AMI\u306e\u767b\u9332\u307e\u3067\u3084\u3063\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u307e\u3041\u3001\u3046\u307e\u304f\u3044\u3051\u3070\u3067\u3059\u304c\uff08\u6c57<br \/>\nboxgrinder-build\u304c\u306a\u3093\u304b\u4e0d\u5b89\u5b9a\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u304f\u5909\u66f4\u3057\u3066\u306a\u3044\u306e\u306b\u3001\u30a8\u30e9\u30fc\u3067\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3082\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u30de\u30c1\u30de\u30c1\u3002<br \/>\n\u305d\u3046\u3044\u3046\u3068\u304d\u306f-f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7701\u3044\u3066\u7e70\u308a\u8fd4\u305b\u3070\u3044\u3044\u3060\u3051\u3067\u3059\u304c\u3001\u4e0d\u5b89\u306a\u306e\u3067-f\u306f\u5e38\u306b\u4ed8\u3051\u3066\u307e\u3057\u305f\u3002<br \/>\n\u81ea\u5206\u306e\u5834\u5408\u306f\u3001\u591a\u304f\u30662\u56de\u9023\u7d9a\u3067\u8b0e\u306e\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>6. \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u8d77\u52d5<\/h3>\n<p>\u3042\u3068\u306fEC2\u306e\u7ba1\u7406\u753b\u9762\u3067AMI\u3092\u9078\u629e\u3057Launch Instance\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093SSH\u306722\u756a\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u306e\u3067Security Group\u3067\u958b\u3051\u3068\u304b\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<br \/>\n\u3042\u3068\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u540d\u306fec2-user\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8272\u3005\u7a81\u304d\u8a70\u3081\u305f\u3044\u3068\u3053\u308d\u306f\u6b8b\u3063\u3066\u308b\u3093\u3067\u3059\u304c\u3001\u3053\u3053\u306b\u81f3\u308b\u306e\u306b\u7d06\u4f59\u66f2\u6298\u3042\u3063\u3066\u529b\u5c3d\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3042\u3068\u306f\u305f\u306e\u3093\u3060\uff08\uff76\uff9e\uff78\uff98<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fedora\u3063\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u4e0a\u304c\u308b\u306e\u304c\u65e9\u3044\uff08\u7d04\u534a\u5e74\u3054\u3068\uff09\u3046\u3048\u306b\u3001\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3059\u308b\u3046\u3048\u3067\u6839\u5e79\u306b\u95a2\u308f\u308b\u90e8\u5206\u306b\u6b21\u3005\u3068\u65b0\u3057\u3044\u4ed5\u7d44\u307f\u304c\u5c0e\u5165\u3055\u308c\u305f\u308a\u3057\u3066\u3001\u968f\u6642\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u8ffd\u5f93\u3057\u3066\u3044\u304f\u306a\u3089\u307e\u3060\u3057\u3082\u30013\u30644\u3064\u4ee5\u4e0a\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u304b\u3092\u6700\u65b0\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u306e\u306b\u306f\u304b\u306a\u308a\u82e6\u52b4\u3057\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u6b63\u76f4\u9577\u304f\u904b\u7528\u3057\u3066\u3044\u304f\u30b5\u30fc\u30d0\u306eOS\u3068\u3057\u3066\u306f\u304a\u52e7\u3081\u3057\u3065\u3089\u3044\uff08\u305d\u3082\u305d\u3082\u67af\u308c\u3066\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u591a\u3044\u3057\uff09\u306e\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u65b0\u3057\u304f\u7a2e\u985e\u3082\u8c4a\u5bcc\u306a\u306e\u3067\u3069\u3046\u3057\u3066\u3082\u4f7f\u3063\u3061\u3083\u3044\u307e\u3059\u3002<br \/>\n\uff08\u6b20\u70b9\u3068\u3044\u3046\u3088\u308a\u306f\u305d\u3046\u3044\u3046\u30c7\u30a3\u30b9\u30c8\u30ea\u306a\u3060\u3051\u3067\u3059\u306d\uff09<\/p>\n<p>EC2\u3068\u304b\u3060\u3068Amazon Linux\u3092\u4f7f\u3046\u306e\u304c\u9577\u304f\u904b\u7528\u3057\u3066\u3044\u304f\u3046\u3048\u3067\u306f\u4e00\u756a\u3044\u3044\u306e\u304b\u306a\u306a\u3093\u3066\u601d\u3044\u307e\u3059\u3002<br \/>\nyum\u4f7f\u3048\u308b\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u6bd4\u8f03\u7684\u65b0\u3057\u3081\u3060\u3057\u3002<br \/>\n\u305f\u3060\u7a2e\u985e\u304c\u5c11\u306a\u304f\u3001\u5c11\u3057\u3067\u3082\u30de\u30a4\u30ca\u30fc\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u307b\u307c\u5165\u3063\u3066\u306a\u3044\u306e\u304c\u3064\u3089\u3044\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\n\u4ed6\u306eOS\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u7b49\u3092\u4f7f\u3046\u3068\u7a2e\u985e\u306f\u5897\u3084\u305b\u308b\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u305d\u3093\u306a\u4e8b\u3059\u308b\u3050\u3089\u3044\u306a\u3089Fedora\u3067\u3082\u2026\u306a\u3069\u3068\u601d\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u307e\u3041Fedora 16\u3092\u4f7f\u3063\u3061\u3083\u304a\u3046\u3088\u3068\u601d\u3063\u3066\u8272\u3005\u8abf\u3079\u305f\u3093\u3067\u3059\u304c\u3001Amazon\u516c\u5f0fAMI\u3060\u3068Fedora Core 4, 6, Fedora 8\u3057\u304b\u306a\u304f\u3001Fedora\u516c\u5f0f\u306eFedora 16 AMI\u306fEBS backed\u306a\u306e\u3057\u304b\u898b\u3064\u3051\u308c\u306a\u304f\u3066\u3002<br \/>\n\uff08\u306a\u3093\u304bFedora\u516c\u5f0f\u306e\u306f\u3061\u3087\u3063\u3068\u524d\u306finstance store\u306aAMI\u3082\u3042\u3063\u305f\u5f62\u8de1\u306f\u3042\u308b\u3093\u3067\u3059\u304c\u2026\u63a2\u3057\u65b9\u304c\u60aa\u304b\u3063\u305f\u306e\u304b\u306a\uff09<\/p>\n<p>\u306a\u3089\u72ec\u81ea\u306bAMI\u3092\u4f5c\u308b\u3079\u3068\u3044\u3046\u3053\u3068\u3067\u8abf\u3079\u305f\u3089\u3001Fedora\u516c\u5f0f\u306bEC2\u7528AMI\u306e\u4f5c\u308a\u65b9\u30ba\u30d0\u30ea\u305d\u306e\u3082\u306e\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/fedoraproject.org\/wiki\/Cloud_SIG\/EC2_Creation\" target=\"_blank\">http:\/\/fedoraproject.org\/wiki\/Cloud_SIG\/EC2_Creation<\/a><\/p>\n<p>\u30ea\u30f3\u30af\u5148\u3092\u898b\u3066\u3044\u305f\u3060\u304f\u3068\u5206\u304b\u308b\u3068\u304a\u308a\u3001\u304b\u306a\u308a\u7c21\u5358\u306a\u624b\u9806\u306a\u3093\u3067\u3059\u304c\u3001\u5c11\u3057\u8aac\u660e\u304c\u7701\u304b\u308c\u3066\u3044\u3066\u30cf\u30de\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3068\u3053\u308d\u304c\u3042\u308b\u306e\u3067\u3001\u81ea\u5206\u304c\u3084\u3063\u305f\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u6700\u7d42\u7684\u306b\u306fi386\u306asmall\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff08\u30b9\u30c8\u30ec\u30fc\u30b8\u306finctance store\uff09\u3067\u52d5\u4f5c\u3055\u305b\u308b\u4e8b\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>1. \u4f5c\u696d\u7528\u30de\u30b7\u30f3\u306e\u7528\u610f<\/h3>\n<p>\u4eca\u56de\u306f\u30ed\u30fc\u30ab\u30eb\u306eVirtualBox\u3067Fedora 16\u3092\u30cd\u30c3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6700\u5c0f\u9650\uff09\u3057\u305f\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u5f8c\u8ff0\u3059\u308bboxgrinder\u304c\u52d5\u3051\u3070\u4f5c\u696d\u7528\u30de\u30b7\u30f3\u306f\u3069\u306eOS\u3067\u3082\u3044\u3044\u3088\u3046\u306a\u6c17\u306f\u3057\u307e\u3059\u304c\u3001\u591a\u5206Fedora\u4f7f\u3063\u305f\u307b\u3046\u304c\u697d\u3067\u3059\u3002<br \/>\n\u30cd\u30c3\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6700\u5c0f\u9650\uff09\u306a\u306e\u3067\u3001network\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u3084\u3001SSH\u30b5\u30fc\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u3042\u3068\u3001\u4f5c\u696d\u7528\u30de\u30b7\u30f3\u306e\u6642\u8a08\u304c\u30ba\u30ec\u3066\u308b\u3068\u3042\u3068\u3067S3\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u304d\u306b\u5931\u6557\u3059\u308b\u306e\u3067\u3001ntpd\u3092\u52d5\u304b\u3057\u3066\u6642\u523b\u5408\u308f\u305b\u3057\u3068\u304d\u307e\u3057\u305f\u3002<br \/>\n\u4f7f\u3044\u6368\u3066\u306e\u74b0\u5883\u306e\u3064\u3082\u308a\u306a\u306e\u3067\u3001\u7d30\u304b\u3044\u8a2d\u5b9a\u306f\u305b\u305a\u3001\u4ee5\u964d\u306froot\u3067\u4f5c\u696d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>2. \u4f5c\u696d\u30de\u30b7\u30f3\u306bboxgrinder\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">yum install rubygem-boxgrinder-core rubygem-boxgrinder-build<\/pre>\n<p>boxgrinder\u306f\u5404\u7a2e\u4eee\u60f3\u5316\u6280\u8853\uff08VMWare, VirtualPC, VirtualBox, EC2\uff09\u306b\u5bfe\u3059\u308b\u5404\u7a2e\u4eee\u60f3\u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\uff08Fedora, CentOS, RHEL, Scientific Linux\uff09\u306e\u69cb\u7bc9\u3092\u4fbf\u5229\u306b\u3057\u3066\u304f\u308c\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<br \/>\n\u5404\u7a2e\u4eee\u60f3\u5316\u6280\u8853\u3001\u5404\u7a2e\u4eee\u60f3\u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3044\u3046\u5f62\u3067\u5bfe\u5fdc\u3057\u3066\u308b\u306e\u3067\u3001\u305d\u306e\u3046\u3061\u9069\u7528\u53ef\u80fd\u306a\u74b0\u5883\u306f\u5897\u3048\u308b\u3093\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001EC2\u7528\u306eFedora 16\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h3>3. boxgrinder\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f<\/h3>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3001\/root\/.boxgrinder\/config \u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">plugins:\r\n  s3:\r\n    access_key: &lt;\u30a2\u30af\u30bb\u30b9\u30ad\u30fc&gt;\r\n    secret_access_key: &lt;\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc&gt;\r\n    bucket: &lt;\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308bS3\u306e\u30d0\u30b1\u30c3\u30c8\u540d&gt; # \u5b58\u5728\u3057\u3066\u306a\u3051\u308c\u3070\u81ea\u52d5\u3067\u4f5c\u3089\u308c\u308b\r\n    account_number: &lt;\u30a2\u30ab\u30a6\u30f3\u30c8\u756a\u53f7&gt; # AWS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3068\u304d\u306b\u30da\u30fc\u30b8\u306e\u53f3\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u308b\u53e3\u5ea7\u756a\u53f7xxxx-xxxx-xxxx\r\n    path: \/images # \u4e0a\u3067\u6307\u5b9a\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u540d\u306b\u3053\u306e\u540d\u524d\u3067\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3066\u3053\u306e\u4e2d\u306b\u30a4\u30e1\u30fc\u30b8\u304c\u7f6e\u304b\u308c\u308b\r\n    cert_file: &lt;cert-xxx.pem\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9&gt;\r\n    key_file: &lt;pk-xxx.pem\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9&gt; <\/pre>\n<p>\u30b7\u30e3\u30fc\u30d7\u300c#\u300d\u304b\u3089\u59cb\u307e\u308b\u30b3\u30e1\u30f3\u30c8\u306f\u8aac\u660e\u306e\u305f\u3081\u306b\u8ffd\u52a0\u3057\u305f\u3082\u306e\u3067\u3001\u5b9f\u969b\u306b\u300c#\u300d\u3067\u30b3\u30e1\u30f3\u30c8\u3092\u4ed8\u3051\u305f\u3082\u306e\u304c\u52d5\u4f5c\u3059\u308b\u304b\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<br \/>\nBG_CONFIG_FILE \u3068\u3044\u3046\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3046\u3068\u3001\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u306f\u81ea\u7531\u306b\u6c7a\u3081\u308c\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<h3>4. \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u9069\u5f53\u306a\u7b87\u6240\u306b\u8a2d\u7f6e<\/h3>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3001fedora16.appl \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u306a\u3093\u3067\u3082\u3044\u3044\u3051\u3069\u62e1\u5f35\u5b50\u306fboxgrinder\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u308b\u306e\u3067\u5fc5\u305a.appl\u306b\u3059\u308b\u4e8b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">name: fedora16\r\nsummary: Fedora 16 Basic\r\nos:\r\n  name: fedora\r\n  version: 16\r\nhardware:\r\n  partitions:\r\n    &quot;\/&quot;:\r\n      size: 10\r\npackages:\r\n  - @base\r\n  - @core\r\n  - yum\r\n  - openssh-server\r\n  - openssh-clients\r\n  - system-config-firewall-base\r\n  - sudo<\/pre>\n<p>\u66f8\u5f0f\u304b\u3089\u3057\u3066\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u91cd\u8981\u306a\u610f\u5473\u3092\u6301\u3064\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5404\u9805\u76ee\u306e\u8aac\u660e<br \/>\nname: \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306e\u540d\u524d\u3002\u3053\u306e\u540d\u524d\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066S3\u4e0a\u306b\u30a4\u30e1\u30fc\u30b8\u30d0\u30f3\u30c9\u30eb\u304c\u7f6e\u304b\u308c\u307e\u3059\u3002Fedora\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u306f\u5927\u6587\u5b57\u304c\u4f7f\u308f\u308c\u3066\u307e\u3059\u304c\u3001\u5f8c\u306e\u51e6\u7406\u3067S3\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3053\u308d\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u5c0f\u6587\u5b57\u3060\u3051\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\nsummary: \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306e\u8aac\u660e\u3002\u591a\u5206\u9069\u5f53\u3067\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nos: os\u306e\u6307\u5b9a\u3002name\u304c\u30c7\u30a3\u30b9\u30c8\u30ea\u540d\u3001version\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u540d\u3067\u3059\u3002boxgrinder\u306f\u3053\u3053\u3092\u898b\u3066os\u3092\u6c7a\u5b9a\u3059\u308b\u306e\u3067\u9593\u9055\u3044\u306a\u3044\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\nhardware: \u8272\u3005\u8a2d\u5b9a\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u30eb\u30fc\u30c8\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b10GB\u78ba\u4fdd\u3059\u308b\u8a2d\u5b9a\u3067\u3059\u3002EC2\u306esmall\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff08instance store\uff09\u5411\u3051\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\npackages: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u5217\u6319\u3057\u307e\u3059\u3002\u3053\u308c\u304cEC2\u7528\u306e\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002\uff08openssh-clients\u3068system-config-filewall-base\u306f\u3044\u3089\u306a\u3044\u304b\u3082\uff09\u521d\u671f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306f\u3001yum install\u3067\u6307\u5b9a\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u8ffd\u52a0\u3057\u3066\u3044\u3051\u3070\u3044\u3044\u3060\u3051\u3067\u3059\uff08\u4f8b\u3048\u3070 &#8211; httpd \u3068\u304b\uff09\u3002\u4f9d\u5b58\u95a2\u4fc2\u306f\u591a\u5206\u81ea\u52d5\u7684\u306b\u89e3\u6c7a\u3057\u3066\u304f\u308c\u308b\u30cf\u30ba\u3002<\/p>\n<h3>5. \u30a2\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u69cb\u7bc9\u3057\u3066S3\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">boxgrinder-build \/path\/to\/fedora16.appl -p ec2 -d ami -f<\/pre>\n<p>-p\u30aa\u30d7\u30b7\u30e7\u30f3\u3068-d\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u307e\u3041\u304a\u5bdf\u3057\u306e\u901a\u308a\u306e\u610f\u5473\u3067\u3059\u3002<br \/>\n\u7d30\u304b\u3044\u3053\u3068\u306f\u3088\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n-f\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001boxgrinder-build\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u524d\u56de\u306e\u51e6\u7406\u304c\u9014\u4e2d\u3067\u7d42\u308f\u3063\u305f\u3053\u3068\u3092\u691c\u51fa\u3057\u305f\u969b\u3001\u305d\u306e\u7d9a\u304d\u304b\u3089\u51e6\u7406\u3092\u884c\u3063\u3066\u304f\u308c\u307e\u3059\u3002\u305d\u308c\u3092\u7121\u52b9\u5316\u3059\u308b\u306e\u304c-f\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8272\u3005\u3044\u3058\u308a\u306a\u304c\u3089\u4f55\u56de\u3082\u8a66\u3059\u3068\u304d\u306b\u306f-f\u3092\u4ed8\u3051\u3068\u3044\u305f\u65b9\u304c\u6642\u9593\u306f\u639b\u304b\u308a\u307e\u3059\u304c\u6df7\u4e71\u306f\u5c11\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3060\u3051\u3067\u3001\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306e\u69cb\u7bc9\u304b\u3089\u3001AMI\u7528\u306e\u30d0\u30f3\u30c9\u30eb\u5316\u3001S3\u3078\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001AMI\u306e\u767b\u9332\u307e\u3067\u3084\u3063\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u307e\u3041\u3001\u3046\u307e\u304f\u3044\u3051\u3070\u3067\u3059\u304c\uff08\u6c57<br \/>\nboxgrinder-build\u304c\u306a\u3093\u304b\u4e0d\u5b89\u5b9a\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u304f\u5909\u66f4\u3057\u3066\u306a\u3044\u306e\u306b\u3001\u30a8\u30e9\u30fc\u3067\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3082\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u30de\u30c1\u30de\u30c1\u3002<br \/>\n\u305d\u3046\u3044\u3046\u3068\u304d\u306f-f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7701\u3044\u3066\u7e70\u308a\u8fd4\u305b\u3070\u3044\u3044\u3060\u3051\u3067\u3059\u304c\u3001\u4e0d\u5b89\u306a\u306e\u3067-f\u306f\u5e38\u306b\u4ed8\u3051\u3066\u307e\u3057\u305f\u3002<br \/>\n\u81ea\u5206\u306e\u5834\u5408\u306f\u3001\u591a\u304f\u30662\u56de\u9023\u7d9a\u3067\u8b0e\u306e\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>6. \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u8d77\u52d5<\/h3>\n<p>\u3042\u3068\u306fEC2\u306e\u7ba1\u7406\u753b\u9762\u3067AMI\u3092\u9078\u629e\u3057Launch Instance\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093SSH\u306722\u756a\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u306e\u3067Security Group\u3067\u958b\u3051\u3068\u304b\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<br \/>\n\u3042\u3068\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u540d\u306fec2-user\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8272\u3005\u7a81\u304d\u8a70\u3081\u305f\u3044\u3068\u3053\u308d\u306f\u6b8b\u3063\u3066\u308b\u3093\u3067\u3059\u304c\u3001\u3053\u3053\u306b\u81f3\u308b\u306e\u306b\u7d06\u4f59\u66f2\u6298\u3042\u3063\u3066\u529b\u5c3d\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3042\u3068\u306f\u305f\u306e\u3093\u3060\uff08\uff76\uff9e\uff78\uff98<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[418,416,417,372,419],"class_list":["post-1685","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ami","tag-boxgrinder","tag-ec2","tag-fedora","tag-s3"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1685"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1685\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}