File tree 1 file changed +45
-1
lines changed
1 file changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -166,4 +166,48 @@ $ vagrant up
166
166
$ vagrant ssh
167
167
```
168
168
169
-
169
+ ## 常见问题
170
+
171
+ ### ssh问题
172
+
173
+ 如下操作,替换了~ /.ssh/目录下文件再打包
174
+
175
+ ``` bash
176
+ wget https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -O .ssh/authorized_keys
177
+ chmod 700 .ssh
178
+ chmod 600 .ssh/authorized_keys
179
+ chown -R vagrant:vagrant .ssh
180
+ ```
181
+
182
+ 或者直接拷贝原打包目录.vagrant下的privacy key
183
+
184
+ ### mount: unknown filesystem type 'vboxsf'问题
185
+
186
+ ``` bash
187
+ vagrant plugin install vagrant-vbguest
188
+ vagrant destroy && vagrant up
189
+ ```
190
+
191
+ 同步文件修改还要装插件
192
+
193
+ ``` bash
194
+ vagrant plugin install vagrant-winnfsd
195
+ ```
196
+
197
+
198
+
199
+ ### 打包的box文件过大压缩一下
200
+
201
+ [ VirtualBox压缩vmdk、vagrant打包box一口气全对] ( https://www.zh30.com/virtualbox-vmdk-vagrant-box.html )
202
+
203
+ ``` bash
204
+
205
+ $ VBoxManage showhdinfo name
206
+
207
+ ```
208
+
209
+ ### 热更新
210
+
211
+ nodeman -L
212
+
213
+ 提高io性能,启用nfs或samba
You can’t perform that action at this time.
0 commit comments