回答編集履歴

1

追記:実行例

2019/06/13 07:43

投稿

mt08
mt08

スコア1825

test CHANGED
@@ -7,3 +7,221 @@
7
7
  ではないでしょうか。
8
8
 
9
9
  (数字の1ではなくて、アルファベットLの小文字)
10
+
11
+
12
+
13
+ ----
14
+
15
+ (追記)
16
+
17
+
18
+
19
+
20
+
21
+ 新しくフォルダを作って、
22
+
23
+
24
+
25
+ ```
26
+
27
+ vagrant init -m ubuntu/xenial64
28
+
29
+ vagrant up --provider=virtualbox
30
+
31
+ ```
32
+
33
+ で、どうでしょうか?
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ - 実行例- 実行例(PowerShellで実行)
42
+
43
+
44
+
45
+ 環境: Windows 10 Pro 64bit, Virtualbox v6.0.8, Vagrant v2.2.4
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ ```
54
+
55
+ PS C:\> mkdir C:\Vagrant\xenial64
56
+
57
+
58
+
59
+
60
+
61
+ Directory: C:\Vagrant
62
+
63
+
64
+
65
+
66
+
67
+ Mode LastWriteTime Length Name
68
+
69
+ ---- ------------- ------ ----
70
+
71
+ d----- 6/13/2019 12:31 AM xenial64
72
+
73
+
74
+
75
+
76
+
77
+ PS C:\> cd C:\Vagrant\xenial64\
78
+
79
+ PS C:\Vagrant\xenial64> vagrant init -m ubuntu/xenial64
80
+
81
+ A `Vagrantfile` has been placed in this directory. You are now
82
+
83
+ ready to `vagrant up` your first virtual environment! Please read
84
+
85
+ the comments in the Vagrantfile as well as documentation on
86
+
87
+ `vagrantup.com` for more information on using Vagrant.
88
+
89
+ PS C:\Vagrant\xenial64> vagrant up --provider=virtualbox
90
+
91
+ Bringing machine 'default' up with 'virtualbox' provider...
92
+
93
+ ==> default: Box 'ubuntu/xenial64' could not be found. Attempting to find and install...
94
+
95
+ default: Box Provider: virtualbox
96
+
97
+ default: Box Version: >= 0
98
+
99
+ ==> default: Loading metadata for box 'ubuntu/xenial64'
100
+
101
+ default: URL: https://vagrantcloud.com/ubuntu/xenial64
102
+
103
+ ==> default: Adding box 'ubuntu/xenial64' (v20190605.0.0) for provider: virtualbox
104
+
105
+ default: Downloading: https://vagrantcloud.com/ubuntu/boxes/xenial64/versions/20190605.0.0/providers/virtualbox.box
106
+
107
+ default: Download redirected to host: cloud-images.ubuntu.com
108
+
109
+ default:
110
+
111
+ ==> default: Successfully added box 'ubuntu/xenial64' (v20190605.0.0) for 'virtualbox'!
112
+
113
+ ==> default: Importing base box 'ubuntu/xenial64'...
114
+
115
+ ==> default: Matching MAC address for NAT networking...
116
+
117
+ ==> default: Checking if box 'ubuntu/xenial64' version '20190605.0.0' is up to date...
118
+
119
+ ==> default: Setting the name of the VM: xenial64_default_1560411223466_79392
120
+
121
+ ==> default: Clearing any previously set network interfaces...
122
+
123
+ ==> default: Preparing network interfaces based on configuration...
124
+
125
+ default: Adapter 1: nat
126
+
127
+ ==> default: Forwarding ports...
128
+
129
+ default: 22 (guest) => 2222 (host) (adapter 1)
130
+
131
+ ==> default: Running 'pre-boot' VM customizations...
132
+
133
+ ==> default: Booting VM...
134
+
135
+ ==> default: Waiting for machine to boot. This may take a few minutes...
136
+
137
+ default: SSH address: 127.0.0.1:2222
138
+
139
+ default: SSH username: vagrant
140
+
141
+ default: SSH auth method: private key
142
+
143
+ default:
144
+
145
+ default: Vagrant insecure key detected. Vagrant will automatically replace
146
+
147
+ default: this with a newly generated keypair for better security.
148
+
149
+ default:
150
+
151
+ default: Inserting generated public key within guest...
152
+
153
+ default: Removing insecure key from the guest if it's present...
154
+
155
+ default: Key inserted! Disconnecting and reconnecting using new SSH key...
156
+
157
+ ==> default: Machine booted and ready!
158
+
159
+ ==> default: Checking for guest additions in VM...
160
+
161
+ default: The guest additions on this VM do not match the installed version of
162
+
163
+ default: VirtualBox! In most cases this is fine, but in rare cases it can
164
+
165
+ default: prevent things such as shared folders from working properly. If you see
166
+
167
+ default: shared folder errors, please make sure the guest additions within the
168
+
169
+ default: virtual machine match the version of VirtualBox you have installed on
170
+
171
+ default: your host and reload your VM.
172
+
173
+ default:
174
+
175
+ default: Guest Additions Version: 5.1.38
176
+
177
+ default: VirtualBox Version: 6.0
178
+
179
+ ==> default: Mounting shared folders...
180
+
181
+ default: /vagrant => C:/Vagrant/xenial64
182
+
183
+ PS C:\Vagrant\xenial64> vagrant ssh
184
+
185
+ Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-150-generic x86_64)
186
+
187
+
188
+
189
+ * Documentation: https://help.ubuntu.com
190
+
191
+ * Management: https://landscape.canonical.com
192
+
193
+ * Support: https://ubuntu.com/advantage
194
+
195
+
196
+
197
+ 0 packages can be updated.
198
+
199
+ 0 updates are security updates.
200
+
201
+
202
+
203
+ New release '18.04.2 LTS' available.
204
+
205
+ Run 'do-release-upgrade' to upgrade to it.
206
+
207
+
208
+
209
+
210
+
211
+ vagrant@ubuntu-xenial:~$ uname -a
212
+
213
+ Linux ubuntu-xenial 4.4.0-150-generic #176-Ubuntu SMP Wed May 29 18:56:26 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
214
+
215
+ vagrant@ubuntu-xenial:~$ exit
216
+
217
+ logout
218
+
219
+ Connection to 127.0.0.1 closed.
220
+
221
+ PS C:\Vagrant\xenial64> vagrant halt
222
+
223
+ ==> default: Attempting graceful shutdown of VM...
224
+
225
+ PS C:\Vagrant\xenial64>
226
+
227
+ ```