How to Set a Virtual Machine in Windows OS

How to Set a Virtual Machine in Windows OS

Overview

Installing a virtual machine on a Windows operating system seems to be the easiest and most basic process that almost every computer software or data scientist should master. However, in reality, this process sometimes can be tedious and time-consuming because (1) not knowing which software to use (2) configuring the virtual machine to my expectations is sometimes confusing (3) the most difficult (from my point of view) but very basic process, “enabling the internet to the VM”

I made this guide so developers can easily follow and install a VM without any struggle in their Windows machine. In this guide, I will be configuring a CentOS 7 VM that will be further used to build the HBase project to tune the database for faster query operations.

Guide Main Contents:

  1. Hyper-V Installation
  2. CentOS Download & Internet Configuration
  3. CentOS Installation

Install Hyper-V

Step 1

  • Open Windows Powershell as administrator and run the next command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All        

Step 2

  • The system might need a reboot, after logging, run the next command again at the power shell in administrator mode:

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V        

CentOS Download & Configuration

Step 1

  • Download the ISO from this link The name of the file should be Centos {smth} Everything.iso

Step 2 [Set Up the VM]

  • Create a new virtual machine

  • On this window, click next to configure several virtual machine parameters.

  • Set a name and next

  • .Continue to click Generation 1 and Next.

  • Our local computer has 32GB of memory. I set 16 GB because I need as many resources as possible. The amount of memory is set as required.

  • For the moment, do NOT set the network. Step 3 of this section will show you how to set the internet connection successfully.

  • Here, we use default settings.

  • Browse the downloaded ISO from the internet and Next.

  • This window shows the summary of the settings that we just configured.

Step 3 [Configure The Network]

  • From your main device, go to Virtual Switch Manager.

  • Create a virtual switch as shown in the image below.

  • Set a name, and click the VLAN ID box. After finishing, apply the configurations.

  • Go back to the generated VM and click Settings.

  • In the Network Adapter, set the Virtual Switch and check the VLAN ID box. After finishing, apply the configurations

  • An extra necessary setting is needed to enable the internet connection on the VM. Go to ncpa.cpl through the Windows+R shortcut and open Ethernet Properties.

  • Go to sharing and set the configurations as shown in the image below.

If all these settings are followed correctly, you should be able to use virtual machines within your Windows machine.

Issues

  • You might see that the VM screen resolution is smaller than it should be. To solve this issue and use all the available resolutions of the screen, type the next command in the Windows Powershell on administrator mode.

Set-VMVideo -VMName "VM Name" -HorizontalResolution 1920 -VerticalResolution 1080 -ResolutionType Single        

References

  1. Windows 10 Hyper-V Installation
  2. How to Install Centos7 VM Windows
  3. Configure VM Network
  4. Resolution Troubleshoot


#linux #virtualmachine #centos #windows11 #datascience #developmenttools #hyperv #programming




Thanks for sharing, Humberto! Setting up a virtual machine can indeed be a game-changer for development, and your guide simplifies the process perfectly. Excited to save some valuable 'gold' time with this efficient approach!

要查看或添加评论,请登录

Humberto Villalta的更多文章

  • Network Configuration

    Network Configuration

    Try the following steps to reset the server’s internet connection: Before Starting…. To see which file is connected to…

  • How to Push Local Repo Code into Github Repo

    How to Push Local Repo Code into Github Repo

    This guide is intended to show how to push code from our local computer to a GitHub repository. Step 1 Open the Git…

  • HDFS Clustering Through Docker in CentOS

    HDFS Clustering Through Docker in CentOS

    Overview This guide will show you how to deploy a distributed file system for Hadoop (HDFS). We will first make a…

  • Redis Integration with Python

    Redis Integration with Python

    Overview This guide is made for those who want to install Redis in a Centos 7 docker container and to integrate Python.…

  • What is Redis?

    What is Redis?

    Overview Redis is a C programming written REmote DIctionary Server developed in 2006. Redis read and write operations…

  • Linux [~/.bashrc] File

    Linux [~/.bashrc] File

    This post is intended to show how to interact with the different settings this file offers. Some of the settings that…

  • Spacetime Data Hub Technology Connecting the Physical and Digital Worlds

    Spacetime Data Hub Technology Connecting the Physical and Digital Worlds

    The advancement of IT technology has enabled people to project physical spaces into virtual spaces known as “digital…

  • Python Decorator Introduction with Examples

    Python Decorator Introduction with Examples

    1. Overview The decorator pattern is a software design pattern that allows us to dynamically add functionality to…

  • HyperLogLog Basics

    HyperLogLog Basics

    Overview Probabilistic data structures are very well-known because of their outstanding time and space complexity among…

  • Cuckoo Index

    Cuckoo Index

    1. Overview Cuckoo hashing is used as a solution for hash collisions, and its worst-case lookup time is constant O(1).

社区洞察

其他会员也浏览了