- [VM from scratch bypassing Vagrant](#vm-from-scratch-bypassing-vagrant)
- [VM from scratch - bypassing Vagrant](#vm-from-scratch---bypassing-vagrant)
- [Example overview](#example-overview)
- [Example execution](#example-execution)
7. [Why sandbox?](#why-sandbox)
@ -156,16 +156,41 @@ Some of the important ones are:
- **vagrant snapshot [box_name]** : Take a snapshot of the current box.
[Pointer to more details...](https://opensource.com/article/21/9/test-vagrant)
### VM from Scratch bypassing Vagrant
### VM from scratch - bypassing Vagrant
In case Linux or Windows Subsystem for Linux (WSL) isn't feasible, and employing Vagrant with the provided Vagrantfile by comnestemu is not an option, it's possible to construct a proper working environment using VirtualBox starting from an Ubuntu ISO file. Doing this in a VM and not in your OS is recommended due to the necessity of manipulating network parameters, thereby maintaining the integrity of the base operating system installation. By employing a virtual machine, we ensure that any alterations made to network configurations are contained within the virtualized environment, keeping the host system unaffected and ensuring a clean operational environment.
Here's a step-by-step guide on how to set up a virtual environment:
1. **Install VirtualBox**: Begin by downloading and installing VirtualBox on your system.
2. **Download Ubuntu ISO**: Obtain the Ubuntu ISO file from the official website.
3. **Create a New Virtual Machine**: Launch VirtualBox and create a new virtual machine. During the setup process, allocate appropriate resources such as CPU(XXXXXXXXXX), memory(XXXXXXXXXXXX), and disk space(XXXXXXXX).
3. **Create a New Virtual Machine**: Launch VirtualBox and create a new virtual machine. During the setup process, allocate appropriate resources such as CPU( >2), memory( >4 GB), and disk space( >25 GB).
4. **Install Ubuntu**: Start the virtual machine and boot from the Ubuntu ISO. Follow the installation prompts to install Ubuntu within the virtual environment.
5. **Configure Ubuntu**: Once Ubuntu is installed, configure it according to your testing needs. Install any necessary packages and set up network parameters as required for your testing scenarios.