Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the Linux virtual machine

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to install Linux virtual machine". In daily operation, I believe many people have doubts about how to install Linux virtual machine. Xiaobian consulted various materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to install Linux virtual machine"! Next, please follow the small series to learn together!

VMware downloads and installations Most beginners use Windows, so this section only covers installing VMware and Linux under Windows.

VMware comes in two versions: VMware Workstation Pro and VMware Workstation Player.

Player is a free version and can only be used for non-commercial purposes, suitable for personal learning.

Pro is the commercial version, the most powerful, pay later to use.

We found a Pro version with a key from the Internet and put it on Baidu's network disk. You can use it without restriction:

VMware Workstation Pro download address: https://pan.baidu.com/s/1XXhFFh0Fx0vzvcd1A543Yg, extraction code: 2o19 (The downloaded compressed package contains the key required for VMware installation, which is valid for personal testing and can be used with confidence)

VMware requires a high hardware configuration for computers, and a low configuration will slow down or even prevent virtual machines from running. In theory, the higher the configuration, the better, and now mainstream computer configurations can meet the requirements for running VMware. Don't run VMware with old, treasured antiques, I guarantee you'll lose patience.

Since VMware installation is simple and is no different from installing normal software, it will not be described too much. This assumes that the reader has downloaded and installed VMware, and that the next step is to install Linux using VMware.

VMware installs Linux systems Start VMware and enter its main interface, as shown in Figure 1.

Figure 1 VMware Home Interface

Click "Create new virtual machine" to enter the virtual machine setup wizard interface, as shown in Figure 2. It is recommended that beginners select "Typical (recommended)."

Figure 2 Virtual machine setup wizard interface

Click "Next" to enter the "Install OS" interface. If the beginner has prepared the image file (.iso file) of Linux system in advance, you can select "Installer CD Image File" here and find the iso file to install Linux system through "Browse" button; otherwise, select "Install OS Later," as shown in Figure 3.

Figure 3. Installing the client operating system

It is recommended that beginners download the CenOS image system in advance and provide you with the CentOS 6.5 image file Thunder download address (click on the link or copy the link to Thunder to start downloading):

32-bit CentOS 6.5 image download: archive.kernel.org/centos-vault/6.5/isos/i386/CentOS-6.5-i386-bin-DVD1.iso

64-bit CentOS 6.5 image download: archive.kernel.org/centos-vault/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso

Click "Next" to enter "Select guest operating system," select "Linux," and select the corresponding Linux version to install in the "Version" drop-down list box, here select "CentOS 6," as shown in Figure 4.

Figure 4. Selecting a client operating system

Continue to "Next," enter the "Name Virtual Machine" interface, give the virtual machine a name (such as "CentOS 6.5"), and then click the "Browse" button to select the location where the virtual machine system installation file is saved, as shown in Figure 5.

Figure 5. Naming virtual machines

Click the Next button to enter the Specify Disk Capacity interface. The default virtual hard disk size is 20GB (the virtual hard disk is stored as a file in the virtual machine system installation directory). Virtual hard disk space can be resized as needed, but don't worry about the space it takes up, because the actual space is still based on the size of the installed system, not the size of the hard disk divided here.

For example, if you set the hard disk capacity to 20GB, but installed Linux only 4 GB, then you will actually only take up 4 GB of space in your Windows partition, and the space will increase as the virtual machine system uses more space.

The Specify Disk Capacity interface can be left at default, as shown in Figure 6.

Figure 6. Specify Disk Capacity Interface

Next, enter the "Ready to Create Virtual Machine" interface, confirm the virtual machine settings, click the "Finish" button if no changes are needed, and start creating the virtual machine, as shown in Figure 7.

Figure 7. Ready to create a virtual machine

Here, we can make a slight adjustment, click the "Custom Hardware" button to enter the hardware adjustment interface. In order to make the system in the virtual machine run faster, we can select "Memory" to adjust the virtual machine memory size, but it is recommended that the virtual machine memory does not exceed half of the host memory. CentOS 6.x requires at least 628MB of memory allocation, otherwise the easy installation process starts, as shown in Figure 8.

Figure 8 Custom Hardware

Select New CD/DVD(IDE) to select the drive configuration. If you select "Use physical drive," the virtual machine uses the host's physical optical drive; if you select "Use ISO image file," you can load the ISO image file directly and click the "Browse" button to locate the ISO image file, as shown in Figure 9.

Figure 9 CD Configuration

Selecting Network Adapter takes you to the most difficult part of VMware Novice Settings-setting the network type, as shown in Figure 10. This setup is complex, but the network adapter configuration can be modified after the virtual machine system is installed.

Figure 10 Network adapter configuration

VMware provides five types of network connectivity: Bridge Mode, NAT Mode, Host Only Mode, Custom, and LAN Segments:

Bridge mode: The NIC equivalent to the virtual machine and the physical NIC of the host machine are connected to the VMnet0 virtual switch provided by the virtual machine software, so the virtual machine and the host machine are equal, equivalent to two computers in a network. This setting can ensure that the virtual machine can communicate with the host machine, can also communicate with other hosts in the local area network, and can also connect to the Internet. It is the least restrictive connection mode and recommended for beginners.

NAT mode: equivalent to the virtual machine network card and host machine virtual network card VMnet8 connected to the virtual machine software provided VMnet8 virtual switch, so the local machine is through VMnet8 virtual network card communication. In this network architecture, VMware provides virtual machines with a virtual NAT server and a virtual DHCP server that they can use to connect to Intemet. Therefore, under normal circumstances, as long as the virtual machine system is set to automatically obtain the IP address, it can communicate with the host machine and connect to the Internet. However, this setting cannot connect to other hosts in the local area network.

Host-only mode: The host machine communicates with the virtual machine using VMware's virtual network card VMnet1, but this connection does not have NAT server to provide routing function for the virtual machine, so only the host network can connect to the host machine, not to the local area network, nor to the Internet network.

Custom network: You can manually select which virtual machine NIC to use. If VMnet1 is selected, it corresponds to a bridged network; if VMnet8 is selected, it corresponds to a NAT network.

LAN Segments: A new feature of VMware, similar to VLANs (virtual local area network) in switches, allows you to segment different virtual networks across multiple virtual machines.

The above description of VMware networks may be a bit confusing for readers. To summarize briefly, after VMware is installed, two virtual network cards VMnet1 and VMnet8 will be generated (you can see them in Network Connection of Windows system), as shown in Figure 11.

Figure 11 Virtual NIC

There are two common settings:

Windows of the host and Linux of the virtual machine are required to be able to connect to the network, using "bridge mode"(when bridging, Linux can also access the Internet, but the virtual machine needs to be configured with the same networking environment as the host Windows);

Windows on the host machine and Linux on the virtual machine are required to be able to make network connections, while Linux on the virtual machine can connect to the Internet through Windows on the host machine, using "NAT mode."

After the hard disk configuration is complete, click the "Finish" button in Figure 7 to successfully create a virtual machine! For readers who downloaded the CentOS image in advance and set it up in Figure 3, VMware will boot the Linux CentOS system directly, as shown in Figure 12.

Figure 12 VMware booting Linux

Readers who choose "Install OS later" in Figure 3 must download a Linux image file first, select "Use ISO image file" from "Edit virtual machine settings->CD/DVD (IDE)," manually add iso file, and then click "OK" to manually start Linux system. This is shown in Figure 13.

At this point, the study of "how to install Linux virtual machine" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report