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 Linux system in VMware virtual machine

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

Share

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

This article is about how to install the Linux system in the VMware virtual machine. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

Many novices are not even familiar with Windows installation, let alone Linux installation; even if the installation is successful, it is possible to damage the existing Windows system, such as hard disk data loss, Windows can not boot, and so on. So installing Linux has always been a nightmare for beginners.

However, it is easy to break through this dilemma through virtual machine technology. Since the virtual machine installs Linux all the operations (such as partitioning, deleting or modifying data) are done on the virtual hard disk, it does not cause any loss to existing data and systems, even if the installation fails.

The so-called virtual machine (virtual machine) is a virtual computer through software technology, which is no different from the real computer at the use level.

The common virtual machine software are VMware Workstation (VMware for short), VirtualBox, Microsoft Virtual PC and so on, among which VMware has the highest market share, so this section takes VMware as an example to explain the installation of Linux.

VMware allows you to run multiple operating systems on a computer at the same time, such as Windows, Linux and Mac OS. If you install multiple operating systems directly on your computer, you can only run one operating system at a time and restart to switch, while Vmware can run multiple operating systems at the same time and switch back and forth like Windows applications.

From the user's point of view, the virtual machine system is the same as the real installed system, and several virtual machine systems can even be connected to a local area network or to the Internet on a single computer.

In a virtual machine system, each virtual computer is called a "virtual machine", while the computer used to store all virtual machines is called a "host". For example, your Windows system is the host, and the Linux installed by VMware is a virtual machine.

Download and install VMware

Most beginners use Windows, so this section only explains how to install VMware and Linux under Windows.

There are two versions of VMware, VMware Workstation Pro and VMware Workstation Player.

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

Pro is a commercial version that is the most powerful and cannot be used until you pay for it.

We have found a Pro version with a key on the Internet and put it on Baidu's network disk, which can be used without restriction:

As the installation process of VMware is relatively simple, it is no different from installing ordinary software, so it is no longer explained too much. This assumes that the reader has downloaded and installed VMware, and then directly starts installing the Linux system using VMware.

VMware installs Linux system

Start VMware and enter its main interface, as shown in the following figure.

Click "create a new virtual machine" to enter the virtual machine setup wizard interface, as shown in the following figure, it is recommended that beginners choose "typical (recommended)".

Click "next" to enter the "install operating system" interface, if beginners have prepared in advance the Linux system image file (.iso file), here you can select "installer CD image file", and through the "Browse" button to find the iso file to install the Linux system; otherwise, select "install the operating system later", as shown in the following figure.

Click "next", go to "Select client operating system", select "Linux", and select the corresponding Linux version to install in the "version" drop-down list box, and choose "CentOS 6" here, as shown in the following figure.

Continue to "next", go to the "named 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 files will be saved.

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). The space of the virtual hard disk can be resized as needed, but you don't have to worry about the space it takes up, because the actual space occupied is based on the size of the installed system rather than the size of the hard disk divided here.

For example, if you set the hard disk capacity to 20GB, but only use 4GB to install Linux, it will actually take up only 4GB space in your Windows partition, which will increase with the amount of space used by the virtual machine system.

This "specify disk capacity" interface can keep the default settings.

Next, go to the "ready to create a virtual machine" interface, confirm the virtual machine settings, and click the "finish" button without any changes to start creating the virtual machine.

Here, we can make some adjustments and 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 choose "memory" to adjust the virtual machine memory size, but it is recommended that the virtual machine memory should not exceed half of the host memory. CentOS6.x requires at least 628MB and above memory allocation, otherwise the easy installation process will be started.

Select "New CD/DVD (IDE)" to select the optical drive configuration. If you select "use physical drive", the virtual machine uses the physical optical drive of the host; if you select "use ISO image file", you can load the ISO image file directly and click the Browse button to find the location of the ISO image file.

Selecting "Network Adapter" will enter the most difficult part of the VMware novice setup-setting the network type. This setting is complex, but the network adapter configuration can be modified after the virtual machine system has been installed.

There are five types of network connections provided by VMware, namely, "Bridge Mode", "NAT Mode", "Host-only Mode", "Custom" and "LAN Section":

Bridging mode: the network card equivalent to the virtual machine and the physical network card of the host are connected to the VMnet0 virtual switch provided by the virtual machine software, so the virtual machine and the host are equal, equivalent to two computers in a network. This setting can not only ensure the communication between the virtual machine and the host, but also communicate with other hosts in the local area network, and can also connect to the Internet. It is the least restricted connection method, so it is recommended for beginners to use.

NAT mode: the network card equivalent to the virtual machine and the virtual network card VMnet8 of the host are connected to the VMnet8 virtual switch provided by the virtual machine software, so the machine communicates through the VMnet8 virtual network card. In this network structure, VMware provides a virtual NAT server and a virtual DHCP server for the virtual machine, and the virtual machine can connect to the Intemet using these two servers. Therefore, under normal circumstances, as long as the virtual machine system is set to automatically obtain the IP address, it can not only communicate with the host, but also connect to the Internet. However, this setting cannot connect to other hosts in the local area network.

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

Custom network: you can manually select which virtual machine network card to use. If you choose Vmnet1, it is equivalent to bridging the network; if you choose VMnet8, it is equivalent to the NAT network.

LAN section: this is a new feature of the new version of VMware, similar to the VLAN (virtual local area network) in the switch, which can divide different virtual networks among multiple virtual machines.

Readers may be a little confused after reading the above description of VMware network. Summary-after VMware is installed, two virtual network cards, VMnet1 and VMnet8, will be generated (can be seen in the "Network connection" of the Windows system)

There are two common settings:

The Windows of the host and the Linux of the virtual machine can be connected to the network, using the "bridging mode" (when bridging, the Linux can also access the Internet, but the virtual machine needs to be configured with the same networking environment as the host Windows); the Windows of the host and the Linux of the virtual machine can be connected to the network, and the Linux of the virtual machine can be connected to the Internet through the Windows of the host, using "NAT mode".

After the hard disk configuration is set, click the "finish" button in figure 7 to successfully create a virtual machine! For readers who download the CentOS image in advance and make corresponding settings, VMware will directly start the Linux CentOS system.

Readers who select "install the operating system later" must first download a Linux image file, and from "Edit Virtual Machine Settings-> CD/DVD (IDE)", select "use ISO Image File", add the iso file manually, and then click "OK" to manually open the Linux system.

After the above steps, we successfully installed the Linux system with the VMware virtual machine.

This is how the VMware virtual machine installs the Linux system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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