yoesoff

Vagrant Init

Jan 10th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.60 KB | None | 0 0
  1. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/projects  
  2. ╰─➤  mkdir Vagrant && cd Vagrant
  3. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/projects/Vagrant  
  4. ╰─➤  vagrant init hashicorp/precise64
  5. A `Vagrantfile` has been placed in this directory. You are now
  6. ready to `vagrant up` your first virtual environment! Please read
  7. the comments in the Vagrantfile as well as documentation on
  8. `vagrantup.com` for more information on using Vagrant.
  9. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/projects/Vagrant  
  10. ╰─➤  ls
  11. Vagrantfile
  12. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/projects/Vagrant  
  13. ╰─➤  cat Vagrantfile
  14. # -*- mode: ruby -*-
  15. # vi: set ft=ruby :
  16.  
  17. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  18. # configures the configuration version (we support older styles for
  19. # backwards compatibility). Please don't change it unless you know what
  20. # you're doing.
  21. Vagrant.configure("2") do |config|
  22.   # The most common configuration options are documented and commented below.
  23.   # For a complete reference, please see the online documentation at
  24.   # https://docs.vagrantup.com.
  25.  
  26.   # Every Vagrant development environment requires a box. You can search for
  27.   # boxes at https://vagrantcloud.com/search.
  28.   config.vm.box = "hashicorp/precise64"
  29.  
  30.   # Disable automatic box update checking. If you disable this, then
  31.   # boxes will only be checked for updates when the user runs
  32.   # `vagrant box outdated`. This is not recommended.
  33.   # config.vm.box_check_update = false
  34.  
  35.   # Create a forwarded port mapping which allows access to a specific port
  36.   # within the machine from a port on the host machine. In the example below,
  37.   # accessing "localhost:8080" will access port 80 on the guest machine.
  38.   # NOTE: This will enable public access to the opened port
  39.   # config.vm.network "forwarded_port", guest: 80, host: 8080
  40.  
  41.   # Create a forwarded port mapping which allows access to a specific port
  42.   # within the machine from a port on the host machine and only allow access
  43.   # via 127.0.0.1 to disable public access
  44.   # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
  45.  
  46.   # Create a private network, which allows host-only access to the machine
  47.   # using a specific IP.
  48.   # config.vm.network "private_network", ip: "192.168.33.10"
  49.  
  50.   # Create a public network, which generally matched to bridged network.
  51.   # Bridged networks make the machine appear as another physical device on
  52.   # your network.
  53.   # config.vm.network "public_network"
  54.  
  55.   # Share an additional folder to the guest VM. The first argument is
  56.   # the path on the host to the actual folder. The second argument is
  57.   # the path on the guest to mount the folder. And the optional third
  58.   # argument is a set of non-required options.
  59.   # config.vm.synced_folder "../data", "/vagrant_data"
  60.  
  61.   # Provider-specific configuration so you can fine-tune various
  62.   # backing providers for Vagrant. These expose provider-specific options.
  63.   # Example for VirtualBox:
  64.   #
  65.   # config.vm.provider "virtualbox" do |vb|
  66.   #   # Display the VirtualBox GUI when booting the machine
  67.   #   vb.gui = true
  68.   #
  69.   #   # Customize the amount of memory on the VM:
  70.   #   vb.memory = "1024"
  71.   # end
  72.   #
  73.   # View the documentation for the provider you are using for more
  74.   # information on available options.
  75.  
  76.   # Enable provisioning with a shell script. Additional provisioners such as
  77.   # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  78.   # documentation for more information about their specific syntax and use.
  79.   # config.vm.provision "shell", inline: <<-SHELL
  80.   #   apt-get update
  81.   #   apt-get install -y apache2
  82.   # SHELL
  83. end
  84. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/projects/Vagrant  
  85. ╰─➤  vagrant up
  86. Bringing machine 'default' up with 'virtualbox' provider...
  87. ==> default: Box 'hashicorp/precise64' could not be found. Attempting to find and install...
  88.     default: Box Provider: virtualbox
  89.     default: Box Version: >= 0
  90. ==> default: Loading metadata for box 'hashicorp/precise64'
  91.     default: URL: https://vagrantcloud.com/hashicorp/precise64
  92. ==> default: Adding box 'hashicorp/precise64' (v1.1.0) for provider: virtualbox
  93.     default: Downloading: https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box
  94.     default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
  95. ==> default: Successfully added box 'hashicorp/precise64' (v1.1.0) for 'virtualbox'!
  96. ==> default: Importing base box 'hashicorp/precise64'...
  97. ==> default: Matching MAC address for NAT networking...
  98. ==> default: Checking if box 'hashicorp/precise64' is up to date...
  99. ==> default: Setting the name of the VM: Vagrant_default_1547108918999_76518
  100. Vagrant is currently configured to create VirtualBox synced folders with
  101. the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
  102. guest is not trusted, you may want to disable this option. For more
  103. information on this option, please refer to the VirtualBox manual:
  104.  
  105.   https://www.virtualbox.org/manual/ch04.html#sharedfolders
  106.  
  107. This option can be disabled globally with an environment variable:
  108.  
  109.   VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
  110.  
  111. or on a per folder basis within the Vagrantfile:
  112.  
  113.   config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
  114. ==> default: Vagrant has detected a configuration issue which exposes a
  115. ==> default: vulnerability with the installed version of VirtualBox. The
  116. ==> default: current guest is configured to use an E1000 NIC type for a
  117. ==> default: network adapter which is vulnerable in this version of VirtualBox.
  118. ==> default: Ensure the guest is trusted to use this configuration or update
  119. ==> default: the NIC type using one of the methods below:
  120. ==> default:
  121. ==> default:   https://www.vagrantup.com/docs/virtualbox/configuration.html#default-nic-type
  122. ==> default:   https://www.vagrantup.com/docs/virtualbox/networking.html#virtualbox-nic-type
  123. ==> default: Clearing any previously set network interfaces...
  124. ==> default: Preparing network interfaces based on configuration...
  125.     default: Adapter 1: nat
  126. ==> default: Forwarding ports...
  127.     default: 22 (guest) => 2222 (host) (adapter 1)
  128. ==> default: Booting VM...
  129. ==> default: Waiting for machine to boot. This may take a few minutes...
  130.     default: SSH address: 127.0.0.1:2222
  131.     default: SSH username: vagrant
  132.     default: SSH auth method: private key
  133.     default:
  134.     default: Vagrant insecure key detected. Vagrant will automatically replace
  135.     default: this with a newly generated keypair for better security.
  136.     default:
  137.     default: Inserting generated public key within guest...
  138.     default: Removing insecure key from the guest if it's present...
  139.    default: Key inserted! Disconnecting and reconnecting using new SSH key...
  140. ==> default: Machine booted and ready!
  141. ==> default: Checking for guest additions in VM...
  142.    default: The guest additions on this VM do not match the installed version of
  143.    default: VirtualBox! In most cases this is fine, but in rare cases it can
  144.    default: prevent things such as shared folders from working properly. If you see
  145.    default: shared folder errors, please make sure the guest additions within the
  146.    default: virtual machine match the version of VirtualBox you have installed on
  147.    default: your host and reload your VM.
  148.    default:
  149.    default: Guest Additions Version: 4.2.0
  150.    default: VirtualBox Version: 5.2
  151. ==> default: Mounting shared folders...
  152.    default: /vagrant => /home/yoesoff/Documents/projects/Vagrant
  153. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/projects/Vagrant  
  154. ╰─➤
Advertisement
Add Comment
Please, Sign In to add comment