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

質問編集履歴

1

追記

2019/09/27 08:11

投稿

TAIniko
TAIniko

スコア32

title CHANGED
File without changes
body CHANGED
@@ -91,4 +91,82 @@
91
91
  windows10
92
92
  virtualbox 6.0.4
93
93
  vagrant 2.2.5
94
+ よろしくお願いします。
95
+
96
+ ###追記
97
+ ```vagrantfile
98
+ # -*- mode: ruby -*-
99
+ # vi: set ft=ruby :
100
+
101
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
102
+ # configures the configuration version (we support older styles for
103
+ # backwards compatibility). Please don't change it unless you know what
104
+ # you're doing.
105
+ Vagrant.configure("2") do |config|
106
+ # The most common configuration options are documented and commented below.
107
+ # For a complete reference, please see the online documentation at
108
+ # https://docs.vagrantup.com.
109
+
110
+ # Every Vagrant development environment requires a box. You can search for
111
+ # boxes at https://vagrantcloud.com/search.
112
+ config.vm.box = "bento\centos-6.8"
113
+
114
+ # Disable automatic box update checking. If you disable this, then
115
+ # boxes will only be checked for updates when the user runs
116
+ # `vagrant box outdated`. This is not recommended.
117
+ # config.vm.box_check_update = false
118
+
119
+ # Create a forwarded port mapping which allows access to a specific port
120
+ # within the machine from a port on the host machine. In the example below,
121
+ # accessing "localhost:8080" will access port 80 on the guest machine.
122
+ # NOTE: This will enable public access to the opened port
123
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
124
+
125
+ # Create a forwarded port mapping which allows access to a specific port
126
+ # within the machine from a port on the host machine and only allow access
127
+ # via 127.0.0.1 to disable public access
128
+ # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
129
+
130
+ # Create a private network, which allows host-only access to the machine
131
+ # using a specific IP.
132
+ config.vm.network "private_network", ip: "192.168.33.10"
133
+
134
+ # Create a public network, which generally matched to bridged network.
135
+ # Bridged networks make the machine appear as another physical device on
136
+ # your network.
137
+ # config.vm.network "public_network"
138
+
139
+ # Share an additional folder to the guest VM. The first argument is
140
+ # the path on the host to the actual folder. The second argument is
141
+ # the path on the guest to mount the folder. And the optional third
142
+ # argument is a set of non-required options.
143
+ # config.vm.synced_folder "../data", "/vagrant_data"
144
+
145
+ # Provider-specific configuration so you can fine-tune various
146
+ # backing providers for Vagrant. These expose provider-specific options.
147
+ # Example for VirtualBox:
148
+ #
149
+ # config.vm.provider "virtualbox" do |vb|
150
+ # # Display the VirtualBox GUI when booting the machine
151
+ # vb.gui = true
152
+ #
153
+ # # Customize the amount of memory on the VM:
154
+ # vb.memory = "1024"
155
+ # end
156
+ #
157
+ # View the documentation for the provider you are using for more
158
+ # information on available options.
159
+
160
+ # Enable provisioning with a shell script. Additional provisioners such as
161
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
162
+ # documentation for more information about their specific syntax and use.
163
+ # config.vm.provision "shell", inline: <<-SHELL
164
+ # apt-get update
165
+ # apt-get install -y apache2
166
+ # SHELL
167
+ end
168
+ ```
169
+
170
+ config.vm.network "private_network", ip: "192.168.33.10"
171
+ この部分を#を消してコメントではなくした以外いじってません。
94
172
  よろしくお願いします。