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

回答編集履歴

1

追記:実行例

2019/06/13 07:43

投稿

mt08
mt08

スコア1825

answer CHANGED
@@ -2,4 +2,113 @@
2
2
 
3
3
  # `ubuntu/xenia`**1**`64` `=>` `ubuntu/xenia`l`64`
4
4
  ではないでしょうか。
5
- (数字の1ではなくて、アルファベットLの小文字)
5
+ (数字の1ではなくて、アルファベットLの小文字)
6
+
7
+ ----
8
+ (追記)
9
+
10
+
11
+ 新しくフォルダを作って、
12
+
13
+ ```
14
+ vagrant init -m ubuntu/xenial64
15
+ vagrant up --provider=virtualbox
16
+ ```
17
+ で、どうでしょうか?
18
+
19
+
20
+
21
+ - 実行例- 実行例(PowerShellで実行)
22
+
23
+ 環境: Windows 10 Pro 64bit, Virtualbox v6.0.8, Vagrant v2.2.4
24
+
25
+
26
+
27
+ ```
28
+ PS C:\> mkdir C:\Vagrant\xenial64
29
+
30
+
31
+ Directory: C:\Vagrant
32
+
33
+
34
+ Mode LastWriteTime Length Name
35
+ ---- ------------- ------ ----
36
+ d----- 6/13/2019 12:31 AM xenial64
37
+
38
+
39
+ PS C:\> cd C:\Vagrant\xenial64\
40
+ PS C:\Vagrant\xenial64> vagrant init -m ubuntu/xenial64
41
+ A `Vagrantfile` has been placed in this directory. You are now
42
+ ready to `vagrant up` your first virtual environment! Please read
43
+ the comments in the Vagrantfile as well as documentation on
44
+ `vagrantup.com` for more information on using Vagrant.
45
+ PS C:\Vagrant\xenial64> vagrant up --provider=virtualbox
46
+ Bringing machine 'default' up with 'virtualbox' provider...
47
+ ==> default: Box 'ubuntu/xenial64' could not be found. Attempting to find and install...
48
+ default: Box Provider: virtualbox
49
+ default: Box Version: >= 0
50
+ ==> default: Loading metadata for box 'ubuntu/xenial64'
51
+ default: URL: https://vagrantcloud.com/ubuntu/xenial64
52
+ ==> default: Adding box 'ubuntu/xenial64' (v20190605.0.0) for provider: virtualbox
53
+ default: Downloading: https://vagrantcloud.com/ubuntu/boxes/xenial64/versions/20190605.0.0/providers/virtualbox.box
54
+ default: Download redirected to host: cloud-images.ubuntu.com
55
+ default:
56
+ ==> default: Successfully added box 'ubuntu/xenial64' (v20190605.0.0) for 'virtualbox'!
57
+ ==> default: Importing base box 'ubuntu/xenial64'...
58
+ ==> default: Matching MAC address for NAT networking...
59
+ ==> default: Checking if box 'ubuntu/xenial64' version '20190605.0.0' is up to date...
60
+ ==> default: Setting the name of the VM: xenial64_default_1560411223466_79392
61
+ ==> default: Clearing any previously set network interfaces...
62
+ ==> default: Preparing network interfaces based on configuration...
63
+ default: Adapter 1: nat
64
+ ==> default: Forwarding ports...
65
+ default: 22 (guest) => 2222 (host) (adapter 1)
66
+ ==> default: Running 'pre-boot' VM customizations...
67
+ ==> default: Booting VM...
68
+ ==> default: Waiting for machine to boot. This may take a few minutes...
69
+ default: SSH address: 127.0.0.1:2222
70
+ default: SSH username: vagrant
71
+ default: SSH auth method: private key
72
+ default:
73
+ default: Vagrant insecure key detected. Vagrant will automatically replace
74
+ default: this with a newly generated keypair for better security.
75
+ default:
76
+ default: Inserting generated public key within guest...
77
+ default: Removing insecure key from the guest if it's present...
78
+ default: Key inserted! Disconnecting and reconnecting using new SSH key...
79
+ ==> default: Machine booted and ready!
80
+ ==> default: Checking for guest additions in VM...
81
+ default: The guest additions on this VM do not match the installed version of
82
+ default: VirtualBox! In most cases this is fine, but in rare cases it can
83
+ default: prevent things such as shared folders from working properly. If you see
84
+ default: shared folder errors, please make sure the guest additions within the
85
+ default: virtual machine match the version of VirtualBox you have installed on
86
+ default: your host and reload your VM.
87
+ default:
88
+ default: Guest Additions Version: 5.1.38
89
+ default: VirtualBox Version: 6.0
90
+ ==> default: Mounting shared folders...
91
+ default: /vagrant => C:/Vagrant/xenial64
92
+ PS C:\Vagrant\xenial64> vagrant ssh
93
+ Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-150-generic x86_64)
94
+
95
+ * Documentation: https://help.ubuntu.com
96
+ * Management: https://landscape.canonical.com
97
+ * Support: https://ubuntu.com/advantage
98
+
99
+ 0 packages can be updated.
100
+ 0 updates are security updates.
101
+
102
+ New release '18.04.2 LTS' available.
103
+ Run 'do-release-upgrade' to upgrade to it.
104
+
105
+
106
+ vagrant@ubuntu-xenial:~$ uname -a
107
+ 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
108
+ vagrant@ubuntu-xenial:~$ exit
109
+ logout
110
+ Connection to 127.0.0.1 closed.
111
+ PS C:\Vagrant\xenial64> vagrant halt
112
+ ==> default: Attempting graceful shutdown of VM...
113
+ PS C:\Vagrant\xenial64>
114
+ ```