Taula de continguts

LPIC2 2021 Sesión 0: Preparativos (2021-02-02)

entornos laboratorio Vagrant

Vagrantfile
##Ususario:vagrant
##Pass: vagrant
 
##user:root
##pass:vagrant
Vagrant.configure("2") do |config|
  config.vm.define "centos7" do |centos7|
  config.vm.boot_timeout = 400
    centos7.vm.box = "bento/centos-7.2"
    #centos7.vm.network "forwarded_port", guest: 3000, host: 3002, auto_correct: true
    centos7.vm.network "private_network", ip: "192.168.2.5"
    centos7.vm.hostname = "sercentos7"
  end
 
  config.vm.define "centos6" do |centos6|
    centos6.vm.box = "bento/centos-6.7"
	config.vm.boot_timeout = 400
    #centos6.vm.network "forwarded_port", guest: 3000, host: 3001, auto_correct: true
    centos6.vm.network "private_network", ip: "192.168.2.152"
    centos6.vm.hostname = "orion"
	#centos6.vm.provision "shell", inline: <<-SHELL
    # SHELL
  end
end

máquinas vagrant