Image on cloud: Vagrant Cloud
Sample vagrant file:
Vagrant.configure("2") do |config| # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # This refers to a local `.box` file which should have been generated by running sets in README.md config.vm.box = "amazonlinux2" # Vagrant has a default synced folder which you might choose to disable config.vm.synced_folder ".", "/vagrant", disabled: true # This custom built box is not setup to support updates anyway, hence they are been disabled config.vm.box_check_update = false end
Commands used while adding the image locally:
cd C:\Users\UReddy\amaznlinux2 vagrant up vagrant images vagrant images list vagrant box list vagrant box add --help vagrant box add "C:\Users\UReddy\amaznlinux2\amaozonlinux2.box" vagrant box add "C:\Users\UReddy\amaznlinux2\amaozonlinux2.box" --name amazonlinux2 vagrant box list vagrant up vagrant ssh vagarnt halt vagrant halt vagrant destroy doskey /history > commands.txt
Steps used while creating image:
Steps used while uploading the image:
No comments:
Post a Comment