Skip to content

These are the vagrant files i use day to day to reproduce, debug and test linux issues.

Notifications You must be signed in to change notification settings

pgaijin66/vargant-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My vagrant files

Table of contents

Install vargant

https://developer.hashicorp.com/vagrant/downloads

Note: Vagrant requires vm providers to work. Make sure you have either of the followings installed before hand

1) hyperv
2) libvirt
3) virtualbox
4) vmware_desktop

I use virtual box :).

After installation

After installing vagrant add vbguest plugin. This will save you from a lot of hassel.Trust me ;). More here: https://github.com/dotless-de/vagrant-vbguest

$ vagrant plugin install vagrant-vbguest

Vagrant commands

Start VM

cd VM_FOLDER
$ vagrant up

Listing running vms

$ vagrant status

Current machine states:

centos8                      running (virtualbox)
ubuntu64                     running (virtualbox)

Shutdown box

$ vagrant halt BOX_NAME

SSH uto your machine

$ vagrant ssh [VM_NAME]

eg:

$ vagrant ssh centos8

Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@centos:~ 

List vagrant boxes

$ vagrant box list

Destory running vm

$ vagrant destroy [VM_NAME]

Note: Removing box is different to destorying vm.

Remove vagrant boxes

$ vagrant box remove list

Exit from box

$ vagrant ssh centos8

Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@centos:~ logout

Gotcha

If you get error like

umount /mnt

Stdout from the command:



Stderr from the command:

umount: /mnt: not mounted

Simply backport the vbguet to 0.21 which works

vagrant plugin uninstall vagrant-vbguest
vagrant plugin install vagrant-vbguest --plugin-version 0.21

About

These are the vagrant files i use day to day to reproduce, debug and test linux issues.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published