Common errors during the installation of Linux virtual machines

Source: Internet
Author: User

As a beginner of Linux, a variety of errors occurred during the installation process. Here to share the mistakes I have encountered with you, but also hope to have some help for beginners. Several common network configuration problems are listed here and their causes and solutions are detailed. such as virtual machines cannot access the external network.

1, Xshell and other tools not connected to the problem of virtual machine, such as:

First, make sure that the virtual machine is properly powered on and configured correctly.
Second, the network configuration of the computer.

Open the computer's control Panel, network and internet-> Network and Sharing Center, click Change adapter Settings.
Shows that the VMware Network Adapter VMnet1 is disabled.

Right click and click Enable.

Now connect Xshell, can already connect successfully.

2, in the process of building the server appears in the external browser can be based on IP address access to the server,
However, on the virtual machine on the Firefox browser can not access the server (interface such as 1) problem.
Tested virtual machine with Ifconfig can detect IP address, but with access to Baidu Server found Firefox browser visit
Can't ask the Internet.

Figure 1
This is caused by incorrect network settings. Click Settings, click menu bar Virtual machine, as shown in:**

Change the custom mode on the right to the bridging mode, such as:

Click Add in the lower left corner to see the interface shown: Click Next.

Tick only host mode, configuration complete.

Click on the menu bar to edit, click on the virtual Machine network settings, the displayed interface appears.

Configure the appropriate parameters as shown.
PS: Due to configuration problems, I can not modify this step in the process of Shang mode, so cannot change
The settings for the VMnet0. If this is the case, click Restore Defaults in the lower left corner to OK.

Well, here I believe that everyone's Firefox browser is ready to use. Let's test it out.

Hey, why can't my browser use it yet? Haha, we do not worry, the small partners need to restart the virtual machine, Baidu in Firefox browser and so on you yo.
读到这里,相信大家都给我有相同的疑问,虚拟机的网络配置究竟是怎么一回事?各自有什么功能?下面是我的一些总结**。
During the installation of the virtual machine, VMware provides three operating modes, which are bridged (bridge mode), NAT (network address translation mode), and host-only (host mode).
VMnet0: This is the virtual switch used by VMware for virtual bridging networks;
VMnet1: This is a virtual switch used by VMware for virtual host-only networks;
VMnet8: This is a virtual switch used by VMware for virtual NAT networks;
So you might ask what is bridging, NAT? What is host mode for?
in bridged mode, VMware's virtual operating system is like a standalone host on a local area network that can access any machine in the LAN. The relationship between a virtual system using bridging mode and a host machine is like two computers connected to the same hub. Simply put, the virtual machine is connected to the physical machine (host) network card through the bridge mode, and the physical machine NIC is connected to the LAN, then the virtual machine also gets the ability to access any host on the LAN.
in host-only mode, multiple VMS within the host and between the physical machines can connect to each other, noting that in host mode, the connection to the physical machine is not connected to the physical machine's network card, that is, the external network cannot be accessed. In other words, host mode is used for communication between multiple virtual machines without network connectivity.
Net modeIt is mainly used to realize the problem of virtual machine accessing external network, which is responsible for address translation during the connection of network. If you want to use VMware to install a new virtual system, you can access the Internet directly without any manual configuration in the virtual system, and use NAT mode.
If you want to know more about these three modes, here are two access links for your reference
[Detailed description of VMware three modes]
(http://www.cnblogs.com/systemnet123/articles/2640883.html)
(http://blog.csdn.net/adultf/article/details/7290999)
Now I think you should understand that my two problems are caused by what reason, how should be solved, and in the future encounter similar stability can be related to the corresponding troubleshooting and resolution.
3. Linux mirroring problem. Do not know everyone in the installation process has not encountered the inability to connect to the virtual device ide1:0, because there is no problem with the device on the host, and appear as two interfaces, not the installation interface


Figure 2
two prompt interface, this is due to not configure the Linux image file, it reminds you to download the CentOS version, where I configured the centos-6.9-x86-64, the configuration is as follows:
Click on the menu bar virtual machine, click Settings, click "New CD/DVD (IDE)", tick the ISO image file.


when checked, click Browse to select the image file downloaded before installation, centos-6.9-x86. As shown in.

you can now turn on the virtual machine to continue installing the system. The next time you configure a virtual machine, I hope that everyone will be careful, oh, to avoid unnecessary errors.

Common errors during the installation of Linux virtual machines

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.