File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# vagrant-basic
22
3- [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT ) [ ![ semantic-release] ( https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg )] ( https://github.com/semantic-release/semantic-release ) [ ![ Build Status] ( https://travis-ci.com/extra2000/vagrant-basic.svg?branch=master )] ( https://travis-ci.com/extra2000/vagrant-basic )
3+ [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT ) [ ![ semantic-release] ( https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg )] ( https://github.com/semantic-release/semantic-release ) [ ![ Build Status] ( https://travis-ci.com/extra2000/vagrant-basic.svg?branch=master )] ( https://travis-ci.com/extra2000/vagrant-basic ) [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/6gbufvpny4wim1hf/branch/master?svg=true )] ( https://ci.appveyor.com/project/nikAizuddin/vagrant-basic-39rea/branch/master )
4+
45
56Simple example on how to use Vagrant to create Centos 7 virtual machine.
67
Original file line number Diff line number Diff line change 1+ os : Ubuntu
2+ platform :
3+ - x64
4+ install :
5+ - sudo apt-get update && sudo apt-get install -y bridge-utils dnsmasq-base ebtables libvirt-bin libvirt-dev qemu-kvm qemu-utils ruby-dev
6+ - sudo wget -nv https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.deb
7+ - sudo dpkg -i vagrant_2.2.9_x86_64.deb
8+ - sudo vagrant plugin install vagrant-libvirt vagrant-scp vagrant-reload vagrant-vbguest
9+ build_script :
10+ - sudo vagrant up --provider=libvirt
11+ - sudo vagrant ssh -- echo "hello world"
12+ - sudo vagrant halt
13+ - sudo vagrant destroy --force
14+ test : off
You can’t perform that action at this time.
0 commit comments