teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

追記

2017/03/03 10:35

投稿

hnkz
hnkz

スコア13

title CHANGED
File without changes
body CHANGED
@@ -147,4 +147,38 @@
147
147
  ```
148
148
 
149
149
  色々と試したりググったりしましたが解決方法がわかりません。。。
150
- どうすればいいのでしょうか、、、、
150
+ どうすればいいのでしょうか、、、、
151
+
152
+ ## 追記
153
+
154
+ Vagrantfileに`config.vm.network "forwarded_port", guest: 80, host: 8000`を追記したらブラウザから確認することができました。しかし、起動時のエラーが消えないのと、共有フォルダの設定がうまく行きません。以下、エラー内容です。
155
+
156
+ ```
157
+ ==> default: Configuring and enabling network interfaces...
158
+ The following SSH command responded with a non-zero exit status.
159
+ Vagrant assumes that this means the command failed!
160
+
161
+ # Down the interface before munging the config file. This might
162
+ # fail if the interface is not actually set up yet so ignore
163
+ # errors.
164
+ /sbin/ifdown 'enp0s8'
165
+ # Move new config into place
166
+ mv -f '/tmp/vagrant-network-entry-enp0s8-1488537141-0' '/etc/sysconfig/network-scripts/ifcfg-enp0s8'
167
+ # attempt to force network manager to reload configurations
168
+ nmcli c reload || true
169
+
170
+ # Restart network
171
+ service network restart
172
+
173
+
174
+ Stdout from the command:
175
+
176
+ Restarting network (via systemctl): [FEHLGESCHLAGEN]
177
+
178
+
179
+ Stderr from the command:
180
+
181
+ Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
182
+ ```
183
+
184
+ 何が原因でこんなことが起こっているのでしょうか、、、