How to Set Up Linux in a Virtual Machine?

Set Up Linux in a Virtual Machine

Learn how to set up Linux in a virtual machine using VMware Player with our step-by-step guide. Experience the benefits of Linux without affecting your PC’s system.

Setting up Ubuntu Linux with VMWare Player.

Introduction

In the pursuit of your Engineering Studies, there are numerous justifications for utilizing Linux. It provides a conducive atmosphere for programming due to the abundance of accessible tools and certain utilities that are exclusively accessible through Linux. If you’re running a Windows PC, you have a variety of choices for installing Linux.

  1. Use Putty (or other terminal emulation software) to log into a remote Linux server via SSH.
  2. Run Linux on your local Windows PC Using:
    1. Dual boot computer
      1. This can be time consuming to setup
      1. This is good if you are doing lots of computational work or graphics
    1. Use cygwin
      1. People rarely do this anymore.
    1. Use a Linux from a bootup disk.
      1. This is great for certain uses
  3. You can set up Linux to run in virtually using VMware player – So EASY!
  4. There are other utilities you can use such as VirtualBox.
  5. The tutorial we created uses VMWare Player

Don’t hesitate to give it a shot, and I mean it! Setting it up shouldn’t take more than a few minutes. The guide employs Ubuntu Linux.

The beauty of utilizing VMWare Player is the ability to run diverse types of Linux concurrently in separate players. This provides you with an opportunity to assess and determine which one suits your preferences the most.

Also Read: Adobe Premiere Pro Review 2023

What is VMWare Player?

VMware Player is a software that allows users to effortlessly generate and operate virtual machines on a PC running Windows or Linux. For further details, you can visit the VMware website by clicking here.

Set Up Linux in a Virtual Machine

What is Ubuntu?

Ubuntu is a comprehensive Linux-based operating system designed for desktop usage and available for free, with support from both the community and professionals. It is apt for deployment on both desktops and servers. You can find more information about Ubuntu by clicking here.

Set Up Linux in a Virtual Machine

Setting up Ubuntu using VMWare Player

1) Download & Install VMWare Player.

2) Download Ubuntu by choosing the option of downloading it onto a CD or USB stick. Remember to choose either 32-bit or 64-bit.

3) Open the VMWare player application. MAKE SURE TO RUN THE PROGRAM AS AN ADMINISTRATOR. Click on Create a New Virtual Machine.

Set Up Linux in a Virtual Machine

4) Choose install from Installer disc image file (iso) and browse for the Ubuntu .iso you just downloaded. Click Next.

Set Up Linux in a Virtual Machine

5) Enter the required information then click Next.

Set Up Linux in a Virtual Machine

6) Enter a name you wish to use for the virtual machine, or you may leave it as is. Click Next.

Set Up Linux in a Virtual Machine

7) Leave the next box as is and click Next.

Set Up Linux in a Virtual Machine

8) Click Finish to finalize your virtual machine.

Set Up Linux in a Virtual Machine

9) If you are prompted to install VMWare tools, then go ahead and do so.

Set Up Linux in a Virtual Machine

10) You will see this:

Set Up Linux in a Virtual Machine

11) Once fully installed install the VMWare Client Tools driver.

Set Up Linux in a Virtual Machine

12) After successfully installing the driver, your new virtual machine should be fully set up!

  • We will test our virtual machine by using Ubuntu to communicate with the ‘maegrad’ server.
Set Up Linux in a Virtual Machine

Testing our VM with SSH

1) Open the Terminal in Ubuntu.

Set Up Linux in a Virtual Machine

2) Open the Terminal in Ubuntu.

Set Up Linux in a Virtual Machine

3) Now we can remotely connect to a linux server using SSH

  • Type:
ssh username@servername
ssh [email protected]

Press Enter.

  • Enter your password when prompted to do so.

Note: You may be prompted to verify the authenticity of the server you want to connect to.

  • Do so by typing ‘yes’ when prompted.
Set Up Linux in a Virtual Machine

4)  If you want X11 forwarding to run for a specific host during your current ssh session do this:

  • Type:
ssh -X username@servername
ssh -X [email protected]

Press Enter.

  • Enter your password when prompted to do so.
  • Note: This command will only enable X11 forwarding for your current session that you are connected to the maegrad server.

5)  Congratulations – you have a Linux VM running!

Leave a Comment

Your email address will not be published. Required fields are marked *