質問編集履歴

4

試したこと。ここへコマンド結果を入れました。

2019/10/20 10:36

投稿

Toto-Koya
Toto-Koya

スコア10

test CHANGED
File without changes
test CHANGED
@@ -214,7 +214,113 @@
214
214
 
215
215
 
216
216
 
217
+ C:\Users\tae-t>vagrant init hashicorp/precise64
218
+
219
+ A `Vagrantfile` has been placed in this directory. You are now
220
+
221
+ ready to `vagrant up` your first virtual environment! Please read
222
+
223
+ the comments in the Vagrantfile as well as documentation on
224
+
225
+ `vagrantup.com` for more information on using Vagrant.
226
+
227
+
228
+
229
+ C:\Users\tae-t>vagrant up
230
+
231
+ Bringing machine 'default' up with 'virtualbox' provider...
232
+
233
+ ==> default: Box 'hashicorp/precise64' could not be found. Attempting to find and install...
234
+
235
+ default: Box Provider: virtualbox
236
+
237
+ default: Box Version: >= 0
238
+
239
+ ==> default: Loading metadata for box 'hashicorp/precise64'
240
+
241
+ default: URL: https://vagrantcloud.com/hashicorp/precise64
242
+
243
+ ==> default: Adding box 'hashicorp/precise64' (v1.1.0) for provider: virtualbox
244
+
245
+ default: Downloading: https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box
246
+
247
+ default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
248
+
249
+ default:
250
+
251
+ ==> default: Successfully added box 'hashicorp/precise64' (v1.1.0) for 'virtualbox'!
252
+
253
+ ==> default: Importing base box 'hashicorp/precise64'...
254
+
255
+ ==> default: Matching MAC address for NAT networking...
256
+
257
+ ==> default: Checking if box 'hashicorp/precise64' version '1.1.0' is up to date...
258
+
259
+ ==> default: Setting the name of the VM: tae-t_default_1571564319711_43280
260
+
261
+ Vagrant is currently configured to create VirtualBox synced folders with
262
+
263
+ the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
264
+
265
+ guest is not trusted, you may want to disable this option. For more
266
+
267
+ information on this option, please refer to the VirtualBox manual:
268
+
269
+
270
+
271
+ https://www.virtualbox.org/manual/ch04.html#sharedfolders
272
+
273
+
274
+
275
+ This option can be disabled globally with an environment variable:
276
+
277
+
278
+
279
+ VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
280
+
281
+
282
+
283
+ or on a per folder basis within the Vagrantfile:
284
+
285
+
286
+
287
+ config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
288
+
289
+ ==> default: Clearing any previously set network interfaces...
290
+
291
+ ==> default: Preparing network interfaces based on configuration...
292
+
217
- ここに問題に対して試したことを記載してください。
293
+ default: Adapter 1: nat
294
+
295
+ ==> default: Forwarding ports...
296
+
297
+ default: 22 (guest) => 2222 (host) (adapter 1)
298
+
299
+ ==> default: Booting VM...
300
+
301
+ ### There was an error while executing `VBoxManage`, a CLI used by Vagrant
302
+
303
+ for controlling VirtualBox. The command and stderr is shown below.
304
+
305
+
306
+
307
+ Command: ["startvm", "390a3469-4996-4547-bc15-7af2c360f6c7", "--type", "headless"]
308
+
309
+
310
+
311
+ Stderr: VBoxManage.exe: error: Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
312
+
313
+ VBoxManage.exe: error: AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED)
314
+
315
+ VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
316
+
317
+
318
+
319
+ C:\Users\tae-t>vagrant ssh
320
+
321
+ VM must be running to open SSH connection. Run `vagrant up`
322
+
323
+ to start the virtual machine.
218
324
 
219
325
 
220
326
 

3

Vagrantfileが見つかりましたので。textをアップいたします。

2019/10/20 10:36

投稿

Toto-Koya
Toto-Koya

スコア10

test CHANGED
File without changes
test CHANGED
@@ -64,9 +64,147 @@
64
64
 
65
65
 
66
66
 
67
+ ``
68
+
69
+ # -*- mode: ruby -*-
70
+
71
+ # vi: set ft=ruby :
72
+
73
+
74
+
75
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
76
+
77
+ # configures the configuration version (we support older styles for
78
+
79
+ # backwards compatibility). Please don't change it unless you know what
80
+
81
+ # you're doing.
82
+
83
+ Vagrant.configure("2") do |config|
84
+
85
+ # The most common configuration options are documented and commented below.
86
+
87
+ # For a complete reference, please see the online documentation at
88
+
89
+ # https://docs.vagrantup.com.
90
+
91
+
92
+
93
+ # Every Vagrant development environment requires a box. You can search for
94
+
95
+ # boxes at https://vagrantcloud.com/search.
96
+
97
+ config.vm.box = "precise64"
98
+
99
+
100
+
101
+ # The url from where the 'config.vm.box' box will be fetched if it
102
+
103
+ # doesn't already exist on the user's system.
104
+
105
+ config.vm.box_url = "http://files.vagrantup.com/precise64.box"
106
+
107
+
108
+
109
+ # Create a forwarded port mapping which allows access to a specific port
110
+
111
+ # within the machine from a port on the host machine. In the example below,
112
+
113
+ # accessing "localhost:8080" will access port 80 on the guest machine.
114
+
115
+ # NOTE: This will enable public access to the opened port
116
+
117
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
118
+
119
+
120
+
121
+ # Create a forwarded port mapping which allows access to a specific port
122
+
123
+ # within the machine from a port on the host machine and only allow access
124
+
125
+ # via 127.0.0.1 to disable public access
126
+
127
+ # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
128
+
129
+
130
+
131
+ # Create a private network, which allows host-only access to the machine
132
+
133
+ # using a specific IP.
134
+
135
+ # config.vm.network "private_network", ip: "192.168.33.10"
136
+
137
+
138
+
139
+ # Create a public network, which generally matched to bridged network.
140
+
141
+ # Bridged networks make the machine appear as another physical device on
142
+
67
- ```ここに言語名を入力
143
+ # your network.
144
+
68
-
145
+ # config.vm.network "public_network"
146
+
147
+
148
+
149
+ # Share an additional folder to the guest VM. The first argument is
150
+
151
+ # the path on the host to the actual folder. The second argument is
152
+
153
+ # the path on the guest to mount the folder. And the optional third
154
+
155
+ # argument is a set of non-required options.
156
+
157
+ # config.vm.synced_folder "../data", "/vagrant_data"
158
+
159
+
160
+
161
+ # Provider-specific configuration so you can fine-tune various
162
+
163
+ # backing providers for Vagrant. These expose provider-specific options.
164
+
165
+ # Example for VirtualBox:
166
+
167
+ #
168
+
169
+ # config.vm.provider "virtualbox" do |vb|
170
+
171
+ # # Display the VirtualBox GUI when booting the machine
172
+
173
+ # vb.gui = true
174
+
175
+ #
176
+
177
+ # # Customize the amount of memory on the VM:
178
+
179
+ # vb.memory = "1024"
180
+
181
+ # end
182
+
183
+ #
184
+
185
+ # View the documentation for the provider you are using for more
186
+
187
+ # information on available options.
188
+
189
+
190
+
191
+ # Enable provisioning with a shell script. Additional provisioners such as
192
+
193
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
194
+
195
+ # documentation for more information about their specific syntax and use.
196
+
197
+ # config.vm.provision "shell", inline: <<-SHELL
198
+
199
+ # apt-get update
200
+
201
+ # apt-get install -y apache2
202
+
69
- ソースコード
203
+ # SHELL
204
+
205
+ end
206
+
207
+
70
208
 
71
209
  ```
72
210
 

2

エラーメッセージのキャプチャがアップできないので、文字打ちしました。

2019/10/19 10:51

投稿

Toto-Koya
Toto-Koya

スコア10

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,37 @@
24
24
 
25
25
  ```
26
26
 
27
+ C:\Users\about>vagrant up
28
+
29
+ Binging machine default' up with 'virtualbox' provider...
30
+
31
+ ==> default: Box 'precise64' could not be found. Attempting to find and install...
32
+
33
+ default: Box Proyider: virtualbox
34
+
35
+ default: Box Version: >= 0
36
+
37
+ ==> default: Box file was not detected as metadata. Adding it directry...
38
+
39
+ ==> default: Adding box 'precise64' (v0) for provider: virtualbox
40
+
41
+ default: Downlording: http://files.vagrantup.com/precise64.box
42
+
43
+ default: Downlord redirected to host: hashicorp-files.hashicorp.com
44
+
27
- エラーメッセージ
45
+ default:
46
+
47
+ An error occurred while downloading the remote file. The error
48
+
49
+ message, if any, is reproduced below. Please fix this error and try again.
50
+
51
+ Failed to connect to hashicorp-files.hashicorp.com port 443: Timed out
52
+
53
+ C:\Users\about>
54
+
55
+
56
+
57
+
28
58
 
29
59
  ```
30
60
 

1

要点が違っていましたので、修正しました。

2019/10/14 12:27

投稿

Toto-Koya
Toto-Koya

スコア10

test CHANGED
@@ -1 +1 @@
1
- Vagrantの画面直ぐに消えるのは何故なでしょうか
1
+ Vagrant init後、vagrant upをするとエラー出て全く進めません。
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  VagrantとVirtialBoxで仮想環境をWindows上で作りたいと思い、インストールはしたのですが
4
4
 
5
- Vagrantの黒画面10秒足らず消えてしい何もできずに困っ
5
+ cmdにてvagrant upを行ますファイルのダウンロードが途中り、エラーが出進めせん
6
6
 
7
7
  設定等に詳しい方いらっしゃいましたら、ご教示頂けますと大変有難いです。
8
8