Installing and configuring Vagrant on your own laptop and/or PC may seem complicated, but it is not at all.
To get Vagrant working, you need to perform 7 steps. I have described these 7 steps below. I myself work with Vagrant within Windows. Hopefully I have described all steps for MACos correctly. If not, please let me know !
I make the assumption that VMware Workstation Pro or VMware Fusion Pro is installed. If not, this should be done first. VMware Workstation Pro and VMWare Fusion Pro is now free for personal use. So that shouldn't be a problem.
VMWare Workstation 17 Pro for Windows Download.
VMware Workstation 17 Pro for Linux Download.
VMware Fusion 13 Pro for MACos Download.
Extract the TAR-files with e.g. 7-ZIP and install (Next, Next, Finish)
Download Vagrant 2.4.1 Download
Download Vagrant VMware Plugin Download
Download Vagrant 2.4.1 Download
Download Vagrant VMware Plugin Download
Install Vagrant 2.4.1 and reboot your laptop or PC (don't skip reboot!]
Install Vagrant VMware Plugin 1.0.22 (reboot if needed)
Just click Next, Next, Finish during the installation.
vagrant plugin install vagrant-vmware-desktop
exit
Terminal must be closed to load the environment variables
Start Terminal
setx VAGRANT_VAGRANTFILE "Vagrantfile-latest.rb"
setx VAGRANT_EXPERIMENTAL "1"
setx VAGRANT_SUPPRESS_GO_EXPERIMENTAL_WARNING "1"
setx VAGRANT_DEFAULT_PROVIDER "vmware_desktop"
setx VAGRANT_VMWARE_CLONE_DIRECTORY "x:\Directory of your choice where virtual machines should be stored"
exit
It is very important to close the terminal. Otherwise the settings are not loaded !
More information at Vagrant Docs
vagrant init
exit
Download My Custom Vagrantfile.
Put this file in the folder Downloads (Windows).
del %HOMEDRIVE%\vagrantfil*.*
exit
copy %HOMEDRIVE%\Downloads\Vagrantfile-latest.rb %HOMEDRIVE%
exit
del ~/vagrant.d/vagrantfil*.*
exit
! DON'T FORGET ! Store the custom vagrantfile (Vagrantfile-latest.rb) in ~/vagrant.d/
Start terminal
vagrant box add gusztavvargadr/ubuntu-server-2404-lts --clean --provider vmware_desktop
vagrant box add gusztavvargadr/windows-server-2022-standard --clean --provider vmware_desktop
vagrant box add gusztavvargadr/windows-11 --clean --provider vmware_desktop
exit
The Windows boxes use about 15 gigabyte of diskspace per box. The Linux box uses about 4 gigabyte of diskspace. About 35 gigabytes of disk space is thus necessary for all boxes.
That was it then. You're all set with the installation and configuration of the environment. Let's start the fun !
For Example:
Starting the Introduction Infrastructures Webserver small edition (uses 2 GB RAM)
vagrant up U24-LTS-S-WSRV-S-001
Starting the Introduction Infrastructures Webserver extra large edition (uses 8 GB RAM)
vagrant up U24-LTS-S-WSRV-XL-001
For Example:
vagrant halt U24-LTS-S-WSRV-S-001
More information on Vagrant configuration files can be found on Vagrant docs
- Vagrant by Hashicorp Inc. (hashicorp.com)
- Virtualbox by Oracle Corporation (oracle.com)
- VMware by VMware Company (vmware.com) / Broadcom (broadcom.com)
- Windows by Microsoft Corporation (microsoft.com)
Everything I describe is intended for personal or educational use. In my case, that is primarily educational use.
All references to and quotations from external sources are licensed and/or copyright the respective owners. I make no claim to ownership of these sources. References to and quotations from these sources have been used on the basis of assumption of reasonableness and fair use. To my knowledge, no copyright or other rights have been infringed. If it is believed that references to and/or quotations from certain external sources violate any rules, rights or interests, please contact.