In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to solve the problem of not being able to connect to the network after creating a virtual machine on an ESXi host". The content in the article is simple and clear, and it is easy to learn and understand. please follow the editor's train of thought to study and learn "how to solve the problem of not being able to connect to the network after creating a virtual machine on an ESXi host".
Summary of questions:
a. About the failure of installing vSphere client in the VMware summer virtualization experiment
b. The problem of not being able to access the network after creating a virtual machine on an ESXi host
c. Problems encountered in installing VMware tools on a virtual machine
d. The main points of Segmentation check on the problems that can not be added to the iSCSI disk simulated by Starwind
After the virtual machine is created on the ESXi host, there are several problems that the installation of CentOS 6.6 minimizes the installation and cannot be connected to the external network.
First of all, you have to make sure that your host can access the Internet normally, and ping www.baidu.com can be connected to ping, which must be checked first.
Solution:
1. In the first case, the file / etc/sysconfig/network-scripts/ifcfg-eth0 does not exist after actual verification. When adding a virtual machine, the network card is not selected correctly. You should choose the type of VMNET3 and restart the virtual machine to identify it.
two。 In the second case, the file / etc/sysconfig/network-scripts/ifcfg-eth0 exists, but ONBOOT=no in the contents of the file, which means that the network card is disabled. You need to use the command ifup ifcfg-eth0 to start the network card, and then restart the network service service network restart.
3. The third case is that the eth0 network card is also enabled, which can also be seen in ifconfig, but it is still unable to connect to the network. At this time, you need to observe whether the IP configuration of this network card, if DHCP, has correctly obtained the IP address. In some cases, in the VMware Workstation virtual network editor, the DHCP service is not started in the configuration for VMNet8. In this case, you need to modify the configuration to enable the DHCP service. Shutting down the virtual machine, rebooting VMware Workstation, and then booting the virtual machine is basically fine.
4. The fourth case is that the address of eth0 has also been obtained, but it is still not available on the network, often because dhcp has obtained the wrong gateway. You can try to specify a static IP location for this network card, that is, modify the / etc/sysconfig/network-scripts/ifcfg-eth0 file, change dhcp to static, and then add IPADDR=192.168.8.130, NETMASK=255.255.255.0, GATEWAY=192.168.8.2, DNS=202.99.166.4 and other parameters to save. Then service network restart restarts the network service and it is basically normal.
5. To check whether you can access the Internet, you can use ping instructions in shell, such as ping www.baidu.com, to verify whether you can access the external network. Of course, the premise is that your host can be connected to the external network, otherwise you will not be able to access the Internet no matter what. Very often, some people do not understand and ignore this point, which is the first thing to check.
6. The network card is not enabled by default is the problem of ONBOOT=no in ifcfg-eth0. In fact, in the process of installing CentOS6.6, there is an option to configure the network, and there is a check box for automatic connection. If you check it in the process of installing the system, then there will be no ONBOOT=no. After the system is installed, it will automatically ONBOOT=yes.
Thank you for your reading, the above is the content of "how to solve the problem of not being able to access the network after creating a virtual machine on the ESXi host". After the study of this article, I believe you have a deeper understanding of how to solve the problem of not being able to access the network after creating a virtual machine on the ESXi host, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.