質問編集履歴

7

情報漏れのため削除

2017/05/11 08:53

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -1,7 +1,3 @@
1
- ![イメージ説明](48e2f30b9349d4d451c81ef2d83fa8e4.jpeg)
2
-
3
-
4
-
5
1
  vagrant upを実行すると、puttyでinactiveで開発環境にアクセスできなくて困っています。
6
2
 
7
3
  原因または解決策がしりたいです。
@@ -76,7 +72,7 @@
76
72
 
77
73
 
78
74
 
79
- ![イメージ説明](0ba85f9d29abd5dbbfdf20913ae64a9a.jpeg)
75
+
80
76
 
81
77
 
82
78
 

6

詳細

2017/05/11 08:53

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -58,6 +58,10 @@
58
58
 
59
59
 
60
60
 
61
+ windows 10 64bit toshiba
62
+
63
+
64
+
61
65
 
62
66
 
63
67
  パソコンで調べてもうやりつくしましたし、下手にやるとまたはまるのでこれ以上はしていません。

5

質問テンプレート

2017/05/10 06:37

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,77 @@
1
+ ![イメージ説明](48e2f30b9349d4d451c81ef2d83fa8e4.jpeg)
2
+
3
+
4
+
5
+ vagrant upを実行すると、puttyでinactiveで開発環境にアクセスできなくて困っています。
6
+
7
+ 原因または解決策がしりたいです。
8
+
9
+
10
+
11
+ 私の行った手順は以下です。
12
+
13
+ (1) まず今回の問題は【旧版】ローカル開発環境の構築#02 Vagrantで仮想マシンを立ち上げようをやったのがすべての問題です。つまりdev.dotinstall.comやcentos64などのローカル開発環境のホストを作ろうとしたのがすべての間違いですhttp://dotinstall.com/lessons/basic_local_development_v2/24802。具体的には Vagrantの中にlocalde
14
+
15
+ vとCentoSをフォルダを作りました。そして新しいローカル開発環境の構築を見るうちに MyVagrantの中に作ればいいと授業で言っていたことを思い出し、こちらにも作成。
16
+
17
+ (2)「vagrant box add centos64box」をして仮想マシンを立ち上げるために
18
+
19
+ 「vagrant init centos64box」をしてできなくてvagrant init chef/centos-6.5をしたころまでは確か覚えています。確かIP アドレスを 「192.168.33.56」はやらなかったような気がします。vagrant plugin install vagrant-vbguestもしたような気がします
20
+
21
+ (3)それでdev.dotinstall.comにアクセスできないどころか普通のlacalshostにもアクセスできなくなったのでここからいろいろしました。
22
+
23
+ すると、以下のような結果になりました。
24
+
25
+
26
+
27
+ 【表示されたものをコピー&ペーストする】
28
+
29
+
30
+
31
+ 原因を確かめるため、以下のようなテストを行ってみましたが、
32
+
33
+ 問題の解決には至りませんでした。
34
+
35
+
36
+
37
+ (a) まずはcドライブから入りVagrantの中にlocalde
38
+
39
+ vとCentoSのフォルダを削除した。dev.dotinstall.comを作る際にd.vagrantファイルを消すとできるとあったのでvagrant関係のすべてのd.vagrantを消した。
40
+
41
+ そして新しいローカル開発授業での VirtualBox 5.1.22 以降ではエラーとなるため導入しないようにしてください。を思い出し今回つまりvagrant init chef/centos-6.5がそれにあたるとおもいhttp://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20131103.boxのファイルをcドライブから消した。本当はアンインストールしたかったのですがなかったのでアンインストールしていません。
42
+
43
+
44
+
45
+
46
+
47
+ (b) それで授業にあったようにconfig.vm.network "private_network", ip: "192.168.33.10"も#をとりました。が画像にあるようにputtyにつながりません。宜しくお願い致します。
48
+
49
+
50
+
51
+ 【エラーメッセージのコピー&ペースト】
52
+
53
+
54
+
55
+ なお、私の環境は以下の通りです。
56
+
57
+ 【マシン, メモリ量, 関連周辺機器, OS, 利用ソフト, バージョンなどを箇条書きに】
58
+
59
+
60
+
61
+
62
+
63
+ パソコンで調べてもうやりつくしましたし、下手にやるとまたはまるのでこれ以上はしていません。
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
1
75
  ![イメージ説明](0ba85f9d29abd5dbbfdf20913ae64a9a.jpeg)
2
76
 
3
77
 
@@ -9,361 +83,3 @@
9
83
  今日の二時まではできたのに[新しいボックス](http://dotinstall.com/lessons/basic_local_development_v2/24802)をインストールしたりして、新しいhostsなどを作ろうとトライするうちに今まで使ってた仮想マシンにログインできなくな
10
84
 
11
85
  りました。まず今までの状態に戻りたいです。宜しくお願い致します。
12
-
13
-
14
-
15
- ```ここに言語を入力
16
-
17
- Windows PowerShell
18
-
19
- Copyright (C) 2016 Microsoft Corporation. All rights reserved.
20
-
21
-
22
-
23
- PS C:\Users\eseb759bodeh> cd MyVagrant
24
-
25
- PS C:\Users\eseb759bodeh\MyVagrant>
26
-
27
- PS C:\Users\eseb759bodeh\MyVagrant>
28
-
29
- PS C:\Users\eseb759bodeh\MyVagrant> cd MyCeonOS
30
-
31
- cd : パス 'C:\Users\eseb759bodeh\MyVagrant\MyCeonOS' が存在しないため検出できません。
32
-
33
- 発生場所 行:1 文字:1
34
-
35
- + cd MyCeonOS
36
-
37
- + ~~~~~~~~~~~
38
-
39
- + CategoryInfo : ObjectNotFound: (C:\Users\eseb759bodeh\MyVagrant\MyCeonOS:String) [Set-Location], ItemNo
40
-
41
- tFoundException
42
-
43
- + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
44
-
45
-
46
-
47
- PS C:\Users\eseb759bodeh\MyVagrant> cd MyCentOS
48
-
49
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant up
50
-
51
- Bringing machine 'default' up with 'virtualbox' provider...
52
-
53
- ==> default: Clearing any previously set forwarded ports...
54
-
55
- ==> default: Clearing any previously set network interfaces...
56
-
57
- ==> default: Preparing network interfaces based on configuration...
58
-
59
- default: Adapter 1: nat
60
-
61
- ==> default: Forwarding ports...
62
-
63
- default: 22 (guest) => 2222 (host) (adapter 1)
64
-
65
- ==> default: Booting VM...
66
-
67
- ==> default: Waiting for machine to boot. This may take a few minutes...
68
-
69
- default: SSH address: 127.0.0.1:2222
70
-
71
- default: SSH username: vagrant
72
-
73
- default: SSH auth method: private key
74
-
75
- default: Warning: Remote connection disconnect. Retrying...
76
-
77
- The guest machine entered an invalid state while waiting for it
78
-
79
- to boot. Valid states are 'starting, running'. The machine is in the
80
-
81
- 'unknown' state. Please verify everything is configured
82
-
83
- properly and try again.
84
-
85
-
86
-
87
- If the provider you're using has a GUI that comes with it,
88
-
89
- it is often helpful to open that and watch the machine, since the
90
-
91
- GUI often has more helpful error messages than Vagrant can retrieve.
92
-
93
- For example, if you're using VirtualBox, run `vagrant up` while the
94
-
95
- VirtualBox GUI is open.
96
-
97
-
98
-
99
- The primary issue for this error is that the provider you're using
100
-
101
- is not properly configured. This is very rarely a Vagrant issue.
102
-
103
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant up
104
-
105
- Bringing machine 'default' up with 'virtualbox' provider...
106
-
107
- ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
108
-
109
- ==> default: flag to force provisioning. Provisioners marked to run always will still run.
110
-
111
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant provision`
112
-
113
- Usage: vagrant [options] <command> [<args>]
114
-
115
-
116
-
117
- -v, --version Print the version and exit.
118
-
119
- -h, --help Print this help.
120
-
121
-
122
-
123
- Common commands:
124
-
125
- box manages boxes: installation, removal, etc.
126
-
127
- connect connect to a remotely shared Vagrant environment
128
-
129
- destroy stops and deletes all traces of the vagrant machine
130
-
131
- global-status outputs status Vagrant environments for this user
132
-
133
- halt stops the vagrant machine
134
-
135
- help shows the help for a subcommand
136
-
137
- init initializes a new Vagrant environment by creating a Vagrantfile
138
-
139
- login log in to HashiCorp's Atlas
140
-
141
- package packages a running vagrant environment into a box
142
-
143
- plugin manages plugins: install, uninstall, update, etc.
144
-
145
- port displays information about guest port mappings
146
-
147
- powershell connects to machine via powershell remoting
148
-
149
- provision provisions the vagrant machine
150
-
151
- push deploys code in this environment to a configured destination [DEPRECATED]
152
-
153
- rdp connects to machine via RDP
154
-
155
- reload restarts vagrant machine, loads new Vagrantfile configuration
156
-
157
- resume resume a suspended vagrant machine
158
-
159
- share share your Vagrant environment with anyone in the world
160
-
161
- snapshot manages snapshots: saving, restoring, etc.
162
-
163
- ssh connects to machine via SSH
164
-
165
- ssh-config outputs OpenSSH valid configuration to connect to the machine
166
-
167
- status outputs status of the vagrant machine
168
-
169
- suspend suspends the machine
170
-
171
- up starts and provisions the vagrant environment
172
-
173
- vbguest
174
-
175
- version prints current and latest Vagrant version
176
-
177
-
178
-
179
- For help on any individual command run `vagrant COMMAND -h`
180
-
181
-
182
-
183
- Additional subcommands are available, but are either more advanced
184
-
185
- or not commonly used. To see all subcommands, run the command
186
-
187
- `vagrant list-commands`.
188
-
189
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant COMMAND -h
190
-
191
- Usage: vagrant [options] <command> [<args>]
192
-
193
-
194
-
195
- -v, --version Print the version and exit.
196
-
197
- -h, --help Print this help.
198
-
199
-
200
-
201
- Common commands:
202
-
203
- box manages boxes: installation, removal, etc.
204
-
205
- connect connect to a remotely shared Vagrant environment
206
-
207
- destroy stops and deletes all traces of the vagrant machine
208
-
209
- global-status outputs status Vagrant environments for this user
210
-
211
- halt stops the vagrant machine
212
-
213
- help shows the help for a subcommand
214
-
215
- init initializes a new Vagrant environment by creating a Vagrantfile
216
-
217
- login log in to HashiCorp's Atlas
218
-
219
- package packages a running vagrant environment into a box
220
-
221
- plugin manages plugins: install, uninstall, update, etc.
222
-
223
- port displays information about guest port mappings
224
-
225
- powershell connects to machine via powershell remoting
226
-
227
- provision provisions the vagrant machine
228
-
229
- push deploys code in this environment to a configured destination [DEPRECATED]
230
-
231
- rdp connects to machine via RDP
232
-
233
- reload restarts vagrant machine, loads new Vagrantfile configuration
234
-
235
- resume resume a suspended vagrant machine
236
-
237
- share share your Vagrant environment with anyone in the world
238
-
239
- snapshot manages snapshots: saving, restoring, etc.
240
-
241
- ssh connects to machine via SSH
242
-
243
- ssh-config outputs OpenSSH valid configuration to connect to the machine
244
-
245
- status outputs status of the vagrant machine
246
-
247
- suspend suspends the machine
248
-
249
- up starts and provisions the vagrant environment
250
-
251
- vbguest
252
-
253
- version prints current and latest Vagrant version
254
-
255
-
256
-
257
- For help on any individual command run `vagrant COMMAND -h`
258
-
259
-
260
-
261
- Additional subcommands are available, but are either more advanced
262
-
263
- or not commonly used. To see all subcommands, run the command
264
-
265
- `vagrant list-commands`.
266
-
267
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> cd..
268
-
269
- PS C:\Users\eseb759bodeh\MyVagrant> cd..
270
-
271
- PS C:\Users\eseb759bodeh> Vagrant
272
-
273
- Usage: vagrant [options] <command> [<args>]
274
-
275
-
276
-
277
- -v, --version Print the version and exit.
278
-
279
- -h, --help Print this help.
280
-
281
-
282
-
283
- Common commands:
284
-
285
- box manages boxes: installation, removal, etc.
286
-
287
- connect connect to a remotely shared Vagrant environment
288
-
289
- destroy stops and deletes all traces of the vagrant machine
290
-
291
- global-status outputs status Vagrant environments for this user
292
-
293
- halt stops the vagrant machine
294
-
295
- help shows the help for a subcommand
296
-
297
- init initializes a new Vagrant environment by creating a Vagrantfile
298
-
299
- login log in to HashiCorp's Atlas
300
-
301
- package packages a running vagrant environment into a box
302
-
303
- plugin manages plugins: install, uninstall, update, etc.
304
-
305
- port displays information about guest port mappings
306
-
307
- powershell connects to machine via powershell remoting
308
-
309
- provision provisions the vagrant machine
310
-
311
- push deploys code in this environment to a configured destination [DEPRECATED]
312
-
313
- rdp connects to machine via RDP
314
-
315
- reload restarts vagrant machine, loads new Vagrantfile configuration
316
-
317
- resume resume a suspended vagrant machine
318
-
319
- share share your Vagrant environment with anyone in the world
320
-
321
- snapshot manages snapshots: saving, restoring, etc.
322
-
323
- ssh connects to machine via SSH
324
-
325
- ssh-config outputs OpenSSH valid configuration to connect to the machine
326
-
327
- status outputs status of the vagrant machine
328
-
329
- suspend suspends the machine
330
-
331
- up starts and provisions the vagrant environment
332
-
333
- vbguest
334
-
335
- version prints current and latest Vagrant version
336
-
337
-
338
-
339
- For help on any individual command run `vagrant COMMAND -h`
340
-
341
-
342
-
343
- Additional subcommands are available, but are either more advanced
344
-
345
- or not commonly used. To see all subcommands, run the command
346
-
347
- `vagrant list-commands`.
348
-
349
- PS C:\Users\eseb759bodeh> cd MyVagrant
350
-
351
- PS C:\Users\eseb759bodeh\MyVagrant> cd MyCentOS
352
-
353
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant up
354
-
355
- Bringing machine 'default' up with 'virtualbox' provider...
356
-
357
- ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
358
-
359
- ==> default: flag to force provisioning. Provisioners marked to run always will still run.
360
-
361
- PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS>
362
-
363
-
364
-
365
-
366
-
367
- ```
368
-
369
- vagrantflieもそういう命令があったので消してしまいました

4

詳細

2017/05/10 06:31

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,11 @@
1
+ ![イメージ説明](0ba85f9d29abd5dbbfdf20913ae64a9a.jpeg)
2
+
3
+
4
+
5
+ running (virtualbox)で動いていて、`vagrant provision` or use the `--provision`とこれは実行しました。 flag to force provisioning. Provisioners marked to run always will still run.はどういう意味でしょうか?これを実行してみます
6
+
7
+
8
+
1
9
  今日の二時まではできたのに[新しいボックス](http://dotinstall.com/lessons/basic_local_development_v2/24802)をインストールしたりして、新しいhostsなどを作ろうとトライするうちに今まで使ってた仮想マシンにログインできなくな
2
10
 
3
11
  りました。まず今までの状態に戻りたいです。宜しくお願い致します。

3

詳細

2017/05/07 05:49

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,67 @@
4
4
 
5
5
 
6
6
 
7
-
7
+ ```ここに言語を入力
8
+
9
+ Windows PowerShell
10
+
11
+ Copyright (C) 2016 Microsoft Corporation. All rights reserved.
12
+
13
+
14
+
15
+ PS C:\Users\eseb759bodeh> cd MyVagrant
16
+
17
+ PS C:\Users\eseb759bodeh\MyVagrant>
18
+
19
+ PS C:\Users\eseb759bodeh\MyVagrant>
20
+
21
+ PS C:\Users\eseb759bodeh\MyVagrant> cd MyCeonOS
22
+
23
+ cd : パス 'C:\Users\eseb759bodeh\MyVagrant\MyCeonOS' が存在しないため検出できません。
24
+
25
+ 発生場所 行:1 文字:1
26
+
27
+ + cd MyCeonOS
28
+
29
+ + ~~~~~~~~~~~
30
+
31
+ + CategoryInfo : ObjectNotFound: (C:\Users\eseb759bodeh\MyVagrant\MyCeonOS:String) [Set-Location], ItemNo
32
+
33
+ tFoundException
34
+
35
+ + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
36
+
37
+
38
+
39
+ PS C:\Users\eseb759bodeh\MyVagrant> cd MyCentOS
40
+
41
+ PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant up
42
+
43
+ Bringing machine 'default' up with 'virtualbox' provider...
44
+
45
+ ==> default: Clearing any previously set forwarded ports...
46
+
47
+ ==> default: Clearing any previously set network interfaces...
48
+
49
+ ==> default: Preparing network interfaces based on configuration...
50
+
51
+ default: Adapter 1: nat
52
+
53
+ ==> default: Forwarding ports...
54
+
55
+ default: 22 (guest) => 2222 (host) (adapter 1)
56
+
57
+ ==> default: Booting VM...
58
+
59
+ ==> default: Waiting for machine to boot. This may take a few minutes...
60
+
61
+ default: SSH address: 127.0.0.1:2222
62
+
63
+ default: SSH username: vagrant
64
+
65
+ default: SSH auth method: private key
66
+
67
+ default: Warning: Remote connection disconnect. Retrying...
8
68
 
9
69
  The guest machine entered an invalid state while waiting for it
10
70
 
@@ -46,104 +106,256 @@
46
106
 
47
107
 
48
108
 
49
-
50
-
51
- vagratfileを消すうちに
52
-
53
-
54
-
55
- # Create a forwarded port mapping which allows access to a specific port
56
-
57
- # within the machine from a port on the host machine. In the example below,
58
-
59
- # accessing "localhost:8080" will access port 80 on the guest machine.
60
-
61
- # config.vm.network "forwarded_port", guest: 80, host: 8080
62
-
63
-
64
-
65
- # Create a private network, which allows host-only access to the machine
66
-
67
- # using a specific IP.
68
-
69
- # config.vm.network "private_network", ip: "192.168.33.11"
70
-
71
-
72
-
73
- # Create a public network, which generally matched to bridged network.
74
-
75
- # Bridged networks make the machine appear as another physical device on
76
-
77
- # your network.
78
-
79
- # config.vm.network "public_network"
80
-
81
-
82
-
83
- # Share an additional folder to the guest VM. The first argument is
84
-
85
- # the path on the host to the actual folder. The second argument is
86
-
87
- # the path on the guest to mount the folder. And the optional third
88
-
89
- # argument is a set of non-required options.
90
-
91
- # config.vm.synced_folder "../data", "/vagrant_data"
92
-
93
-
94
-
95
- # Provider-specific configuration so you can fine-tune various
96
-
97
- # backing providers for Vagrant. These expose provider-specific options.
98
-
99
- # Example for VirtualBox:
100
-
101
- #
102
-
103
- # config.vm.provider "virtualbox" do |vb|
104
-
105
- # # Display the VirtualBox GUI when booting the machine
106
-
107
- # vb.gui = true
108
-
109
- #
110
-
111
- # # Customize the amount of memory on the VM:
112
-
113
- # vb.memory = "1024"
114
-
115
- # end
116
-
117
- #
118
-
119
- # View the documentation for the provider you are using for more
120
-
121
- # information on available options.
122
-
123
-
124
-
125
- # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
126
-
127
- # such as FTP and Heroku are also available. See the documentation at
128
-
129
- # https://docs.vagrantup.com/v2/push/atlas.html for more information.
130
-
131
- # config.push.define "atlas" do |push|
132
-
133
- # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
134
-
135
- # end
136
-
137
-
138
-
139
- # Enable provisioning with a shell script. Additional provisioners such as
140
-
141
- # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
142
-
143
- # documentation for more information about their specific syntax and use.
144
-
145
- # config.vm.provision "shell", inline: <<-SHELL
146
-
147
- # apt-get update
148
-
149
- # apt-get install -y apache2
109
+ -v, --version Print the version and exit.
110
+
111
+ -h, --help Print this help.
112
+
113
+
114
+
115
+ Common commands:
116
+
117
+ box manages boxes: installation, removal, etc.
118
+
119
+ connect connect to a remotely shared Vagrant environment
120
+
121
+ destroy stops and deletes all traces of the vagrant machine
122
+
123
+ global-status outputs status Vagrant environments for this user
124
+
125
+ halt stops the vagrant machine
126
+
127
+ help shows the help for a subcommand
128
+
129
+ init initializes a new Vagrant environment by creating a Vagrantfile
130
+
131
+ login log in to HashiCorp's Atlas
132
+
133
+ package packages a running vagrant environment into a box
134
+
135
+ plugin manages plugins: install, uninstall, update, etc.
136
+
137
+ port displays information about guest port mappings
138
+
139
+ powershell connects to machine via powershell remoting
140
+
141
+ provision provisions the vagrant machine
142
+
143
+ push deploys code in this environment to a configured destination [DEPRECATED]
144
+
145
+ rdp connects to machine via RDP
146
+
147
+ reload restarts vagrant machine, loads new Vagrantfile configuration
148
+
149
+ resume resume a suspended vagrant machine
150
+
151
+ share share your Vagrant environment with anyone in the world
152
+
153
+ snapshot manages snapshots: saving, restoring, etc.
154
+
155
+ ssh connects to machine via SSH
156
+
157
+ ssh-config outputs OpenSSH valid configuration to connect to the machine
158
+
159
+ status outputs status of the vagrant machine
160
+
161
+ suspend suspends the machine
162
+
163
+ up starts and provisions the vagrant environment
164
+
165
+ vbguest
166
+
167
+ version prints current and latest Vagrant version
168
+
169
+
170
+
171
+ For help on any individual command run `vagrant COMMAND -h`
172
+
173
+
174
+
175
+ Additional subcommands are available, but are either more advanced
176
+
177
+ or not commonly used. To see all subcommands, run the command
178
+
179
+ `vagrant list-commands`.
180
+
181
+ PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant COMMAND -h
182
+
183
+ Usage: vagrant [options] <command> [<args>]
184
+
185
+
186
+
187
+ -v, --version Print the version and exit.
188
+
189
+ -h, --help Print this help.
190
+
191
+
192
+
193
+ Common commands:
194
+
195
+ box manages boxes: installation, removal, etc.
196
+
197
+ connect connect to a remotely shared Vagrant environment
198
+
199
+ destroy stops and deletes all traces of the vagrant machine
200
+
201
+ global-status outputs status Vagrant environments for this user
202
+
203
+ halt stops the vagrant machine
204
+
205
+ help shows the help for a subcommand
206
+
207
+ init initializes a new Vagrant environment by creating a Vagrantfile
208
+
209
+ login log in to HashiCorp's Atlas
210
+
211
+ package packages a running vagrant environment into a box
212
+
213
+ plugin manages plugins: install, uninstall, update, etc.
214
+
215
+ port displays information about guest port mappings
216
+
217
+ powershell connects to machine via powershell remoting
218
+
219
+ provision provisions the vagrant machine
220
+
221
+ push deploys code in this environment to a configured destination [DEPRECATED]
222
+
223
+ rdp connects to machine via RDP
224
+
225
+ reload restarts vagrant machine, loads new Vagrantfile configuration
226
+
227
+ resume resume a suspended vagrant machine
228
+
229
+ share share your Vagrant environment with anyone in the world
230
+
231
+ snapshot manages snapshots: saving, restoring, etc.
232
+
233
+ ssh connects to machine via SSH
234
+
235
+ ssh-config outputs OpenSSH valid configuration to connect to the machine
236
+
237
+ status outputs status of the vagrant machine
238
+
239
+ suspend suspends the machine
240
+
241
+ up starts and provisions the vagrant environment
242
+
243
+ vbguest
244
+
245
+ version prints current and latest Vagrant version
246
+
247
+
248
+
249
+ For help on any individual command run `vagrant COMMAND -h`
250
+
251
+
252
+
253
+ Additional subcommands are available, but are either more advanced
254
+
255
+ or not commonly used. To see all subcommands, run the command
256
+
257
+ `vagrant list-commands`.
258
+
259
+ PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> cd..
260
+
261
+ PS C:\Users\eseb759bodeh\MyVagrant> cd..
262
+
263
+ PS C:\Users\eseb759bodeh> Vagrant
264
+
265
+ Usage: vagrant [options] <command> [<args>]
266
+
267
+
268
+
269
+ -v, --version Print the version and exit.
270
+
271
+ -h, --help Print this help.
272
+
273
+
274
+
275
+ Common commands:
276
+
277
+ box manages boxes: installation, removal, etc.
278
+
279
+ connect connect to a remotely shared Vagrant environment
280
+
281
+ destroy stops and deletes all traces of the vagrant machine
282
+
283
+ global-status outputs status Vagrant environments for this user
284
+
285
+ halt stops the vagrant machine
286
+
287
+ help shows the help for a subcommand
288
+
289
+ init initializes a new Vagrant environment by creating a Vagrantfile
290
+
291
+ login log in to HashiCorp's Atlas
292
+
293
+ package packages a running vagrant environment into a box
294
+
295
+ plugin manages plugins: install, uninstall, update, etc.
296
+
297
+ port displays information about guest port mappings
298
+
299
+ powershell connects to machine via powershell remoting
300
+
301
+ provision provisions the vagrant machine
302
+
303
+ push deploys code in this environment to a configured destination [DEPRECATED]
304
+
305
+ rdp connects to machine via RDP
306
+
307
+ reload restarts vagrant machine, loads new Vagrantfile configuration
308
+
309
+ resume resume a suspended vagrant machine
310
+
311
+ share share your Vagrant environment with anyone in the world
312
+
313
+ snapshot manages snapshots: saving, restoring, etc.
314
+
315
+ ssh connects to machine via SSH
316
+
317
+ ssh-config outputs OpenSSH valid configuration to connect to the machine
318
+
319
+ status outputs status of the vagrant machine
320
+
321
+ suspend suspends the machine
322
+
323
+ up starts and provisions the vagrant environment
324
+
325
+ vbguest
326
+
327
+ version prints current and latest Vagrant version
328
+
329
+
330
+
331
+ For help on any individual command run `vagrant COMMAND -h`
332
+
333
+
334
+
335
+ Additional subcommands are available, but are either more advanced
336
+
337
+ or not commonly used. To see all subcommands, run the command
338
+
339
+ `vagrant list-commands`.
340
+
341
+ PS C:\Users\eseb759bodeh> cd MyVagrant
342
+
343
+ PS C:\Users\eseb759bodeh\MyVagrant> cd MyCentOS
344
+
345
+ PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant up
346
+
347
+ Bringing machine 'default' up with 'virtualbox' provider...
348
+
349
+ ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
350
+
351
+ ==> default: flag to force provisioning. Provisioners marked to run always will still run.
352
+
353
+ PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS>
354
+
355
+
356
+
357
+
358
+
359
+ ```
360
+
361
+ vagrantflieもそういう命令があったので消してしまいました

2

変更

2017/05/07 04:42

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  今日の二時まではできたのに[新しいボックス](http://dotinstall.com/lessons/basic_local_development_v2/24802)をインストールしたりして、新しいhostsなどを作ろうとトライするうちに今まで使ってた仮想マシンにログインできなくな
2
2
 
3
- りました。まず今までの授業に戻りたいです。宜しくお願い致します。
3
+ りました。まず今までの状態に戻りたいです。宜しくお願い致します。
4
4
 
5
5
 
6
6
 

1

詳細

2017/05/07 04:26

投稿

goforward
goforward

スコア705

test CHANGED
File without changes
test CHANGED
@@ -43,3 +43,107 @@
43
43
  PS C:\Users\eseb759bodeh\MyVagrant\MyCentOS> vagrant provision`
44
44
 
45
45
  Usage: vagrant [options] <command> [<args>]
46
+
47
+
48
+
49
+
50
+
51
+ vagratfileを消すうちに
52
+
53
+
54
+
55
+ # Create a forwarded port mapping which allows access to a specific port
56
+
57
+ # within the machine from a port on the host machine. In the example below,
58
+
59
+ # accessing "localhost:8080" will access port 80 on the guest machine.
60
+
61
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
62
+
63
+
64
+
65
+ # Create a private network, which allows host-only access to the machine
66
+
67
+ # using a specific IP.
68
+
69
+ # config.vm.network "private_network", ip: "192.168.33.11"
70
+
71
+
72
+
73
+ # Create a public network, which generally matched to bridged network.
74
+
75
+ # Bridged networks make the machine appear as another physical device on
76
+
77
+ # your network.
78
+
79
+ # config.vm.network "public_network"
80
+
81
+
82
+
83
+ # Share an additional folder to the guest VM. The first argument is
84
+
85
+ # the path on the host to the actual folder. The second argument is
86
+
87
+ # the path on the guest to mount the folder. And the optional third
88
+
89
+ # argument is a set of non-required options.
90
+
91
+ # config.vm.synced_folder "../data", "/vagrant_data"
92
+
93
+
94
+
95
+ # Provider-specific configuration so you can fine-tune various
96
+
97
+ # backing providers for Vagrant. These expose provider-specific options.
98
+
99
+ # Example for VirtualBox:
100
+
101
+ #
102
+
103
+ # config.vm.provider "virtualbox" do |vb|
104
+
105
+ # # Display the VirtualBox GUI when booting the machine
106
+
107
+ # vb.gui = true
108
+
109
+ #
110
+
111
+ # # Customize the amount of memory on the VM:
112
+
113
+ # vb.memory = "1024"
114
+
115
+ # end
116
+
117
+ #
118
+
119
+ # View the documentation for the provider you are using for more
120
+
121
+ # information on available options.
122
+
123
+
124
+
125
+ # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
126
+
127
+ # such as FTP and Heroku are also available. See the documentation at
128
+
129
+ # https://docs.vagrantup.com/v2/push/atlas.html for more information.
130
+
131
+ # config.push.define "atlas" do |push|
132
+
133
+ # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
134
+
135
+ # end
136
+
137
+
138
+
139
+ # Enable provisioning with a shell script. Additional provisioners such as
140
+
141
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
142
+
143
+ # documentation for more information about their specific syntax and use.
144
+
145
+ # config.vm.provision "shell", inline: <<-SHELL
146
+
147
+ # apt-get update
148
+
149
+ # apt-get install -y apache2