software for automatically creating and configuring virtual machines
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/xenial32"
# add a private network
config.vm.network "private_network"
# provider-specific settings
config.vm.provider :virtualbox do |vb|
vb.gui = true
vb.name = "Friendly Name"
end
# run a shell script
config.vm.provision "shell", path: "script.sh"
end
recipe for virtual machines
snapshot of a virtual machine
services used for creating and running virtual machines
(Providers)
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/xenial32'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/xenial32' is up to date...
==> default: Setting the name of the VM: ubuntu-xenial-16.04-cloudimg
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: ubuntu
default: SSH auth method: password
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
fhhgb/headless
fhhgb/desktop
router, server, etc ...
testing, monitoring
Boxes
Exercises
shared as archive via ...
Pro
Contra