{"id":1780,"date":"2018-12-29T00:34:53","date_gmt":"2018-12-28T15:34:53","guid":{"rendered":"https:\/\/kazu.tv\/blog\/?p=1780"},"modified":"2018-12-29T00:34:53","modified_gmt":"2018-12-28T15:34:53","slug":"protocol-error-when-setting-up-shared-folder-on-vagrant-up","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2018\/12\/29\/protocol-error-when-setting-up-shared-folder-on-vagrant-up\/","title":{"rendered":"Vagrant \u8d77\u52d5\u6642\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u5468\u308a\u3067 Protocol error"},"content":{"rendered":"<h2>\u75c7\u72b6<\/h2>\n<p>vagrant up \u3067\u8d77\u52d5\u6642\u306b\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3053\u308d\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">==&amp;gt; default: Mounting shared folders...\r\ndefault: \/vagrant =&amp;gt; \/Users\/kazu\/Documents\/workspace\/foo\r\nVagrant was unable to mount VirtualBox shared folders. This is usually\r\nbecause the filesystem &quot;vboxsf&quot; is not available. This filesystem is\r\nmade available via the VirtualBox Guest Additions and kernel module.\r\nPlease verify that these guest additions are properly installed in the\r\nguest. This is not a bug in Vagrant and is usually caused by a faulty\r\nVagrant box. For context, the command attempted was:\r\n\r\nmount -t vboxsf -o uid=1000,gid=1000 vagrant \/vagrant\r\n\r\nThe error output from the command was:\r\n\r\n\/sbin\/mount.vboxsf: mounting failed with the error: Protocol error<\/pre>\n<p>\u74b0\u5883<\/p>\n<ul>\n<li>Host: Mac<\/li>\n<li>Guest: Linux (Ubuntu 14.4)<\/li>\n<li>Vagrant 2.2.2<\/li>\n<\/ul>\n<h2>\u539f\u56e0\u3068\u89e3\u6c7a\u65b9\u6cd5<\/h2>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u30b0\u30b0\u308b\u3068\u3001\u8272\u3005\u306a\u539f\u56e0\u3067\u3053\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3046\u308b\u304c\u3001\u81ea\u5206\u306e\u5834\u5408\u3001`\/home\/vagrant` \u4ee5\u4e0b\u306b `vagrant` \u3068\u3044\u3046\u540d\u524d\u3067 `\/vagrant` \u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u306e\u304c\u539f\u56e0\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vagrant@vagrant-ubuntu-trusty-64:~$ ls -l \/home\/vagrant\/vagrant\r\nlrwxrwxrwx 1 vagrant vagrant 8 Dec 28 15:18 \/home\/vagrant\/vagrant -&amp;gt; \/vagrant<\/pre>\n<p>\u3053\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u524a\u9664\u3057\u3066 `vagrant reload` \u3067\u554f\u984c\u306f\u89e3\u6d88\u3057\u305f\u3002<\/p>\n<p>Vagrant \u306e\u3053\u306e <a href=\"https:\/\/github.com\/hashicorp\/vagrant\/issues\/6169\" target=\"_blank\" rel=\"noopener\">issue<\/a> \u304c\u53c2\u8003\u306b\u306a\u3063\u305f\u3002<\/p>\n<h2>\u3053\u306e\u30a8\u30e9\u30fc\u304c\u3067\u308b\u305d\u306e\u4ed6\u306e\u53ef\u80fd\u6027<\/h2>\n<ul>\n<li>VirtualBox Guest Addition \u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3001\u58ca\u308c\u3066\u3044\u308b<\/li>\n<li>\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u306e\u8a2d\u5b9a\u304c\u9593\u9055\u3063\u3066\u3044\u308b<\/li>\n<li>\u306a\u3069\u306a\u3069<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 vagrant up \u3067\u8d77\u52d5\u6642\u306b\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3053\u308d\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002 ==&amp;gt; default: Mounting shared folders&#8230; default: \/vag&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[32],"tags":[465,930],"class_list":["post-1780","post","type-post","status-publish","format-standard","hentry","category-linux-unix","tag-linux","tag-vagrant"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=1780"}],"version-history":[{"count":5,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1780\/revisions"}],"predecessor-version":[{"id":1785,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1780\/revisions\/1785"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=1780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=1780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=1780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}