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

What is the method of installing Linux system in VMware virtual machine

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

Share

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

This article mainly introduces "what is the method of installing the Linux system in the VMware virtual machine". In the daily operation, I believe that many people have doubts about the method of installing the Linux system in the VMware virtual machine. The editor consulted all kinds of materials and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubt of "what is the method of installing the Linux system in the VMware virtual machine?" Next, please follow the editor to study!

What is a virtual machine?

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

The common virtual machine software are VMware Workstation (VMware for short), VirtualBox, Microsoft Virtual PC and so on, among which VMware has the highest utilization rate.

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.

VMware installation

Note: VMware has relatively high requirements for the hardware configuration of the computer, the configuration is low, the virtual machine is very slow, and even can not run. In theory, the higher the configuration, the better. Now mainstream computer configurations can meet the requirements of running VMware.

As the installation process of VMware is relatively simple, it is no different from the installation of ordinary software, so it is no longer described too much.

VMware installs Linux system

1. Start VMware and enter the following interface:

two。 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)".

3. Click "next" to enter the "install operating system" interface, if the Linux system image file (.iso file) has been prepared in advance, you can select "installer CD image file" here, 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.

It is recommended to download the CenOS image system in advance. The following is the download address of the CentOS 6.5 image file (click the link or copy link to Xunlei to start the download):

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

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

4. 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. Select "CentOS 6" here, as shown in the following figure:

5. 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, as shown in the following figure.

6. 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.

7. The "specify disk capacity" interface can keep the default settings, as shown in the following figure:

8. 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, as shown in the following figure:

9. Click the customize 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 a simple installation process will be started, as shown in the following figure:

10. 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, as shown in the following figure:

11. Selecting "Network Adapter" will enter the most difficult part of the VMware novice settings-setting the network type, as shown in the following figure. 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 (which can be seen in the "Network connection" of the Windows system), as shown in the following figure:

There are two common settings:

The Windows of the host and the Linux of the virtual machine are required to connect to the network, using "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, while 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 the following figure to successfully create a virtual machine! For readers who have downloaded the CentOS image and set it up in advance in figure 3, VMware will start the Linux CentOS system directly, as shown in the figure:

If you choose "install the operating system later" above, you must first download a Linux image file, and select "use ISO Image File" in "Edit Virtual Machine Settings-> CD/DVD (IDE)", add the iso file manually, and then click "OK" to manually open the Linux system. As shown in the following figure:

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

At this point, the study on "what is the method of installing Linux system in VMware virtual machine" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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