Download and install VMware & virtual machine


basic introduction

What is VMware? What is a virtual machine? What is the relationship between the two?

VMware is a type of virtualization software, and a virtual machine is a computer environment created through virtualization technology.

Specifically, VMware is a software product that provides a complete virtualization solution, including virtual machine managers, virtual machine monitors, virtual machine operating systems and other components.

A virtual machine refers to a virtual computer environment simulated on a physical computer through virtualization technology. Each virtual machine has its own CPU, memory, hard disk, network interface and other resources, and can independently install and run operating systems and applications.

Through VMware, we can run multiple virtual machines on a physical server , and each virtual machine can independently run different operating systems and applications, thereby improving the utilization and flexibility of hardware resources.

Download and install VMware Workstation

Since I am learning how to use it, I use the player version, which is free.

To download software, you can find the corresponding software download link through the official website, or you can directly click on the direct link provided below.
Download and install VMware Workstation 17 Player: https://customerconnect.vmware.com/en/downloads/details?downloadGroup=WKST-PLAYER-1702&productId=1377&rPId=104734
image.png

The installation of VMware Workstation 17 Player is relatively simple, just double-click the installation package and install according to the prompts, which is omitted here.

Create a virtual machine

Creating a virtual machine requires selecting an operating system. The system generally used to build Hadoop is Linux. Ubuntu is used more frequently in Linux, so I chose Ubuntu of Linux.

Process screenshot:

The first step of the wizard involves the installation source, here select the last one [Install operating system later].

There is a saying here that if you choose other, the machine will install the system on its own and allocate all disk space to the C drive. However, I have not tested it. I don’t know whether it is true. It needs to be tested.

image.png
Select the operating system, Ubuntu for Linux. (Choose the appropriate system according to your needs~~)
image.png
Give the virtual machine a name and specify the location where the virtual machine is installed.
image.png
Specify the size of the virtual machine and configure it according to your own memory and usage scenarios. I use the recommended size directly here. You can adjust it later if it is not enough.
image.png
Complete the configuration.
PS: If you still need to modify it, you can click [Customize Hardware].
image.png

Custom hardware
image.png

The hardware information has only been configured here, but it cannot be used because the operating system has not been installed yet. Installing the operating system requires the use of a CD or CD file ISO.

iso image download address

Download URL:

  • centos (recommended to download DVD IOS type): http://ftp.sjtu.edu.cn/centos/7/isos/x86_64/
  • ubuntu:http://releases.ubuntu.com/、https://ubuntu.com/download

For Ubuntu version selection, you can choose several relatively stable versions: Ubuntu 22.04.3 LTS, Ubuntu 20.04.6 LTS, and Ubuntu 18.04 LTS.
I chose Ubuntu 18.04 LTS. This version can provide stable performance and rich teaching resources. This version provides two types of CD files: desktop (visual) and command line formats. Their versions are designed for different purposes and provide different functions:

  • ubuntu-18.04.6-desktop-amd64.iso (about 2G): A version designed for desktop environment (daily use). This version includes a complete desktop environment, such as Unity desktop, GNOME desktop, etc., as well as a series of common desktop applications, such as web browsers, email clients, office suites, etc. It is mainly used as an operating system for desktop devices such as personal computers and laptops.
  • ubuntu-18.04.6-live-server-amd64.iso (about 1G): A version specially designed for server environments. This version does not have a desktop environment, but provides a series of server applications and tools, such as Apache Web Server, MySQL database, SSH service, etc. It also includes the core functions of Ubuntu server, such as network management, storage management, user management, etc. This version is mainly used to build various types of servers, such as Web servers, database servers, mail servers, etc.

I choose the server version and download the relevant packages.
image.png

Configure it in the virtual machine, as shown below.
image.png
Start the virtual machine.
image.png
Entered the environment and found an error! !
image.png

image.png

For the above error report, you need to check these three! ! !
image.png

Start system installation and configuration

Choose a language

image.png
image.png
image.png

IP and proxy

image.png
image.png
image.png

Drive letter, user and password

Set the password for the drive letter. If a password is set, the data-related password will be required when activating the drive letter later.
image.png
image.png
image.png
Set up virtual machine account related information.
image.png

Remote github

Due to network reasons, the connection cannot be made. I will need to add more later~~~
image.png
image.png
image.png

Software Installation

You can install related software according to your own needs. It is not safe at this time. You can also install it after the subsequent system installation is successful.
image.png

Click on the corresponding software to view the relevant introduction and version information. Examples are as follows:

  • microk8s

image.png

  • docker

image.png

  • wormhole

image.png

  • Postgresql

image.png

start installation

The installation process will take a while. Screenshot of the process:
image.png
When the following related content appears during the installation, it means that the installation has been completed. Click [Reboot Now] to restart the virtual machine.
image.png

Restart using

You may encounter some errors after restarting.
Error 1: Please remove the installation medium, then press ENTER.
This is because some media, such as CDs, USB drives, mice, etc., are inserted and need to be removed.

Error 2: Volume group "ubuntu-vg" not found.Cannot nrocess volume groun uhuntu-vg.Please unlock disk dm_crypt-0.
This requires setting the drive letter password previously, and you need to enter the drive letter related password.

After a successful restart, a series of installations will occur.
image.png
The following return indicates success and you can start using the virtual machine.

[ ok ] Started Execute cloud user/final scripts.
[ ok ] Reached target Cloud-init target.

image.png
First, press Enter and then log in to the server account.
image.png

Install VMware Tools

Direct player>Manage>Install VMware Tools
image.png
VM All Downloads (requires login to download): https://customerconnect.vmware.com/cn/downloads/#all_products
image.png

Guess you like

Origin blog.csdn.net/qq_45476428/article/details/133471851