Learn Dev ops Series- Environment & Tools installation and setup

Khemlall Mangal
3 min readOct 21, 2022

--

All, in this series where we learn all about dev-ops and tool with projects, we will need to have the following tools install.

First if you are on window server you need to install chocolately.

Install Chocolatey for Individual Use:

  1. First, ensure that you are using an administrative shell — you can also install as a non-admin, check out Non-Administrative Installation.
  2. Install with powershell.exe
  3. 📝 NOTE: Please inspect https://community.chocolatey.org/install.ps1 prior to running any of these scripts to ensure safety. We already know it’s safe, but you should verify the security and contents of any script from the internet you are not familiar with. All of these scripts download a remote PowerShell script and execute it on your machine. We take security very seriously. Learn more about our security protocols.
  4. With PowerShell, you must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security.
  • Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
  1. Now run the following command:
  2. >
  3. Paste the copied text into your shell and press Enter.
  4. Wait a few seconds for the command to complete.
  5. If you don’t see any errors, you are ready to use Chocolatey! Type choco or choco -? now, or see Getting Started for usage instructions.

If you are on a MAC you need to use homebrew

Install the following tools using the command in power shell as an admin..

We will use this repository for our projects

GitHub — devopshydclub/vprofile-project

Note that you may need to install version 5x of virtual box for your machine as you may run into some issue with the latest version 7.0 and vagrant.

here was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "ae74ebaa-8f01-48cf-bdad-956c59ef1208", "--type", "gui"]

Stderr: VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

SOLUTION

Stop hyper-v service running by default in Windows 8/10, since it blocks all other calls to VT hardware.

Additional explanation here: https://social.technet.microsoft.com/Forums/windows/en-US/118561b9-7155-46e3-a874-6a38b35c67fd/hyperv-disables-vtx-for-other-hypervisors?forum=w8itprogeneral

Also as you have mentioned, if not already enabled, turn on Intel VT virtualization in BIOS settings and restart the machine.

To turn Hypervisor off, run this from Command Prompt (Admin) (Windows+X):

bcdedit /set hypervisorlaunchtype off

and reboot your computer. To turn it back on again, run:

bcdedit /set hypervisorlaunchtype on

If you receive “The integer data is not valid as specified”, try:

bcdedit /set hypervisorlaunchtype auto

--

--

Khemlall Mangal
Khemlall Mangal

Written by Khemlall Mangal

I am a passionate coder, QA Engineer, and someone who enjoys the outdoors.

No responses yet