Created
November 2, 2018 21:15
-
-
Save sofianinho/f8851a088f7ad3adf384282c513f7da8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant --nodes=3 up | |
Bringing machine 'node-1' up with 'virtualbox' provider... | |
Bringing machine 'node-2' up with 'virtualbox' provider... | |
Bringing machine 'node-3' up with 'virtualbox' provider... | |
==> node-1: Importing base box 'ubuntu/bionic64'... | |
==> node-1: Matching MAC address for NAT networking... | |
==> node-1: Checking if box 'ubuntu/bionic64' is up to date... | |
==> node-1: A newer version of the box 'ubuntu/bionic64' for provider 'virtualbox' is | |
==> node-1: available! You currently have version '20181030.0.0'. The latest is version | |
==> node-1: '20181101.0.0'. Run `vagrant box update` to update. | |
==> node-1: Setting the name of the VM: loop_node-1_1541192469421_24683 | |
==> node-1: Clearing any previously set network interfaces... | |
==> node-1: Preparing network interfaces based on configuration... | |
node-1: Adapter 1: nat | |
node-1: Adapter 2: hostonly | |
==> node-1: Forwarding ports... | |
node-1: 22 (guest) => 2222 (host) (adapter 1) | |
==> node-1: Running 'pre-boot' VM customizations... | |
==> node-1: Booting VM... | |
==> node-1: Waiting for machine to boot. This may take a few minutes... | |
node-1: SSH address: 127.0.0.1:2222 | |
node-1: SSH username: vagrant | |
node-1: SSH auth method: private key | |
node-1: Warning: Connection reset. Retrying... | |
node-1: Warning: Remote connection disconnect. Retrying... | |
node-1: | |
node-1: Vagrant insecure key detected. Vagrant will automatically replace | |
node-1: this with a newly generated keypair for better security. | |
node-1: | |
node-1: Inserting generated public key within guest... | |
node-1: Removing insecure key from the guest if it's present... | |
node-1: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> node-1: Machine booted and ready! | |
==> node-1: Checking for guest additions in VM... | |
==> node-1: Configuring and enabling network interfaces... | |
==> node-1: Mounting shared folders... | |
node-1: /vagrant => /home/sofiane/workspace/VM/loop | |
==> node-1: Running provisioner: shell... | |
node-1: Running: inline script | |
node-1: hello from node 11 | |
==> node-2: Importing base box 'ubuntu/bionic64'... | |
==> node-2: Matching MAC address for NAT networking... | |
==> node-2: Checking if box 'ubuntu/bionic64' is up to date... | |
==> node-2: A newer version of the box 'ubuntu/bionic64' for provider 'virtualbox' is | |
==> node-2: available! You currently have version '20181030.0.0'. The latest is version | |
==> node-2: '20181101.0.0'. Run `vagrant box update` to update. | |
==> node-2: Setting the name of the VM: loop_node-2_1541192506637_99868 | |
==> node-2: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> node-2: Clearing any previously set network interfaces... | |
==> node-2: Preparing network interfaces based on configuration... | |
node-2: Adapter 1: nat | |
node-2: Adapter 2: hostonly | |
==> node-2: Forwarding ports... | |
node-2: 22 (guest) => 2200 (host) (adapter 1) | |
==> node-2: Running 'pre-boot' VM customizations... | |
==> node-2: Booting VM... | |
==> node-2: Waiting for machine to boot. This may take a few minutes... | |
node-2: SSH address: 127.0.0.1:2200 | |
node-2: SSH username: vagrant | |
node-2: SSH auth method: private key | |
node-2: Warning: Connection reset. Retrying... | |
node-2: Warning: Remote connection disconnect. Retrying... | |
node-2: Warning: Connection reset. Retrying... | |
node-2: Warning: Remote connection disconnect. Retrying... | |
node-2: | |
node-2: Vagrant insecure key detected. Vagrant will automatically replace | |
node-2: this with a newly generated keypair for better security. | |
node-2: | |
node-2: Inserting generated public key within guest... | |
node-2: Removing insecure key from the guest if it's present... | |
node-2: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> node-2: Machine booted and ready! | |
==> node-2: Checking for guest additions in VM... | |
==> node-2: Configuring and enabling network interfaces... | |
==> node-2: Mounting shared folders... | |
node-2: /vagrant => /home/sofiane/workspace/VM/loop | |
==> node-2: Running provisioner: shell... | |
node-2: Running: inline script | |
node-2: hello from node 12 | |
==> node-3: Importing base box 'ubuntu/bionic64'... | |
==> node-3: Matching MAC address for NAT networking... | |
==> node-3: Checking if box 'ubuntu/bionic64' is up to date... | |
==> node-3: A newer version of the box 'ubuntu/bionic64' for provider 'virtualbox' is | |
==> node-3: available! You currently have version '20181030.0.0'. The latest is version | |
==> node-3: '20181101.0.0'. Run `vagrant box update` to update. | |
==> node-3: Setting the name of the VM: loop_node-3_1541192543463_25375 | |
==> node-3: Fixed port collision for 22 => 2222. Now on port 2201. | |
==> node-3: Clearing any previously set network interfaces... | |
==> node-3: Preparing network interfaces based on configuration... | |
node-3: Adapter 1: nat | |
node-3: Adapter 2: hostonly | |
==> node-3: Forwarding ports... | |
node-3: 22 (guest) => 2201 (host) (adapter 1) | |
==> node-3: Running 'pre-boot' VM customizations... | |
==> node-3: Booting VM... | |
==> node-3: Waiting for machine to boot. This may take a few minutes... | |
node-3: SSH address: 127.0.0.1:2201 | |
node-3: SSH username: vagrant | |
node-3: SSH auth method: private key | |
node-3: Warning: Connection reset. Retrying... | |
node-3: Warning: Remote connection disconnect. Retrying... | |
node-3: | |
node-3: Vagrant insecure key detected. Vagrant will automatically replace | |
node-3: this with a newly generated keypair for better security. | |
node-3: | |
node-3: Inserting generated public key within guest... | |
node-3: Removing insecure key from the guest if it's present... | |
node-3: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> node-3: Machine booted and ready! | |
==> node-3: Checking for guest additions in VM... | |
==> node-3: Configuring and enabling network interfaces... | |
==> node-3: Mounting shared folders... | |
node-3: /vagrant => /home/sofiane/workspace/VM/loop | |
==> node-3: Running provisioner: shell... | |
node-3: Running: inline script | |
node-3: hello from node 13 | |
$ vagrant status | |
Current machine states: | |
node-1 running (virtualbox) | |
The VM is running. To stop this VM, you can run `vagrant halt` to | |
shut it down forcefully, or you can run `vagrant suspend` to simply | |
suspend the virtual machine. In either case, to restart it again, | |
simply run `vagrant up`. | |
$ vagrant global-status | |
id name provider state directory | |
------------------------------------------------------------------------------------------------ | |
db29d48 node-1 virtualbox running /home/sofiane/workspace/VM/loop | |
2f880e6 node-2 virtualbox running /home/sofiane/workspace/VM/loop | |
cf256ee node-3 virtualbox running /home/sofiane/workspace/VM/loop | |
$ ls -a .vagrant/machines/ | |
. .. node-1 node-2 node-3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment