{"id":1253,"date":"2016-09-08T06:27:42","date_gmt":"2016-09-07T21:27:42","guid":{"rendered":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1253"},"modified":"2016-10-08T19:23:35","modified_gmt":"2016-10-08T10:23:35","slug":"vagrant%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1253","title":{"rendered":"Vagrant\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>EC\u30b5\u30a4\u30c8\u306e\u958b\u767a\u3092docer\u30d9\u30fc\u30b9\u3067\u3084\u308d\u3046\u3068\u3057\u3066\u3044\u305f\u3051\u3069Vagrant\u5168\u304f\u89e6\u3063\u3066\u3044\u306a\u3044\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3057\u3070\u3089\u304f\u306f\u52c9\u5f37\u3092\u517c\u306dVagrant\u30d9\u30fc\u30b9\u3067\u958b\u767a\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3046\u3002<\/p>\n<p>CentOS7\u306e\u30db\u30b9\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u958b\u59cb\u3002<br \/>\nKVM+qume\u3067\u3082\u52d5\u304f\u3068\u306e\u3053\u3068\u3067<a href=\"http:\/\/knowledge.sakura.ad.jp\/tech\/2535\/\">\u3055\u304f\u3089\u306e\u30ca\u30ec\u30c3\u30b8<\/a>\u3055\u3093\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30da\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b9f\u884c\u3002<\/p>\n<pre>[yoshitake@localhost ~]$ sudo vagrant up\r\n[sudo] password for yoshitake:\r\nBringing machine 'default' up with 'libvirt' provider...\r\n==&gt; default: Cleaned up shared folders\r\n==&gt; default: ================\r\n==&gt; default: Machine id: a3d96b45-fd52-4590-a598-9a63744b7d58\r\n==&gt; default: Should be mounting folders\r\n==&gt; default: \/vagrant, opts: {:guestpath=&gt;\"\/vagrant\", :hostpath=&gt;\"\/home\/yoshitake\", :disabled=&gt;false, :__vagrantfile=&gt;true, :target=&gt;\"\/vagrant\", :accessmode=&gt;\"passthrough\", :mount=&gt;true, :readonly=&gt;nil, :mount_tag=&gt;\"05e62b45705da84350317538981ae9c\"}\r\n==&gt; default: Starting domain.\r\nThere was an error talking to Libvirt. The error message is shown\r\nbelow:\r\n\r\nCall to virDomainCreateWithFlags failed: \u5185\u90e8\u30a8\u30e9\u30fc: \u30e2\u30cb\u30bf\u30fc\u306b\u63a5\u7d9a\u4e2d\u306b\u30d7\u30ed\u30bb\u30b9 \u304c\u7d42\u4e86\u3057\u307e\u3057\u305f: 2016-09-07T21:13:31.339854Z qemu-kvm: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=05e62b45705da84350317538981ae9c,bus=pci.0,addr=0x4: 'virtio-9p-pci' is not a valid device model name<\/pre>\n<p>\u6839\u6df1\u305d\u3046\u3002\u3002\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u3068\u3082\u306b\u3084\u3063\u3066\u304f\u3068\u306f\u307e\u308a\u305d\u3046\u306a\u306e\u3067virtualbox\u3067\u8d77\u52d5\u3002<\/p>\n<pre>sudo vagrant destroy\r\nsudo vagrant up --provider=virtualbox<\/pre>\n<p>\u30ef\u30fc\u30cb\u30f3\u30b0\u304c\u3067\u3066\u3057\u3070\u3089\u304f\u30ea\u30c8\u30e9\u30a4\u7e70\u308a\u8fd4\u3057\u305f\u5f8c\u306b\u7d42\u4e86\u3002<\/p>\n<pre>default: Inserting generated public key within guest...\r\ndefault: Removing insecure key from the guest if it's present...\r\ndefault: Key inserted! Disconnecting and reconnecting using new<a class=\"keyword\" href=\"http:\/\/d.hatena.ne.jp\/keyword\/SSH\">SSH<\/a> key...\r\n<span style=\"color: #ff0000;\">default: Warning: Authentication failure. Retrying...<\/span>\r\n<span style=\"color: #ff0000;\">default: Warning: Authentication failure. Retrying...<\/span><\/pre>\n<p>\u539f\u56e0\u306fVagrant 1.8.5\u306e\u30d0\u30b0\u3068\u306e\u3053\u3068\u3067<del><a href=\"http:\/\/stknohg.hatenablog.jp\/entry\/2016\/07\/26\/190330\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306b\u4fee\u6b63\u3002<\/del><\/p>\n<p>\u4e00\u5ea6\u8d77\u52d5\u3057\u305f\u3060\u3051\u3067\u3001suspend-&gt;resume\u3067\u518d\u5ea6\u767a\u751f\u3002CTRL+C\u3067\u4e00\u65e6\u505c\u6b62\u3057halt-&gt;up\u3068\u3057\u305f\u3068\u3053\u308d\u307e\u3060\u767a\u751f\u3002\u6642\u9593\u306a\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u72b6\u6cc1\u30e1\u30e2\u66f8\u3044\u3066\u5f8c\u3067\u78ba\u8a8d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><del>(9\/16\u8ffd\u8a18)<\/del><\/p>\n<p><del>\u30ea\u30f3\u30af\u5148\u306e\u3088\u3046\u306b<span class=\"user-select-contain\" title=\"plugins\/guests\/linux\/cap\/public_key.rb\"> plugins\/guests\/linux\/cap\/public_key.rb <\/span>\u306b<\/del><\/p>\n<p><del><span class=\"blob-code-inner\"><span class=\"pl-s\">chmod 0600 ~\/.ssh\/authorized_keys<\/span><\/span><\/del><\/p>\n<p><del>\u3092\u8ffd\u8a18\u3057\u3066\u3044\u308b\u304c\u30b2\u30b9\u30c8\u306e<span class=\"blob-code-inner\"><span class=\"pl-s\">authorized_keys<\/span><\/span>\u304cvagrant destroty &amp; up\u3057\u3066\u3082664\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/del><\/p>\n<p><del>\u4f55\u304b\u624b\u9806\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3001\u30b2\u30b9\u30c8\u306e<span class=\"blob-code-inner\"><span class=\"pl-s\">authorized_keys<\/span><\/span>\u3092\u76f4\u63a5<\/del><\/p>\n<p><del><span class=\"blob-code-inner\"><span class=\"pl-s\">chmod 600 authorized_keys<br \/>\n<\/span><\/span><\/del><\/p>\n<p><del>\u3057\u3066\u5bfe\u51e6\u3002\u3053\u3093\u3069\u3053\u305d\u52d5\u3044\u3066\u3044\u308b\u3063\u307d\u3044\u3002\u3068\u308a\u3042\u3048\u305a\u4f5c\u308b\u305f\u3073\u306bchmod\u3059\u308b\u3053\u3068\u306b\u3059\u308b\u3002<\/del><\/p>\n<p>&nbsp;<\/p>\n<p>(10\/8\u8ffd\u8a18)<\/p>\n<p>\u5358\u306bTypo\u3067\u3057\u305f\u3002\u624b\u52d5\u3067chmod\u5bfe\u5fdc\u3060\u3068\u3001Test Kitchen\u304c\u52d5\u304b\u306a\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>EC\u30b5\u30a4\u30c8\u306e\u958b\u767a\u3092docer\u30d9\u30fc\u30b9\u3067\u3084\u308d\u3046\u3068\u3057\u3066\u3044\u305f\u3051\u3069Vagrant\u5168\u304f\u89e6\u3063\u3066\u3044\u306a\u3044\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3057\u3070\u3089\u304f\u306f\u52c9\u5f37\u3092\u517c\u306dVagrant\u30d9\u30fc\u30b9\u3067\u958b\u767a\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3046\u3002 CentOS7\u306e\u30db\u30b9\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u958b\u59cb\u3002 KVM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[90],"class_list":["post-1253","post","type-post","status-publish","format-standard","hentry","category-oss","tag-vagrant"],"_links":{"self":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1253"}],"version-history":[{"count":5,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1253\/revisions"}],"predecessor-version":[{"id":1267,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1253\/revisions\/1267"}],"wp:attachment":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}