Skip to content

Latest commit

 

History

History

playground-centos7

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Vagrantfile: CentOS 7 Playground

A simple test playground for CentOS 7.

Spin-up

  1. (Optional) Un-comment vagrant-hostmanager settings in Vagrantfile.

    config.hostmanager.manage_host = true
  2. (Optional) Setup vagrant-hostmanager Passwordless sudo.

  3. Spin up Vagrant guest:

    vagrant up

Usage

SSH login

SSH login to Vagrant guest:

vagrant ssh

or:

ssh vagrant@<vagrant-guest-hostname> \
    -i .vagrant/machines/<vagrant-guest-hostname>/parallels/private_key

# e.g.
# ssh vagrant@playground-centos7 \
#     -i .vagrant/machines/playground-centos7/parallels/private_key

Change VM hostname

  1. Edit variable HOST_NAME in Vagrantfile to a proper VM name.

  2. Update hosts managed by vagrant-hostmanager:

    vagrant hostmanager