Skip to main content

Posts

Showing posts with the label virtualization

How to Setup Virtual Environment in Python with venv

A virtual environment is the most used tool by the developers to isolate the dependencies for different projects. Suppose you have two projects say porj1 and proj2 . proj1 needs the Django dependency with version 3.2 but your proj2 needs the Django dependency with version 2.2. In this situation you need a virtual environment to keep the both version on your system separately.  How to create virtual environment in python:  Decide a directory where you want to create the virtual environment. You can use your project directory or any other directory as per your wish.  Run the below command. Here` awesome_proj_env ` is the folder where virtual environment will be created. if the folder does not exists then it will be created automatically. python3 -m venv awesome_proj_env    Activate the virtual environment: On Linux/Mac OSX: source awesome_proj_env/bin/activate  On Windows: awesome_proj_env \Scripts\activate.bat Deactivate the virtual environment in Pyth...

Cloud Computing - Virtualization

Virtualization: Hosting all of a physical machine's hardware and software components independently on a single or shared hardware resource. In virtualization, we can run multiple operating systems on a single machine at the same time. In the case of dual-boot, we can run an OS at a time. Virtual Machine: VM is the set of virtual hardware devices, virtual RAM and virtual CPU that run like a traditional operating system. Virtual Server: It is also a virtual machine running as a server. It can run one or possibly more server-based application. This server may be a database or messaging or anything else. VMM (Virtual Machine Monitor): VMM consists of multiple virtual machines top of the hypervisor to handle all the VMs. Hypervisor: Hypervisor consists of multiple VMs and communicates with the real hardware to provide the resources to the available virtual machines. It controls all the physical resources on the computer. two types of the hypervisor exist as shown in the below diagram....